config

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2026 License: Apache-2.0 Imports: 6 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 {
	DureqdConfig DureqdConfig `koanf:"dureqd"`
	RedisConfig  RedisConfig  `koanf:"redis"`
}

func GetConfig

func GetConfig() (*Config, error)

GetConfig는 설정을 로드하고 반환합니다

type DureqdConfig

type DureqdConfig struct {
	NodeID         string   `koanf:"nodeId"`
	ApiAddress     string   `koanf:"apiAddress"`
	GrpcAddress    string   `koanf:"grpcAddress"`
	Concurrency    int      `koanf:"concurrency"`
	Prefix         string   `koanf:"prefix"`
	Mode           string   `koanf:"mode"`           // "full", "queue", "scheduler", "workflow", "monitor" or comma-separated combo
	Handlers       []string `koanf:"handlers"`       // enabled handler task types; empty = all
	DrainTimeoutMs int      `koanf:"drainTimeoutMs"` // max time (ms) to wait for in-flight jobs during shutdown; 0 = 30s default
}

type RedisConfig

type RedisConfig struct {
	URL          string   `koanf:"url"`
	ClusterAddrs []string `koanf:"clusterAddrs"`
	Username     string   `koanf:"username"`
	Password     string   `koanf:"password"`
	DB           int      `koanf:"db"`
	PoolSize     int      `koanf:"poolSize"`
}

Jump to

Keyboard shortcuts

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