server

package
v0.0.0-...-f07dfbc Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NotAuthorized = "API not authorized for user %q"

NotAuthorized is a template string used to report an unauthorized access to the API

View Source
var NotValidID = "ID %q is not valid"

NotValidID is a template string used to report that the id is not valid (i.e. not a valid BSON ID)

View Source
var UserNotFound = "Cannot find user %s"

UserNotFound is a template string used to report that the user cannot be found

Functions

func New

func New(version string)

New instance of the server

func RetrieveUser

func RetrieveUser(next echo.HandlerFunc) echo.HandlerFunc

RetrieveUser is a middleware setting the user in context

Types

type JSON

type JSON map[string]interface{}

JSON type

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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