api

package
v0.0.0-...-f3ee84f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 17, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFilterFromQuery

func CreateFilterFromQuery(queryParams url.Values) map[string]interface{}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL