Documentation
¶
Index ¶
- func CheckAndParseJsonCTX(c context.Context, w http.ResponseWriter, r *http.Request) (context.Context, map[string]interface{}, error)
- func CheckHeaderGeneric(c context.Context, w http.ResponseWriter, r *http.Request) (string, error)
- func Index(w http.ResponseWriter, r *http.Request)
- func ReturnBadRequest(c context.Context, w http.ResponseWriter, errorCode int64, errorString string)
- func ReturnCreated(c context.Context, w http.ResponseWriter)
- func ReturnNotFound(c context.Context, w http.ResponseWriter)
- func ReturnNotFoundWithCustomError(c context.Context, w http.ResponseWriter, errorCode int64, errorString string)
- func ReturnOK(c context.Context, w http.ResponseWriter)
- func ReturnServerError(c context.Context, w http.ResponseWriter)
- func ReturnServerErrorWithCustomError(c context.Context, w http.ResponseWriter, errorCode int64, errorString string)
- func ReturnUnauthorised(c context.Context, w http.ResponseWriter, errorCode int64, e error)
- func ReturnUnprocessableEntity(c context.Context, w http.ResponseWriter, errorCode int64, e error)
- func Serverinfo(w http.ResponseWriter, r *http.Request)
- func ValidateParameters(c context.Context, parameters interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAndParseJsonCTX ¶
func CheckHeaderGeneric ¶
func Index ¶
func Index(w http.ResponseWriter, r *http.Request)
Handles the '/' path and returns a random quote
func ReturnBadRequest ¶
func ReturnCreated ¶
func ReturnCreated(c context.Context, w http.ResponseWriter)
func ReturnNotFound ¶
func ReturnNotFound(c context.Context, w http.ResponseWriter)
func ReturnServerError ¶
func ReturnServerError(c context.Context, w http.ResponseWriter)
func ReturnUnauthorised ¶
func Serverinfo ¶
func Serverinfo(w http.ResponseWriter, r *http.Request)
Handles the '/serverinfo' path
func ValidateParameters ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.