collectfile

package
v0.0.0-...-770dba1 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2020 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const BufferSize = 512

BufferSize for the logger

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

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

Log implements an asyncronous cache.CollectLogger using a file for storage

func New

func New(fname string) *Log

New creates a new collector logger

func (*Log) Start

func (f *Log) Start() error

Start collector logger

func (*Log) Stop

func (f *Log) Stop()

Stop collector logger

func (*Log) Write

func (f *Log) Write(peer *peer.Peer, ts time.Time, client net.IP, name string, resolved []net.IP) error

Write implements cache.CollectLogger

Jump to

Keyboard shortcuts

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