Documentation ¶
Index ¶
- Variables
- func Unmarshal(params UnmarshalParams) error
- type Config
- func (cfg *Config) Auth0Config() *auth0.Config
- func (cfg *Config) GRPCConfig() *grpc.Config
- func (cfg *Config) HTTPConfig() *http.Config
- func (cfg *Config) NSQConfig() *nsq.Config
- func (cfg *Config) OTELConfig() *otel.Config
- func (cfg *Config) PGConfig() *pg.Config
- func (cfg *Config) RedisConfig() *redis.Config
- func (cfg *Config) RistrettoConfig() *ristretto.Config
- func (cfg *Config) TransportConfig() *transport.Config
- type Configurator
- type UnmarshalParams
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Module for fx. Module = fx.Options( ConfiguratorModule, UnmarshalModule, ConfigModule, marshaller.Module, ) // ConfiguratorModule for fx. ConfiguratorModule = fx.Provide(NewConfigurator) // UnmarshalModule for fx. UnmarshalModule = fx.Invoke(Unmarshal) // ConfigModule for fx. ConfigModule = fx.Options( fx.Provide(redisConfig), fx.Provide(ristrettoConfig), fx.Provide(auth0Config), fx.Provide(pgConfig), fx.Provide(otelConfig), fx.Provide(transportConfig), fx.Provide(grpcConfig), fx.Provide(httpConfig), fx.Provide(nsqConfig), ) )
Functions ¶
Types ¶
type Config ¶
type Config struct { Cache cache.Config `yaml:"cache" json:"cache" toml:"cache"` Security security.Config `yaml:"security" json:"security" toml:"security"` SQL sql.Config `yaml:"sql" json:"sql" toml:"sql"` OTEL otel.Config `yaml:"otel" json:"otel" toml:"otel"` Transport transport.Config `yaml:"transport" json:"transport" toml:"transport"` }
Config for the service.
func (*Config) Auth0Config ¶
func (*Config) GRPCConfig ¶
func (*Config) HTTPConfig ¶
func (*Config) OTELConfig ¶ added in v1.86.0
func (*Config) RedisConfig ¶
func (*Config) RistrettoConfig ¶
func (*Config) TransportConfig ¶ added in v1.70.0
type Configurator ¶
type Configurator interface { RedisConfig() *redis.Config RistrettoConfig() *ristretto.Config Auth0Config() *auth0.Config PGConfig() *pg.Config OTELConfig() *otel.Config TransportConfig() *transport.Config GRPCConfig() *grpc.Config HTTPConfig() *http.Config NSQConfig() *nsq.Config }
Configurator for config.
type UnmarshalParams ¶ added in v1.78.0
type UnmarshalParams struct { fx.In Configurator Configurator Config *cmd.InputConfig }
UnmarshalParams for config.
Click to show internal directories.
Click to hide internal directories.