strict

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package strict provides an implementation to match strings against a set of exact match string filters.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FilterSet

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

FilterSet encapsulates a set of exact string match filters. FilterSet is exported for convenience, but has unexported fields and should be constructed through NewFilterSet.

regexpFilterSet satisfies the FilterSet interface from "go.opentelemetry.io/collector/internal/processor/filterset"

func NewFilterSet

func NewFilterSet(filters []string) *FilterSet

NewFilterSet constructs a FilterSet of exact string matches.

func (*FilterSet) Matches

func (sfs *FilterSet) Matches(toMatch string) bool

Matches returns true if the given string matches any of the FilterSet's filters.

Jump to

Keyboard shortcuts

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