Documentation ¶
Index ¶
- func FilterArrayParams(r *http.Request, b []byte) ([]byte, error)
- func GetIntParam(r *http.Request, param string) (int, error)
- func GetStringParam(r *http.Request, param string) (string, error)
- func GetUUIDParam(r *http.Request, param string) (string, error)
- func GetUintParam(r *http.Request, param string) (uint, error)
- func Message(status int, message string) map[string]interface{}
- func ParameterNotExistsErr(param string) string
- func ParameterNotUUIDErr(param string) string
- func Respond(w http.ResponseWriter, data map[string]interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterArrayParams ¶
FilterArrayParams reads a filter array parameter from an HTTP request
func GetIntParam ¶
GetIntParam reads an integer parameter from an HTTP request
func GetStringParam ¶
GetStringParam reads a string parameter from an HTTP request
func GetUUIDParam ¶
GetUUIDParam reads a UUID parameter from an HTTP request
func GetUintParam ¶
GetUintParam reads a uint parameter from an HTTP request
func ParameterNotExistsErr ¶
ParameterNotExistsErr is a function that returns an error if a parameter does not exist
func ParameterNotUUIDErr ¶
ParameterNotUUIDErr is a function that returns an error if a parameter is uuid
func Respond ¶
func Respond(w http.ResponseWriter, data map[string]interface{})
Respond returns messages from the controller to the user
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.