streamfilter

package
v0.0.0-...-ada256f Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: AGPL-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 Filter

type Filter struct {
	*instr.Instrumentation
	// contains filtered or unexported fields
}

Filter filters a stream of Providers through filters.Filter.

func New

func New(f filters.Filter, in <-chan t.Provider, out chan<- t.Provider) Filter

New creates a new Filter based on a Filter, an incoming and an outgoing channel.

func (*Filter) Filter

func (f *Filter) Filter(ctx context.Context) error

Filter filters a stream of providers, dropping those for which filter returns false

Jump to

Keyboard shortcuts

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