sinkcluster

package
v2.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterCountResult

type ClusterCountResult struct {
	Sum           uint64
	ChunkIncluded int64
}

type ClusterCounter

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

func NewClusterCounter

func NewClusterCounter(from time.Time, to time.Time) *ClusterCounter

func (ClusterCounter) Count

func (c ClusterCounter) Count(reader io.Reader) (*ClusterCountResult, error)

type ClusterWriter

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

func NewClusterWriter

func NewClusterWriter(writer WriteSyncer, writeInterval time.Duration, sink *ipsetsink.IPSetSink) *ClusterWriter

func (*ClusterWriter) AddIPToSet

func (c *ClusterWriter) AddIPToSet(ipAddress string)

func (*ClusterWriter) WriteIPSetToDisk

func (c *ClusterWriter) WriteIPSetToDisk()

type SinkEntry

type SinkEntry struct {
	RecordingStart time.Time `json:"recordingStart"`
	RecordingEnd   time.Time `json:"recordingEnd"`
	Recorded       []byte    `json:"recorded"`
}

type WriteSyncer

type WriteSyncer interface {
	Sync() error
	io.Writer
}

Jump to

Keyboard shortcuts

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