Documentation ¶
Index ¶
Constants ¶
View Source
const (
LOG_PATH string = "/var/log/ngk.log"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClientConfig ¶
type ClientConfig struct { Name string `mapstructure:"name"` SourceAddress string `mapstructure:"source_address"` SigningKey string `mapstructure:"signing_key"` EncryptionKey string `mapstructure:"encryption_key"` ServiceAccess string `mapstructure:"service_access"` }
func LoadClientConfig ¶
func LoadClientConfig() (arrayClientConfig []ClientConfig, err error)
type Config ¶
type Config struct { Device string `mapstructure:"DEVICE"` Protocol string `mapstructure:"PROTOCOL"` Port string `mapstructure:"PORT"` Snapshot_len int `mapstructure:"SNAPSHOT_LEN"` Promiscuous bool `mapstructure:"PROMISCUOUS"` Timeout int `mapstructure:"TIMEOUT"` ClientConf string `mapstructure:"CLIENT_CONFIG"` IptablesTablename string `mapstructure:"IPTABLES_NAME"` IptablesChain string `mapstructure:"IPTABLES_CHAIN"` RuleExpires int `mapstructure:"RULE_EXPIRES"` LogPath string `mapstructure:"LOG_PATH"` IptablesAccessRuleConf string `mapstructure:"IPTABLES_ACCESS_RULE_REGEX"` }
func LoadConfig ¶
type SPAServerHandler ¶
type SPAServerHandler struct {
// contains filtered or unexported fields
}
func (SPAServerHandler) Init ¶
func (SPAServerHandler) Init()
Click to show internal directories.
Click to hide internal directories.