config

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IsDocker        = "docker"
	IsIptables      = "iptables"
	IsMock          = "mock"
	WorkerSleepHour = 6
)

Variables

This section is empty.

Functions

func Load

func Load()

func ReadFlags

func ReadFlags()

Types

type Cfg

type Cfg struct {
	Flags               flags
	Firewall            string
	LogDir              string
	GrpcPort            string
	RestPort            string
	BlockedIps          int
	AbuseipdbApiKey     string
	AbuseipdbIPs        int
	WhiteList           []string
	TrapPorts           []int
	TrapFails           int
	ServiceCheckMinutes int
	ServiceFails        int
	Services            []Service `json:"Service"`
}

func Get

func Get() *Cfg

type Service

type Service struct {
	Name    string
	On      bool
	LogFile string
	Regxp   string
}

Jump to

Keyboard shortcuts

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