dnstapio

package
v0.9.10 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DnstapIO

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

DnstapIO wraps the dnstap I/O routine.

func New

func New(w Protocol) *DnstapIO

New dnstap I/O routine from Protocol.

func (DnstapIO) Close

func (dio DnstapIO) Close() error

Close waits until the I/O routine is finished to return.

func (*DnstapIO) Dnstap

func (dio *DnstapIO) Dnstap(payload tap.Dnstap)

Dnstap enqueues the payload for log.

type Protocol

type Protocol interface {
	// Write takes a single frame at once.
	Write([]byte) (int, error)

	Close() error
}

Protocol is either `out.TCP` or `out.Socket`.

Jump to

Keyboard shortcuts

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