filter

package
v1.75.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Filter

func Filter(h heartbeat.Heartbeat, config Config) error

Filter determines, following the passed in configurations, if a heartbeat should be skipped.

func WithFiltering

func WithFiltering(config Config) heartbeat.HandleOption

WithFiltering initializes and returns a heartbeat handle option, which can be used in a heartbeat processing pipeline to filter heartbeats following the provided configurations.

func WithLengthValidator added in v1.53.2

func WithLengthValidator() heartbeat.HandleOption

WithLengthValidator initializes and returns a heartbeat handle option, which can be used to abort execution if all heartbeats were filtered and the list is empty.

Types

type Config

type Config struct {
	Exclude                    []regex.Regex
	Include                    []regex.Regex
	IncludeOnlyWithProjectFile bool
}

Config contains filtering configurations.

Jump to

Keyboard shortcuts

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