Documentation
¶
Index ¶
- func CheckApiKey(event map[string]interface{}) error
- func CheckSecret(event map[string]interface{}) error
- func CreateRandomSecret() (string, error)
- func DeleteSecret(key string) error
- func GetSecret(key string) (*secretsmanager.GetSecretValueOutput, error)
- func Hash(number string) string
- func ParseJSONBody(event map[string]interface{}) (map[string]interface{}, error)
- func RespondBadRequest(err error) (events.APIGatewayProxyResponse, error)
- func RespondNotFound(err error) (events.APIGatewayProxyResponse, error)
- func RespondServerError(err error) (events.APIGatewayProxyResponse, error)
- func RespondSuccess(res interface{}) (events.APIGatewayProxyResponse, error)
- func RespondUnauthorized(err error) (events.APIGatewayProxyResponse, error)
- func SendEmail(email string, png []byte) error
- func SendMessage(sender string, recipient string, message string) error
- func SignIn(number string, email string) error
- func UpdateSecretBinary(key string, data []byte) error
- func UpdateSecretString(key string, value string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckApiKey ¶
func CheckSecret ¶
func CreateRandomSecret ¶
func DeleteSecret ¶
func GetSecret ¶
func GetSecret(key string) (*secretsmanager.GetSecretValueOutput, error)
func ParseJSONBody ¶
func RespondBadRequest ¶
func RespondBadRequest(err error) (events.APIGatewayProxyResponse, error)
func RespondNotFound ¶
func RespondNotFound(err error) (events.APIGatewayProxyResponse, error)
func RespondServerError ¶
func RespondServerError(err error) (events.APIGatewayProxyResponse, error)
func RespondSuccess ¶
func RespondSuccess(res interface{}) (events.APIGatewayProxyResponse, error)
func RespondUnauthorized ¶
func RespondUnauthorized(err error) (events.APIGatewayProxyResponse, error)
func UpdateSecretBinary ¶
func UpdateSecretString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.