config

package
v1.203.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 8, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Options(
	token.Module,
	fx.Provide(NewConfig),
	config.Module,
	fx.Decorate(decorateConfig),
	fx.Provide(healthConfig),
	fx.Provide(migrateConfig),
	fx.Provide(tokenConfig),
)

Module for fx.

Functions

func IsEnabled added in v1.93.2

func IsEnabled(cfg *Config) bool

IsEnabled for config.

Types

type Config

type Config struct {
	Health         *health.Config  `yaml:"health,omitempty" json:"health,omitempty" toml:"health,omitempty"`
	Migrate        *migrate.Config `yaml:"migrate,omitempty" json:"migrate,omitempty" toml:"migrate,omitempty"`
	Token          *token.Config   `yaml:"token,omitempty" json:"token,omitempty" toml:"token,omitempty"`
	*config.Config `yaml:",inline" json:",inline" toml:",inline"`
}

Config for the service.

func NewConfig added in v1.84.0

func NewConfig(i *cmd.InputConfig) (*Config, error)

NewConfigurator for config.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL