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.