util

package
v0.0.0-...-8914535 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Util

type Util struct{}

func (Util) AddRecipeUrl

func (u Util) AddRecipeUrl(r types.Recipe) types.Recipe

func (Util) AddRecipeUrlToArray

func (u Util) AddRecipeUrlToArray(recipes types.Recipes) types.Recipes

func (Util) FailedToAuthenticate

func (u Util) FailedToAuthenticate(w rest.ResponseWriter)

func (Util) GetTokenFromHeader

func (u Util) GetTokenFromHeader(r *rest.Request) string

func (Util) HandleFromAuthTokenFailure

func (u Util) HandleFromAuthTokenFailure(w rest.ResponseWriter)

func (Util) MakeRecipeUrl

func (u Util) MakeRecipeUrl(recipeid string) string

func (Util) SimpleJsonReason

func (u Util) SimpleJsonReason(w rest.ResponseWriter, code int, message string)

func (Util) SimpleJsonResponse

func (u Util) SimpleJsonResponse(w rest.ResponseWriter, code int, message string)

func (Util) SimpleJsonValidationReason

func (u Util) SimpleJsonValidationReason(w rest.ResponseWriter, code int, err []error)

func (Util) SliceElementValidationReason

func (u Util) SliceElementValidationReason(w rest.ResponseWriter, code int, err []error, sliceType string, index int)

Jump to

Keyboard shortcuts

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