Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateFilterFromQuery ¶
func EventsAddHandler ¶
func EventsAddHandler(db *mongo.Collection, schema *jsonschema.Schema) http.Handler
EventsAddHandler creates an http handler that validates and adds events to the database
func EventsQueryHandler ¶
func EventsQueryHandler(db *mongo.Collection) http.Handler
EventsQueryHandler creates an http handler that retrieves values from the database optionally allowing to filter the vaules
Types ¶
type ValidationError ¶
type ValidationError []jsonschema.KeyError
func (ValidationError) Error ¶
func (self ValidationError) Error() string
create a string representation of the json schema errors
Click to show internal directories.
Click to hide internal directories.