Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIConfig ¶
type APIConfig struct {
AccountServiceGRPCURL string `default:"localhost:4040" envconfig:"ACCOUNT_SERVICE_GRPC_URL"` // domain:port
}
func NewAPIConfig ¶
type AppConfig ¶
type AppConfig struct { Env AppEnv `default:"local" envconfig:"APP_ENV"` Port int `default:"5000"` GCPProjectID string `default:"local" envconfig:"GCP_PROJECT_ID"` AllowedOrigins []string `default:"http://local.eitan-flash.com:3000" envconfig:"ALLOWED_ORIGINS"` RedisURL string `default:"localhost:6379" envconfig:"REDIS_URL"` }
func NewAppConfig ¶
func (AppConfig) IsDeployedEnv ¶
type DBConfig ¶
type DBConfig struct { Driver string `default:"mysql"` DBName string `default:"eitandb" envconfig:"DB_NAME"` User string `default:"mysql" envconfig:"DB_USER"` Password string `default:"mysql" envconfig:"DB_PASSWORD"` URL string `default:"localhost:13306" envconfig:"DB_URL"` }
func NewDBConfig ¶
Click to show internal directories.
Click to hide internal directories.