measurements

package
v0.0.0-...-424d676 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	DB internal.Database
}

Handler is the handler for the /v0/measurements endpoint.

func (*Handler) Post

func (h *Handler) Post(c echo.Context) error

Post is the HTTP handler for POST /tests.

type Validator

type Validator struct {
	Validator *validator.Validate
}

Validator is a custom validator wrapping go-playground/validator.

func (*Validator) Validate

func (cv *Validator) Validate(i interface{}) error

Validate validates the passed struct according to its "validate" annotations.

Jump to

Keyboard shortcuts

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