handler

package
v0.0.0-...-81f13ae Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CategoriesPageSize = 50
	ExpensesPageSize   = 50
	UserClaimsKey      = "USER_KEY"
	UserIDKey          = "UserID"
	RequestIDKey       = "Request-ID"
	ErrorKey           = "Error"
	ErrorMetricName    = "errors"
)

Variables

This section is empty.

Functions

func ErrorResponse

func ErrorResponse(s quark.Service, w http.ResponseWriter, r *http.Request, e *errors.Error, code int)

func GetContextWithSpan

func GetContextWithSpan(s quark.Service, r *http.Request) context.Context

func GetRequestID

func GetRequestID(r *http.Request) string

func GetUserID

func GetUserID(r *http.Request) string

func ParseRequestData

func ParseRequestData(r *http.Request, in interface{}) ([]byte, error)

func Response

func Response(s quark.Service, w http.ResponseWriter, r *http.Request, in interface{}, code int)

Types

This section is empty.

Jump to

Keyboard shortcuts

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