Skip to content
Snippets Groups Projects
Commit 93df1490 authored by thijsheijden's avatar thijsheijden
Browse files

Added a mock convert query service

Implements the ConvertQuery method and just returns a hardcoded string
value.
parent 34a51766
No related branches found
No related tags found
No related merge requests found
package mockconvertquery
// A Service implements the query convert usecase interface (mock)
type Service struct {
}
// NewService creates a new query convert service (mock)
func NewService() *Service {
return &Service{}
}
// ConvertQuery returns a hard coded string message (mock)
func (s *Service) ConvertQuery(jsonMsg *[]byte) (*string, error) {
mockQuery := "Query converted"
return &mockQuery, nil
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment