httputil

package
v0.0.0-...-de0f673 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RespondHttpJson

func RespondHttpJson(out interface{}, httpCode int, w http.ResponseWriter)

Types

type GenericResponse

type GenericResponse struct {
	Status           string `json:"status"`
	ErrorCode        string `json:"error_code"`
	ErrorDescription string `json:"error_description"`
}

func GenericError

func GenericError(code string, err error) *GenericResponse

func GenericSuccess

func GenericSuccess() *GenericResponse

Jump to

Keyboard shortcuts

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