handlers

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2019 License: Apache-2.0 Imports: 3 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteInternalErrorJSONResponse

func WriteInternalErrorJSONResponse(w http.ResponseWriter, err error)

func WriteInvalidJSONResponse

func WriteInvalidJSONResponse(w http.ResponseWriter, err error)

func WriteJSONResponse

func WriteJSONResponse(w http.ResponseWriter, statusCode int, jsonObj interface{})

func WriteStatusAcceptedResponse

func WriteStatusAcceptedResponse(w http.ResponseWriter)

func WriteStatusCreatedResponse

func WriteStatusCreatedResponse(w http.ResponseWriter)

Types

type HandlerError

type HandlerError struct {
	Error string `json:"error"`
}

Jump to

Keyboard shortcuts

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