config

package
v0.0.0-...-b3f7bda Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(k string) interface{}

func GetString

func GetString(k string) interface{}

Types

type AuditConfig

type AuditConfig struct {
	TimeOut        int    `mapstructure:"TimeOut"`
	Snaplen        int    `mapstructure:"Snaplen"`
	Promisc        bool   `mapstructure:"Promisc"`
	BufferSize     int    `mapstructure:"BufferSize"`
	Interface      string `mapstructure:"Interface"`
	EnablePcapDump bool   `mapstructure:"EnablePcapDump"`
	BPF            string `mapstructure:"BPF"`
}

type DebugConfig

type DebugConfig struct {
	LogLevel int `mapstructure:"LogLevel"`
}

type IniFile

type IniFile struct {
	PathConfig  `mapstructure:"Path"`
	ZmqConfig   `mapstructure:"Zmq"`
	AuditConfig `mapstructure:"Audit"`
	DebugConfig `mapstructure:"Debug"`
}
var Config IniFile

type PathConfig

type PathConfig struct {
	LogPath       string `mapstructure:"Log"`
	DumpPath      string `mapstructure:"Dump"`
	CacheNetaudit string `mapstructure:"CacheNetaudit"` // NFS缓存路径
	PcapDumpPath  string `mapstructure:"PcapDumpPath"`
}

type ZmqConfig

type ZmqConfig struct {
	ZmqClient string `mapstructure:"Client"`
	ZmqId     string `mapstructure:"ModuleNetaudit"`
	ZmqUiId   string `mapstructure:"ModuleUi"`
}

Jump to

Keyboard shortcuts

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