Documentation ¶
Index ¶
- func Code(secret string) string
- func GetSessionToken(region string, seconds int64) (*sts.Credentials, error)
- func Render(w http.ResponseWriter, status int, data string)
- func RenderAccessKeys(w http.ResponseWriter, status int, accessKeyID string, secretAccessKey string, ...)
- func SendEmail(region, from, to, subject, message string) error
- func SendMessage(region, phone, message string) error
- func UUID() (string, error)
- type DynamoDB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSessionToken ¶
func GetSessionToken(region string, seconds int64) (*sts.Credentials, error)
GetSessionToken .
func RenderAccessKeys ¶
func RenderAccessKeys(w http.ResponseWriter, status int, accessKeyID string, secretAccessKey string, sessionToken string)
RenderAccessKeys JSON.
Types ¶
type DynamoDB ¶
type DynamoDB struct {
// contains filtered or unexported fields
}
DynamoDB implementation.
func NewDynamoDB ¶
NewDynamoDB returns a new instance of DynamoDB.
func (*DynamoDB) CreateVerifyTable ¶
CreateVerifyTable creates the verify table.
func (*DynamoDB) DeleteVerify ¶
DeleteVerify deletes old IDs.
Click to show internal directories.
Click to hide internal directories.