Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddConfigDirectory ¶
func AddConfigDirectory(dir string)
Types ¶
type AWSConfig ¶
type AWSConfig struct { Region string `json:"region" mapstructure:"region"` UseCredentials bool `json:"useCredentials" mapstructure:"useCredentials"` Credentials AWSCredentials `json:"credentials" mapstructure:"credentials"` IsFargate bool `json:"isFargate" mapstructure:"isFargate"` }
type AWSCredentials ¶
type AblyConfig ¶
type AppleAuthConfig ¶
type AppleAuthConfig struct { TeamID string `json:"team_id" mapstructure:"team_id"` RedirectURI string `json:"redirect_uri" mapstructure:"redirect_uri"` ClientID string `json:"client_id" mapstructure:"client_id"` KeyID string `json:"key_id" mapstructure:"key_id"` PrivateKey string `json:"privateKey" mapstructure:"apple_private_key"` }
type AuthConfig ¶
type Config ¶
type Config struct { Environment string `json:"env" mapstructure:"env"` DBConfig DBConfig `json:"db" mapstructure:"db"` SQLDBConfig SQLDBConfig `json:"sqldb" mapstructure:"sqldb"` Twitter TwitterConfig `json:"twitter" mapstructure:"twitter"` Auth AuthConfig `json:"auth" mapstructure:"auth"` AWS AWSConfig `json:"aws" mapstructure:"aws"` AblyConfig AblyConfig `json:"ably" mapstructure:"ably"` S3BucketConfig S3BucketConfig `json:"s3_bucket" mapstructure:"s3_bucket"` SQSConfig SQSConfig `json:"sqs" mapstructure:"sqs"` AppleAuthConfig AppleAuthConfig `json:"apple_auth_config" mapstructure:"apple_auth_config"` }
func ReadConfig ¶
func (*Config) ReadEnvAndUpdate ¶
func (c *Config) ReadEnvAndUpdate()
type DBConfig ¶
type DBConfig struct { Host string `json:"host" mapstructure:"host"` Port int `json:"port" mapstructure:"port"` Region string `json:"region" mapstructure:"region"` TablesConfig TablesConfig `json:"tables_config" mapstructure:"tables_config"` }
type S3BucketConfig ¶
type S3BucketConfig struct { MediaBucket string `json:"media_bucket" mapstructure:"media_bucket"` CloudFrontURL string `json:"cloudfront_url" mapstructure:"cloudfront_url"` BaseKey string `json:"base_key" mapstructure:"base_key"` ImageKeyPrefix string `json:"image_prefix" mapstructure:"image_prefix"` GifKeyPrefix string `json:"gif_prefix" mapstructure:"gif_prefix"` VideoKeyPrefix string `json:"video_prefix" mapstructure:"video_prefix"` }
type SQLDBConfig ¶
type TableConfig ¶
type TableConfig struct {
TableName string `json:"table_name" mapstructure:"table_name"`
}
type TablesConfig ¶
type TablesConfig struct { Discussions TableConfig `json:"discussions" mapstructure:"discussions"` Participants TableConfig `json:"participants" mapstructure:"participants"` PostBookmarks TableConfig `json:"post_bookmarks" mapstructure:"post_bookmarks"` Posts TableConfig `json:"posts" mapstructure:"posts"` Users TableConfig `json:"users" mapstructure:"users"` UserProfiles TableConfig `json:"user_profiles" mapstructure:"user_profiles"` Viewers TableConfig `json:"viewers" mapstructure:"viewers"` }
Click to show internal directories.
Click to hide internal directories.