config

package
v0.0.0-...-3f5ce87 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsynqRedisClientOpt

func AsynqRedisClientOpt(cfg Redis) asynq.RedisClientOpt

func LoadFile

func LoadFile(path string, out *Config) error

func RedisClient

func RedisClient(cfg Redis) *redis.Client

Types

type Config

type Config struct {
	Debug debug.Config `yaml:"debug" envPrefix:"DEBUG_"`

	Log telemetry.LogConfig `yaml:"log" envPrefix:"LOG_"`

	Metrics telemetry.MetricsConfig `yaml:"metrics" envPrefix:"METRICS_"`

	Redis Redis `yaml:"redis" envPrefix:"REDIS_"`

	Server server.Config `yaml:"server" envPrefix:"SERVER_"`

	Tracing telemetry.TracingConfig `yaml:"tracing" envPrefix:"TRACING_"`

	Work work.Config `yaml:"work" envPrefix:"WORK_"`
}

func Load

func Load(path string) (*Config, error)

type Redis

type Redis struct {
	Address  string `yaml:"address" env:"ADDRESS"`
	Password string `yaml:"password" env:"PASSWORD"`
	DB       int    `yaml:"db" env:"DB"`
}

Jump to

Keyboard shortcuts

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