Documentation ¶
Index ¶
- type Util
- func (u Util) AddRecipeUrl(r types.Recipe) types.Recipe
- func (u Util) AddRecipeUrlToArray(recipes types.Recipes) types.Recipes
- func (u Util) FailedToAuthenticate(w rest.ResponseWriter)
- func (u Util) GetTokenFromHeader(r *rest.Request) string
- func (u Util) HandleFromAuthTokenFailure(w rest.ResponseWriter)
- func (u Util) MakeRecipeUrl(recipeid string) string
- func (u Util) SimpleJsonReason(w rest.ResponseWriter, code int, message string)
- func (u Util) SimpleJsonResponse(w rest.ResponseWriter, code int, message string)
- func (u Util) SimpleJsonValidationReason(w rest.ResponseWriter, code int, err []error)
- func (u Util) SliceElementValidationReason(w rest.ResponseWriter, code int, err []error, sliceType string, index int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Util ¶
type Util struct{}
func (Util) AddRecipeUrlToArray ¶
func (Util) FailedToAuthenticate ¶
func (u Util) FailedToAuthenticate(w rest.ResponseWriter)
func (Util) HandleFromAuthTokenFailure ¶
func (u Util) HandleFromAuthTokenFailure(w rest.ResponseWriter)
func (Util) MakeRecipeUrl ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.