package
Version:
v0.0.1
Opens a new window with list of versions in this module.
Published: Feb 4, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Config struct {
Server Server `koanf:"server"`
Database Database `koanf:"database"`
Events Events `koanf:"events"`
Delivery Delivery `koanf:"delivery"`
}
type Database struct {
URL string `koanf:"url"`
ConnMaxIdleTime time.Duration `koanf:"conn_max_idle_time"`
ConnMaxLifetime time.Duration `koanf:"conn_max_lifetime"`
MaxOpenConns int `koanf:"max_open_conns"`
MaxIdleConns int `koanf:"max_idle_conns"`
}
type Delivery struct {
Timeout time.Duration `koanf:"timeout"`
UserAgent string `koanf:"user_agent"`
}
type Events struct {
Timeout time.Duration `koanf:"timeout"`
}
type Server struct {
Address string `koanf:"address"`
Proxies []string `koanf:"proxies"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.