mux

package
v0.0.0-...-3f93e99 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2023 License: GPL-3.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCorsEnabler

func CreateCorsEnabler() func(http.Handler) http.Handler

CreateCorsEnabler middleware

func CreateSessionProvider

func CreateSessionProvider(f mongo.ContextFactory) func(http.Handler) http.Handler

CreateSessionProvider middleware

func ParseJSON

func ParseJSON(r *http.Request, payload interface{}) error

ParseJSON request

func RenderError

func RenderError(w http.ResponseWriter, code int)

RenderError response

func RenderJSON

func RenderJSON(w http.ResponseWriter, payload interface{})

RenderJSON response

Types

This section is empty.

Jump to

Keyboard shortcuts

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