conf

package
v0.9.42 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	fx.Out `yaml:"-" json:"-"`

	DB               db.Config           `conf:"db" yaml:"db" json:"db"`
	Log              log.Config          `conf:"log" yaml:"log" json:"log"`
	APIServer        server.Config       `conf:"server" yaml:"server" json:"server"`
	Metrics          metrics.Config      `conf:"metrics" yaml:"metrics" json:"metrics"`
	GC               gc.Config           `conf:"gc" yaml:"gc" json:"gc"`
	Cache            xcache.Config       `conf:"cache" yaml:"cache" json:"cache"`
	ProviderQuota    providerQuotaConfig `conf:"provider_quota" yaml:"provider_quota" json:"provider_quota"`
	DisableSSLVerify bool                `name:"disable_ssl_verify" yaml:"-" json:"-"`
	AllowNoAuth      bool                `name:"allow_no_auth" yaml:"-" json:"-"`
	APIKeyPrefix     string              `name:"api_key_prefix" yaml:"-" json:"-"`
}

func Load

func Load() (Config, error)

Load loads configuration from YAML file and environment variables.

Jump to

Keyboard shortcuts

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