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