Documentation
¶
Index ¶
Constants ¶
View Source
const ( LogFormatDefault string = "default" LogFormatBitshield string = LogFormatDefault LogFormatSyslog string = "syslog" )
View Source
const (
HTTP string = "http"
)
Variables ¶
Functions ¶
func ExtractTheListFile ¶
func ExtractTheRegexListFile ¶
Types ¶
type Config ¶
type Config struct {
IPAddress string `toml:"ipaddress"`
Port int `toml:"port"`
Protocol string `toml:"protocol"`
HTTP HTTPConfig `toml:"http"`
}
func GenerateDefaultConfig ¶
func GenerateDefaultConfig() (cnf Config)
func (Config) MakeTemplateFile ¶
type HTTPConfig ¶
type HTTPConfig struct {
IPAddress string `toml:"ipaddress"`
Port int `toml:"port"`
ListenLimit int `toml:"listen_limit"`
Verbose bool `toml:"verbose"`
MITM bool `toml:"mitm"`
TLS bool `toml:"tls"`
TLSCertFile string `toml:"tls_cert_file"`
TLSKeyFile string `toml:"tls_key_file"`
ACL aclConfig `toml:"acl"`
Perm permConfig `toml:"perm"`
Log LogConfig `toml:"log"`
AccessLog LogConfig `toml:"access_log"`
}
Click to show internal directories.
Click to hide internal directories.