api

package
v0.0.0-...-fba4c40 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: Apache-2.0 Imports: 6 Imported by: 58

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleBadRequest

func HandleBadRequest(w http.ResponseWriter, err error)

HandleBadRequest ...

func HandleError

func HandleError(w http.ResponseWriter, err error)

HandleError ...

func HandleInternalServerError

func HandleInternalServerError(w http.ResponseWriter, err error)

HandleInternalServerError ...

func HandleNotMethodAllowed

func HandleNotMethodAllowed(w http.ResponseWriter)

HandleNotMethodAllowed ...

func Health

func Health(w http.ResponseWriter, _ *http.Request)

Health ...

func WriteJSON

func WriteJSON(w http.ResponseWriter, v interface{}) error

WriteJSON response status code will be written automatically if there is an error

Types

This section is empty.

Directories

Path Synopsis
registry

Jump to

Keyboard shortcuts

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