users

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleMethod

func HandleMethod(w http.ResponseWriter, r *http.Request)

Types

type Response

type Response struct {
	Status int
	Data   interface{}
	Error  error
}

Response is returned by API handlers

func HandleNew

func HandleNew(r *http.Request) Response

func NewClientError

func NewClientError(e error) Response

NewClientError is returned from handlers when client has provided invalid input

func NewRemoteError

func NewRemoteError(e error) Response

NewRemoteError is returned from handlers when there's been a remote service error

func NewResponse

func NewResponse(d interface{}) Response

NewResponse is returned from handlers when client has provided invalid input

Jump to

Keyboard shortcuts

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