Documentation ¶
Index ¶
Constants ¶
View Source
const ( // RegionUSEast1 is a helper constant for AWS configs. RegionUSEast1 = "us-east-1" // RegionUSWest is a helper constant for AWS configs. RegionUSWest = "us-west-1" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { SecretKey string `envconfig:"AWS_SECRET_KEY"` AccessKey string `envconfig:"AWS_ACCESS_KEY"` Region string `envconfig:"AWS_REGION"` }
Config holds common AWS credentials and keys.
func LoadConfigFromEnv ¶
func LoadConfigFromEnv() Config
LoadConfigFromEnv will attempt to load the Config struct from environment variables.
type DynamoDB ¶
DynamoDB holds some basic info required to work with Amazon DynamoDB.
func LoadDynamoDBFromEnv ¶
func LoadDynamoDBFromEnv() DynamoDB
LoadDynamoDBFromEnv will attempt to load the DynamoDB struct from environment variables. If not populated, nil is returned.
type ElastiCache ¶
ElastiCache holds the basic info required to work with Amazon ElastiCache.
func LoadElastiCacheFromEnv ¶
func LoadElastiCacheFromEnv() ElastiCache
LoadElastiCacheFromEnv will attempt to load the ElasiCache struct from environment variables.
func (*ElastiCache) MustClient ¶
func (e *ElastiCache) MustClient() *memcache.Client
MustClient will use the cache cluster ID to describe the cache cluster and instantiate a memcache.Client with the cache nodes returned from AWS.
Click to show internal directories.
Click to hide internal directories.