Documentation ¶
Index ¶
Constants ¶
View Source
const ( Development = RunEnv("Development") Staging = RunEnv("Staging") Production = RunEnv("Production") )
Variables ¶
This section is empty.
Functions ¶
func GetAppLogger ¶
func InitAppConfig ¶
func InitAppConfig() error
func InitAppLogger ¶
Types ¶
type AppConfig ¶
type AppConfig struct { Env RunEnv `envconfig:"RUN_ENV" required:"true"` DatabaseUrl string `envconfig:"DATABASE_URL" default:"postgres://postgres:postgres@127.0.0.1:/postgres?sslmode=disable"` }
func GetAppConfig ¶
func GetAppConfig() AppConfig
type Handlers ¶
type Handlers struct { HealthzHandler handler.HealthzHandler GroupHandler handler.GroupHandler }
func NewHandlers ¶
func NewHandlers() Handlers
Click to show internal directories.
Click to hide internal directories.