config

package
v0.0.0-...-0944201 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup(app *AppConfig)

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 (a AppConfig) GetProfileConnAddress() string

func (AppConfig) IsLocalEnv

func (a AppConfig) IsLocalEnv() bool

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL