common

package
v0.0.0-...-d8471a2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2019 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckApiKey

func CheckApiKey(event map[string]interface{}) error

func CheckSecret

func CheckSecret(event map[string]interface{}) error

func CreateRandomSecret

func CreateRandomSecret() (string, error)

func DeleteSecret

func DeleteSecret(key string) error

func Hash

func Hash(number string) string

func ParseJSONBody

func ParseJSONBody(event map[string]interface{}) (map[string]interface{}, error)

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 SendEmail

func SendEmail(email string, png []byte) error

func SendMessage

func SendMessage(sender string, recipient string, message string) error

func SignIn

func SignIn(number string, email string) error

func UpdateSecretBinary

func UpdateSecretBinary(key string, data []byte) error

func UpdateSecretString

func UpdateSecretString(key string, value string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL