Documentation ¶
Index ¶
- func KeyLogConfCheck(conf KeyLogConfFile) error
- func ProductRulesCheck(conf *ProductRulesFile) error
- func RuleListCheck(conf *RuleFileList) error
- type ConfModKeyLog
- type KeyLogConfFile
- type KeyLogRule
- type KeyLogRuleFile
- type KeyLogTable
- type ModuleKeyLog
- type ProductRules
- type ProductRulesFile
- type RuleFileList
- type RuleList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KeyLogConfCheck ¶
func KeyLogConfCheck(conf KeyLogConfFile) error
func ProductRulesCheck ¶
func ProductRulesCheck(conf *ProductRulesFile) error
func RuleListCheck ¶
func RuleListCheck(conf *RuleFileList) error
Types ¶
type ConfModKeyLog ¶
type ConfModKeyLog struct { Basic struct { DataPath string // path of config data (key_log) } Log struct { LogPrefix string // log file prefix LogDir string // log file dir RotateWhen string // rotate time BackupCount int // log file backup number } }
ConfModKeyLog represents the basic config for mod_key_log.
func ConfLoad ¶
func ConfLoad(filePath string, confRoot string) (*ConfModKeyLog, error)
ConfLoad loads config from file
func (*ConfModKeyLog) Check ¶
func (cfg *ConfModKeyLog) Check(confRoot string) error
Check validates module config
type KeyLogConfFile ¶
type KeyLogConfFile struct { Version *string // version of the config Config *ProductRulesFile }
type KeyLogRule ¶
type KeyLogRuleFile ¶
type KeyLogRuleFile struct {
Cond *string // condition for key_log
}
type KeyLogTable ¶
type KeyLogTable struct {
// contains filtered or unexported fields
}
func NewKeyLogTable ¶
func NewKeyLogTable() *KeyLogTable
func (*KeyLogTable) Update ¶
func (t *KeyLogTable) Update(conf keyLogConf)
type ModuleKeyLog ¶
type ModuleKeyLog struct {
// contains filtered or unexported fields
}
ModuleKeyLog writes key logs in NSS key log format so that external programs(eg. wireshark) can decrypt TLS connections for trouble shooting.
For more information about NSS key log format, see: https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS/Key_Log_Format
func NewModuleKeyLog ¶
func NewModuleKeyLog() *ModuleKeyLog
func (*ModuleKeyLog) Init ¶
func (m *ModuleKeyLog) Init(cbs *bfe_module.BfeCallbacks, whs *web_monitor.WebHandlers, cr string) error
func (*ModuleKeyLog) Name ¶
func (m *ModuleKeyLog) Name() string
type ProductRules ¶
type ProductRulesFile ¶
type ProductRulesFile map[string]*RuleFileList // product => list of key_log rules
type RuleFileList ¶
type RuleFileList []KeyLogRuleFile
type RuleList ¶
type RuleList []KeyLogRule
Click to show internal directories.
Click to hide internal directories.