submission

package
v0.0.0-...-25bf8ac Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	MaxDelay       time.Duration
	MaxStored      int
	ChanBufferSize int
}

type Submitter

type Submitter interface {
	AddEvent(*ippb.Event)
	AddAggregate(*ippb.Aggregate)
	Close()
}

A Submitter sends events to a remote iprep collector, trying to keep the overall request rate under control. To do so, the Submitter will perform local aggregation of events before sending them to the remote server. Options can control the maximum time delay and the overall memory impact of the submission queue.

func New

func New(conn *grpc.ClientConn, opts *Options) Submitter

New creates a new Submitter pointing at the specified collector addr.

Jump to

Keyboard shortcuts

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