Documentation ¶
Index ¶
- func AWSSessions() (*session.Session, error)
- func DynamoDBGetItem(dynamodbsvc *dynamodb.DynamoDB, tableName string, key interface{}) (map[string]*dynamodb.AttributeValue, error)
- func DynamoDBPutItem(dynamodbsvc *dynamodb.DynamoDB, tableName string, item interface{}, ...) string
- func FromISO8061(str string) (time.Time, error)
- func GetBodyBinaryFromHttpResp(resp *http.Response) ([]byte, error)
- func JSONStringify(obj interface{}) (string, error)
- func MinutesAgo(minutes int) time.Time
- func NewDiscordClient(token string) (*discordgo.Session, error)
- func NewDynamoClient() *dynamodb.DynamoDB
- func NewTranslateClient() *translate.Translate
- func NewTwitterClient(token string) *http.Client
- func ToISO8061(date time.Time) string
- func TranslateText(translatesvc *translate.Translate, text string, sourceLanguageCode string, ...) (string, error)
- func UnmarshalStreamImage(attribute map[string]events.DynamoDBAttributeValue, out interface{}) error
- type Param
- type SSM
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AWSSessions ¶
func DynamoDBGetItem ¶
func DynamoDBPutItem ¶
func JSONStringify ¶
func MinutesAgo ¶
func NewDynamoClient ¶
func NewTranslateClient ¶
func NewTwitterClient ¶
func TranslateText ¶
func UnmarshalStreamImage ¶
func UnmarshalStreamImage(attribute map[string]events.DynamoDBAttributeValue, out interface{}) error
UnmarshalStreamImage converts events.DynamoDBAttributeValue to struct from: https://stackoverflow.com/questions/49129534/unmarshal-mapstringdynamodbattributevalue-into-a-struct
Types ¶
Click to show internal directories.
Click to hide internal directories.