count

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Counts the number of passing flows and prints the result on termination. Typically used to test flow counts before and after a filter segment, best used with `prefix: pre` and `prefix: post`.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Count

type Count struct {
	segments.BaseSegment

	Prefix string // optional, default is empty, a string which is printed along with the result
	// contains filtered or unexported fields
}

func (Count) New

func (segment Count) New(config map[string]string) segments.Segment

func (*Count) Run

func (segment *Count) Run(wg *sync.WaitGroup)

Jump to

Keyboard shortcuts

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