bmatch

package
v0.0.0-...-f132d4f Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package bmatch provides log matchers used for filtering and transforms

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogMatcher

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

LogMatcher can match log records of certain conditions

func (LogMatcher) Match

func (m LogMatcher) Match(record *base.LogRecord) bool

Match checks whether the given record matches the condition of this matcher

type LogMatcherConfig

type LogMatcherConfig map[string]valueMatch

LogMatcherConfig is the configuration for LogMatch, to match log records of certain conditions

func (LogMatcherConfig) NewMatcher

func (cmap LogMatcherConfig) NewMatcher(schema base.LogSchema) LogMatcher

NewMatcher creates a LogMatcher from a set of field names and ValueMatch(s)

func (LogMatcherConfig) VerifyConfig

func (cmap LogMatcherConfig) VerifyConfig(schema base.LogSchema) error

VerifyConfig checks all field names

Jump to

Keyboard shortcuts

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