querylog

package
v0.0.0-...-92f2412 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Time       int64
	Origin     string
	Name       string
	Qtype      uint16
	Rcode      int
	Answers    int
	Targets    []string
	LabelName  string
	RemoteAddr string
	ClientAddr string
	HasECS     bool
}

easyjson:json

type FileLogger

type FileLogger struct {
	// contains filtered or unexported fields
}

func NewFileLogger

func NewFileLogger(filename string, maxsize int, keep int) (*FileLogger, error)

func (*FileLogger) Write

func (l *FileLogger) Write(e *Entry) error

type QueryLogger

type QueryLogger interface {
	Write(*Entry) error
}

Jump to

Keyboard shortcuts

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