Documentation ¶
Index ¶
Constants ¶
View Source
const ( DEV = "development" STG = "staging" PROD = "production" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { AppName string `default:"monorepo" env:"APP_NAME" required:"true" yaml:"app_name"` Env string `default:"development" env:"ENV" yaml:"env"` OAuthGithub OAuthGithub `yaml:"oauth_github"` Database Database `yaml:"database"` Server Server `yaml:"server"` }
func LoadConfig ¶
type Database ¶
type Database struct { Host string `default:"localhost" env:"DB_HOST" yaml:"host"` Port string `default:"5432" env:"DB_PORT" yaml:"port"` User string `default:"postgres" env:"DB_USER" yaml:"user"` Password string `default:"postgres" env:"DB_PASSWORD" yaml:"password"` Name string `default:"monorepo" env:"DB_NAME" yaml:"name"` }
Database - Database configuration for Postgres
type DoctorConfig ¶
type DoctorConfig struct { AppName string `default:"monorepo" env:"APP_NAME" required:"true" yaml:"app_name"` Database Database `yaml:"database"` }
func LoadDoctorConfig ¶
func LoadDoctorConfig(filename string) (*DoctorConfig, error)
type OAuthGithub ¶
type OAuthGithub struct { ClientID string `env:"GITHUB_CLIENT_ID" yaml:"client_id"` ClientSecret string `env:"GITHUB_CLIENT_SECRET" yaml:"client_secret"` RedirectUri string `env:"GITHUB_REDIRECT_URI" yaml:"redirect_uri"` }
OAuthGithub - OAuth configuration for Github
Click to show internal directories.
Click to hide internal directories.