aggregator

package
Version: v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2019 License: GPL-3.0, GPL-3.0-or-later Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Aggregator

type Aggregator struct {
	Count        int
	DatasOrdered map[int]*string
	Datas        []*string
}

Aggregator represents a unique log line

type Aggregators

type Aggregators []*Aggregator

Aggregators contains a slice of Aggregator

func NewAggregators

func NewAggregators() *Aggregators

NewAggregators create aggregators

type Builder

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

Builder wraps operations needed to manage aggregators

func NewBuilder

func NewBuilder() *Builder

NewBuilder create builder

func (*Builder) Aggregate

func (b *Builder) Aggregate(positions []int, tokens *[]tokenizer.Token, trans *transformer.Transformers)

Aggregate aggregates tokens according to positions

func (*Builder) Get

func (b *Builder) Get() *Aggregators

Get retrieve aggregators from builder

func (*Builder) SetCounterIfAny

func (b *Builder) SetCounterIfAny()

SetCounterIfAny set counter value among other value fields

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL