Documentation
¶
Index ¶
- func GetPriority(facility string) (syslog.Priority, error)
- type DnstapSender
- type FakeGen
- type JsonTcpSender
- type LogFile
- func (o *LogFile) Channel() chan dnsutils.DnsMessage
- func (o *LogFile) Flush()
- func (o *LogFile) MaxSize() int64
- func (o *LogFile) OpenFile(fpath string) error
- func (c *LogFile) ReadConfig()
- func (o *LogFile) Rotate() error
- func (o *LogFile) Run()
- func (o *LogFile) Stop()
- func (o *LogFile) Write(d []byte)
- type StdOut
- type Syslog
- 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 FakeGen ¶
type FakeGen struct {
// contains filtered or unexported fields
}
func NewFakeGenerator ¶
func NewFakeGenerator() *FakeGen
func (*FakeGen) Channel ¶
func (o *FakeGen) Channel() chan dnsutils.DnsMessage
type JsonTcpSender ¶
type JsonTcpSender struct {
// contains filtered or unexported fields
}
func NewJsonTcpSender ¶
func NewJsonTcpSender(config *dnsutils.Config, logger *logger.Logger) *JsonTcpSender
func (*JsonTcpSender) Channel ¶
func (o *JsonTcpSender) Channel() chan dnsutils.DnsMessage
func (*JsonTcpSender) LogError ¶
func (o *JsonTcpSender) LogError(msg string, v ...interface{})
func (*JsonTcpSender) LogInfo ¶
func (o *JsonTcpSender) LogInfo(msg string, v ...interface{})
func (*JsonTcpSender) ReadConfig ¶
func (o *JsonTcpSender) ReadConfig()
func (*JsonTcpSender) Run ¶
func (o *JsonTcpSender) Run()
func (*JsonTcpSender) Stop ¶
func (o *JsonTcpSender) 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) ReadConfig ¶
func (c *LogFile) ReadConfig()
type StdOut ¶
type StdOut struct {
// contains filtered or unexported fields
}
func (*StdOut) Channel ¶
func (o *StdOut) Channel() chan dnsutils.DnsMessage
func (*StdOut) Print ¶
func (o *StdOut) Print(dm 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 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.