Documentation
¶
Index ¶
Constants ¶
View Source
const ( APIServerModeHTTP = "http" APIServerModeGRPC = "grpc" )
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"`
SettingsDBPath string `yaml:"db_path"`
ManagementBootstrapToken string `yaml:"management_bootstrap_token"`
APIListenAddr string `yaml:"api_listen_addr"`
APIServerMode string `yaml:"api_server_mode"`
ShutdownTimeoutSec int `yaml:"shutdown_timeout_sec"`
CrtPath string `yaml:"crt_path"`
KeyPath string `yaml:"key_path"`
ConfigPath string
}
func (*Config) ConfigureLogger ¶
func (cfg *Config) ConfigureLogger()
ConfigureLogger конфигурирует логгер.
Click to show internal directories.
Click to hide internal directories.