Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UnmarshalBase ¶
func UnmarshalBase(b *BaseConfig)
Types ¶
type AppConfig ¶
type AppConfig struct { BaseConfig ClientId string `mapstructure:"COGNITO_APP_CLIENT_ID"` UserPoolId string `mapstructure:"COGNITO_USER_POOL_ID"` DatabaseEndpoint string `mapstructure:"DB_ENDPOINT"` ProfileTableName string `mapstructure:"PROFILE_TABLE"` InternalApiHostname string `mapstructure:"INTERNAL_API_HOSTNAME"` }
func (AppConfig) GetProfileConnAddress ¶
func (AppConfig) IsLocalEnv ¶
type BaseConfig ¶
type BaseConfig struct { Env string `mapstructure:"ENV_NAME"` LogLevel string `mapstructure:"LOG_LEVEL"` LogToFile string `mapstructure:"LOG_TO_FILE"` Region string `mapstructure:"REGION"` Port string `mapstructure:"PORT"` GrpcPort string `mapstructure:"GRPC_PORT"` }
TODO move to util pkg
Click to show internal directories.
Click to hide internal directories.