handlers

package
v0.0.0-...-dec31c8 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2019 License: Apache-2.0, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Respond

func Respond(w http.ResponseWriter, result interface{}, cberr error)

Respond is a standardized response for handlers

func RespondBadRequest

func RespondBadRequest(w http.ResponseWriter, err error)

RespondBadRequest is a standardized response for API errors where the request was malformed

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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