Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Options( fx.Provide(func() (*Config, error) { var cfg Config if getenvBoolWithDefault("API_LOCAL", false) { if err := godotenv.Load(); err != nil { return nil, err } } if err := configor.New(&configor.Config{ErrorOnUnmatchedKeys: true}).Load(&cfg, "cmd/api/configuration/default.json"); err != nil { return nil, err } return &cfg, nil }), )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { APIProd bool APILocal bool `default:"true"` APIHTTP HTTPConfig }
Click to show internal directories.
Click to hide internal directories.