Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct {
Cfg Config
}
func New ¶
func New(config Config) *Application
type Config ¶
type Config struct { MaxGoroutines int `env:"MAX_GOROUTINES" env-default:"15"` PostgresHost string `env:"POSTGRES_HOST" env-default:"localhost"` PostgresPort string `env:"POSTGRES_PORT" env-default:"5432"` PostgresUser string `env:"POSTGRES_USER" env-default:"admin"` PostgresPassword string `env:"POSTGRES_PASSWORD" env-default:"password"` PostgresDb string `env:"POSTGRES_DB" env-default:"database"` }
Click to show internal directories.
Click to hide internal directories.