config

package
v0.0.0-...-c888d9e Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2017 License: MIT Imports: 9 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseConfig

func ParseConfig(configFile string) error

ParseConfig and return error if its not valid

Types

type Configurations

type Configurations struct {
	Learning    bool
	CheckUser   bool
	CheckSource bool

	LogLevel uint
	LogPath  string

	DBType string
	DB     uint `json:"-"`

	DBDir string

	ListenIP   string
	ListenPort uint

	TargetIP   string
	TargetPort uint

	TLSPrivateKey  string
	TLSCertificate string

	HTTP         bool
	HTTPSSL      bool
	HTTPAddr     string
	HTTPPassword string

	Action     string
	ActionFunc func() error `json:"-"`

	Timeout time.Duration

	SyncInterval time.Duration
}

Configurations structure to hold user configurations

var Config Configurations

Config holds current configs

Jump to

Keyboard shortcuts

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