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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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