writer

package
v0.0.0-...-b78484e Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: BSD-2-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Dir              string
	File             string
	CompressionLevel int
	Flush            bool
	RotateInterval   time.Duration
	RotateSize       uint64
	Partial          bool
	Log              bool
}

type Metrics

type Metrics struct {
	WriteTimes metrics.DurationStats
	sync.RWMutex
}

type Writer

type Writer struct {
	Config

	sync.Mutex
	// contains filtered or unexported fields
}

func Open

func Open(cfg Config) (w *Writer, err error)

func (*Writer) Close

func (w *Writer) Close() (err error)

func (*Writer) Metrics

func (w *Writer) Metrics() (m Metrics)

func (*Writer) Write

func (w *Writer) Write(ss []*analyzer.FlowStats) (err error)

Jump to

Keyboard shortcuts

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