config

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load()

Types

type Cfg

type Cfg struct {
	Flags               flags
	Firewall            string
	LogDir              string
	GrpcPort            string
	RestPort            string
	BlockedIps          int
	WhiteList           []string
	FakeSocksPorts      []int
	FakeSocksFails      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