Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeSegments ¶
func DecodeSegments(in map[string]any) (*config.ConfigNamespace[map[string]SegmentConfig, Segments], error)
Types ¶
type SegmentConfig ¶
type SegmentConfig struct { Excludes []SegmentMatcherFields Includes []SegmentMatcherFields }
type SegmentFilter ¶
type SegmentFilter interface { // ShouldExcludeCoarse returns whether the given fields should be excluded on a coarse level. ShouldExcludeCoarse(SegmentMatcherFields) bool // ShouldExcludeFine returns whether the given fields should be excluded on a fine level. ShouldExcludeFine(SegmentMatcherFields) bool }
type SegmentMatcherFields ¶
SegmentMatcherFields is a matcher for a segment include or exclude. All of these are Glob patterns.
Click to show internal directories.
Click to hide internal directories.