Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QueryDecoder ¶
QueryDecoder defines a function that decodes query bytes to query models
var DefaultQueryDecode QueryDecoder = json.Unmarshal
DefaultQueryDecode is the default function used to decode query bytes to query models
type QueryEncoder ¶
QueryEncoder defines a function that encodes query models to bytes
var DefaultQueryEncode QueryEncoder = json.Marshal
DefaultQueryEncode is the default function used to marshal query models into bytes
type QueryHandler ¶
type QueryHandler interface { // QueryPath defines the path of the query in the module to retrieve information QueryPath() string // Validate validates the correctness of the query formation in a stateless way Validate() error }
QueryHandler abstracts the functionality of a query handler CONTRACT: must be a struct pointer
Click to show internal directories.
Click to hide internal directories.