filter

package module
v3.0.0-...-91da750 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	BeginningTime *time.Time
	EndTime       *time.Time
}

Config contains node filtering configuration

func NewDefaultConfig

func NewDefaultConfig() Config

type LogNodeFilter

type LogNodeFilter = func(t time.Time, node *shared.ParserNode) (bool, error)

LogNodeFilter is a filter callback function that filters nodes based on the filter config

func GetIntervalNodeFilter

func GetIntervalNodeFilter(fc Config) *LogNodeFilter

GetIntervalNodeFilter creates a node filter callback function given filter config

Jump to

Keyboard shortcuts

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