Documentation ¶
Index ¶
- func GetPriority(facility string) (syslog.Priority, error)
- type DnstapSender
- type FakeLogger
- type FluentdClient
- type LogFile
- func (o *LogFile) Channel() chan dnsutils.DnsMessage
- func (o *LogFile) Cleanup() error
- func (o *LogFile) Compress()
- func (o *LogFile) Flush()
- func (c *LogFile) LogError(msg string, v ...interface{})
- func (c *LogFile) LogInfo(msg string, v ...interface{})
- func (o *LogFile) MaxSize() int64
- func (o *LogFile) OpenFile() error
- func (o *LogFile) PostRotateCommand(filename string)
- func (c *LogFile) ReadConfig()
- func (o *LogFile) Rotate() error
- func (o *LogFile) Run()
- func (o *LogFile) Stop()
- func (o *LogFile) Write(d []byte)
- type PcapWriter
- func (o *PcapWriter) Channel() chan dnsutils.DnsMessage
- func (o *PcapWriter) Cleanup() error
- func (o *PcapWriter) Compress()
- func (o *PcapWriter) GetIpPort(dm *dnsutils.DnsMessage) (string, int, string, int)
- func (c *PcapWriter) LogError(msg string, v ...interface{})
- func (c *PcapWriter) LogInfo(msg string, v ...interface{})
- func (o *PcapWriter) MaxSize() int64
- func (o *PcapWriter) OpenFile() error
- func (o *PcapWriter) PostRotateCommand(filename string)
- func (c *PcapWriter) ReadConfig()
- func (o *PcapWriter) Rotate() error
- func (o *PcapWriter) Run()
- func (o *PcapWriter) Stop()
- func (o *PcapWriter) Write(dm dnsutils.DnsMessage, pkt []gopacket.SerializableLayer)
- type StdOut
- type Syslog
- type TcpClient
- type Webserver
- func (o *Webserver) BasicAuth(w http.ResponseWriter, r *http.Request) bool
- func (o *Webserver) Channel() chan dnsutils.DnsMessage
- func (s *Webserver) ListenAndServe()
- func (o *Webserver) LogError(msg string, v ...interface{})
- func (o *Webserver) LogInfo(msg string, v ...interface{})
- func (c *Webserver) ReadConfig()
- func (s *Webserver) Run()
- func (o *Webserver) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DnstapSender ¶
type DnstapSender struct {
// contains filtered or unexported fields
}
func NewDnstapSender ¶
func NewDnstapSender(config *dnsutils.Config, logger *logger.Logger) *DnstapSender
func (*DnstapSender) Channel ¶
func (o *DnstapSender) Channel() chan dnsutils.DnsMessage
func (*DnstapSender) LogError ¶
func (o *DnstapSender) LogError(msg string, v ...interface{})
func (*DnstapSender) LogInfo ¶
func (o *DnstapSender) LogInfo(msg string, v ...interface{})
func (*DnstapSender) ReadConfig ¶
func (o *DnstapSender) ReadConfig()
func (*DnstapSender) Run ¶
func (o *DnstapSender) Run()
func (*DnstapSender) Stop ¶
func (o *DnstapSender) Stop()
type FakeLogger ¶
type FakeLogger struct {
// contains filtered or unexported fields
}
func NewFakeLogger ¶
func NewFakeLogger() *FakeLogger
func (*FakeLogger) Channel ¶
func (o *FakeLogger) Channel() chan dnsutils.DnsMessage
func (*FakeLogger) Run ¶
func (o *FakeLogger) Run()
func (*FakeLogger) Stop ¶
func (o *FakeLogger) Stop()
type FluentdClient ¶
type FluentdClient struct {
// contains filtered or unexported fields
}
func NewFluentdClient ¶
func NewFluentdClient(config *dnsutils.Config, logger *logger.Logger) *FluentdClient
func (*FluentdClient) Channel ¶
func (o *FluentdClient) Channel() chan dnsutils.DnsMessage
func (*FluentdClient) LogError ¶
func (o *FluentdClient) LogError(msg string, v ...interface{})
func (*FluentdClient) LogInfo ¶
func (o *FluentdClient) LogInfo(msg string, v ...interface{})
func (*FluentdClient) ReadConfig ¶
func (o *FluentdClient) ReadConfig()
func (*FluentdClient) Run ¶
func (o *FluentdClient) Run()
func (*FluentdClient) Stop ¶
func (o *FluentdClient) Stop()
type LogFile ¶
type LogFile struct {
// contains filtered or unexported fields
}
func NewLogFile ¶
func (*LogFile) Channel ¶
func (o *LogFile) Channel() chan dnsutils.DnsMessage
func (*LogFile) PostRotateCommand ¶ added in v0.5.0
func (*LogFile) ReadConfig ¶
func (c *LogFile) ReadConfig()
type PcapWriter ¶
type PcapWriter struct {
// contains filtered or unexported fields
}
func NewPcapFile ¶
func NewPcapFile(config *dnsutils.Config, console *logger.Logger) *PcapWriter
func (*PcapWriter) Channel ¶
func (o *PcapWriter) Channel() chan dnsutils.DnsMessage
func (*PcapWriter) Cleanup ¶ added in v0.5.0
func (o *PcapWriter) Cleanup() error
func (*PcapWriter) Compress ¶ added in v0.5.0
func (o *PcapWriter) Compress()
func (*PcapWriter) GetIpPort ¶
func (o *PcapWriter) GetIpPort(dm *dnsutils.DnsMessage) (string, int, string, int)
func (*PcapWriter) LogError ¶
func (c *PcapWriter) LogError(msg string, v ...interface{})
func (*PcapWriter) LogInfo ¶
func (c *PcapWriter) LogInfo(msg string, v ...interface{})
func (*PcapWriter) MaxSize ¶
func (o *PcapWriter) MaxSize() int64
func (*PcapWriter) OpenFile ¶
func (o *PcapWriter) OpenFile() error
func (*PcapWriter) PostRotateCommand ¶ added in v0.5.0
func (o *PcapWriter) PostRotateCommand(filename string)
func (*PcapWriter) ReadConfig ¶
func (c *PcapWriter) ReadConfig()
func (*PcapWriter) Rotate ¶
func (o *PcapWriter) Rotate() error
func (*PcapWriter) Run ¶
func (o *PcapWriter) Run()
func (*PcapWriter) Stop ¶
func (o *PcapWriter) Stop()
func (*PcapWriter) Write ¶
func (o *PcapWriter) Write(dm dnsutils.DnsMessage, pkt []gopacket.SerializableLayer)
type StdOut ¶
type StdOut struct {
// contains filtered or unexported fields
}
func (*StdOut) Channel ¶
func (o *StdOut) Channel() chan dnsutils.DnsMessage
func (*StdOut) ReadConfig ¶
func (c *StdOut) ReadConfig()
type Syslog ¶
type Syslog struct {
// contains filtered or unexported fields
}
func (*Syslog) Channel ¶
func (o *Syslog) Channel() chan dnsutils.DnsMessage
func (*Syslog) ReadConfig ¶
func (c *Syslog) ReadConfig()
type TcpClient ¶
type TcpClient struct {
// contains filtered or unexported fields
}
func NewTcpClient ¶
func (*TcpClient) Channel ¶
func (o *TcpClient) Channel() chan dnsutils.DnsMessage
func (*TcpClient) ReadConfig ¶
func (o *TcpClient) ReadConfig()
type Webserver ¶
type Webserver struct {
// contains filtered or unexported fields
}
func NewWebserver ¶
func (*Webserver) Channel ¶
func (o *Webserver) Channel() chan dnsutils.DnsMessage
func (*Webserver) ListenAndServe ¶
func (s *Webserver) ListenAndServe()
func (*Webserver) ReadConfig ¶
func (c *Webserver) ReadConfig()
Click to show internal directories.
Click to hide internal directories.