Documentation ¶
Index ¶
- func GetContentType(content []byte) string
- func GetNamespace(request *restful.Request) string
- func RespondError(response *restful.Response, err error, statusCode int)
- func RespondErrorMessage(response *restful.Response, message string, statusCode int)
- func RespondMessageAndLogError(response *restful.Response, err error, message string, statusCode int)
- func WriteResponseLocation(request *restful.Request, response *restful.Response, identifier string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetContentType ¶
func GetNamespace ¶
func RespondError ¶
RespondError - logs and writes an error response with a desired status code
func RespondErrorMessage ¶
RespondErrorMessage - logs and writes an error message with a desired status code
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.