Documentation
¶
Index ¶
- func AllowCors() map[string]string
- func AllowCorsWithAudio() map[string]string
- func InvalidParams(m string) events.APIGatewayProxyResponse
- func MethodNotAllowed() events.APIGatewayProxyResponse
- func NotFound(m string) events.APIGatewayProxyResponse
- func RequestUnauthorized(hint string) events.APIGatewayProxyResponse
- func ServerError(err error, hint string) events.APIGatewayProxyResponse
- func Success(s string) events.APIGatewayProxyResponse
- func SuccessCreated() events.APIGatewayProxyResponse
- func SuccessEmptyArray() events.APIGatewayProxyResponse
- func SuccessNoContent() events.APIGatewayProxyResponse
- func SuccessWithAudio(s string) events.APIGatewayProxyResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllowCorsWithAudio ¶
func InvalidParams ¶
func InvalidParams(m string) events.APIGatewayProxyResponse
Returns a API gateway appropriate error to client
func MethodNotAllowed ¶
func MethodNotAllowed() events.APIGatewayProxyResponse
func NotFound ¶
func NotFound(m string) events.APIGatewayProxyResponse
Returns a API gateway appropriate error to client
func RequestUnauthorized ¶
func RequestUnauthorized(hint string) events.APIGatewayProxyResponse
Returns a API unauthorized to client
func ServerError ¶
func ServerError(err error, hint string) events.APIGatewayProxyResponse
Returns a API gateway appropriate error to client
func Success ¶
func Success(s string) events.APIGatewayProxyResponse
func SuccessCreated ¶
func SuccessCreated() events.APIGatewayProxyResponse
func SuccessEmptyArray ¶
func SuccessEmptyArray() events.APIGatewayProxyResponse
func SuccessNoContent ¶
func SuccessNoContent() events.APIGatewayProxyResponse
func SuccessWithAudio ¶
func SuccessWithAudio(s string) events.APIGatewayProxyResponse
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.