Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustReadCfgFile ¶
func MustReadCfgFile()
MustReadCfgFile reads the config file stated with or without given config file location
Types ¶
type Config ¶
type Config struct {
Copy []*DynamoDBMappingConfig `mapstructure:"copy"`
}
Config represents a global configuration
func BindCopyConfigByKey ¶
BindCopyConfigByKey binds the read configurations to Copy Config struct
type DynamoDBConfig ¶
type DynamoDBConfig struct {
Region string `mapstructure:"region"`
TableName string `mapstructure:"table"`
// Required for DynamoDB local
Endpoint string `mapstructure:"endpoint"`
AccessKeyID string `mapstructure:"accessKeyID"`
SecretAccessKey string `mapstructure:"secretAccessKey"`
}
DynamoDBConfig represents connection info for a specific table
type DynamoDBMappingConfig ¶
type DynamoDBMappingConfig struct {
Service string `mapstructure:"service"`
Origin *DynamoDBConfig `mapstructure:"origin"`
Target *DynamoDBConfig `mapstructure:"target"`
}
DynamoDBMappingConfig maps origin and target configs for DynamoDB
Click to show internal directories.
Click to hide internal directories.