response

package
v0.0.0-...-370919f Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContentJson = "application/json"
	ContentText = "text/plain"
)

Variables

This section is empty.

Functions

func RespondWithError

func RespondWithError(w http.ResponseWriter, code int, content_type string, message string)

func ResponseError

func ResponseError(caller, user string, w http.ResponseWriter, err error)

func ResponseHelper

func ResponseHelper(w http.ResponseWriter, http_status int, content_type string, body string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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