errors

package
v0.22.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnauthorized = New("Unauthorized")

Functions

func New

func New(err string) error

func WriteError

func WriteError(w http.ResponseWriter, err error)

Types

type Error

type Error struct {
	CodeSpace string `json:"code_space"`
	Code      string `json:"code"`
	Message   string `json:"msg"`
}

type Result

type Result struct {
	Error Error `json:"error"`
}

Jump to

Keyboard shortcuts

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