config

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: Apache-2.0 Imports: 11 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 {
	Debug               bool   `yaml:"debug"`
	BPFProgramPath      string `yaml:"bpf_program_path"`
	BPFPinPath          string `yaml:"bpf_pin_path"`
	Iface               string `yaml:"iface"`
	APIListenAddr       string `yaml:"api_listen_addr"`
	GuardedPortsRange   string `yaml:"guarded_ports_range"`
	HandshakeWindowSecs int    `yaml:"handshake_window_secs"`
	ShutdownTimeout     int    `yaml:"shutdown_timeout"`

	ConfigPath string
}

func NewConfig

func NewConfig() (*Config, error)

func (*Config) ConfigureLogger

func (cfg *Config) ConfigureLogger()

ConfigureLogger конфигурирует логгер.

func (*Config) Validate

func (cfg *Config) Validate() error

Validate валидирует прочитанных значений конфигурации.

Jump to

Keyboard shortcuts

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