model

package
v1.3.8 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

type Filter struct {
	Pattern regexp.Regexp
	Kind    FilterKind
}

Filter ...

type FilterKind

type FilterKind int

FilterKind ...

const (
	// None ...
	None FilterKind = iota
	// Exclude ...
	Exclude
	// AlertOnce ...
	AlertOnce
	// Include ...
	Include
)

type Filters added in v1.3.7

type Filters []Filter

Filters provides a mechansim to filter events in one of the following ways:

  • None: Do not filter the event.
  • Exclude: Filter the event by excluding it.
  • AlertOnce: Filter the event by alerting it once and only once.
  • Include: Filter the event by including it.

func (Filters) ReplaceAllStringFunc added in v1.3.7

func (fs Filters) ReplaceAllStringFunc(s string, replacer func(string) string) string

ReplaceAllStringFunc ...

type Manager

type Manager interface {
	// Run ...
	Run() error
	// Start the Manager.
	Start() error
	// Stop the Manager.
	Stop()
	// Wait for the manager to stop.
	Wait()
	// Register one or more sinks or registry.
	Register(opts ...interface{}) error
	// TrapSignals ...
	TrapSignals()
}

Manager manages the lifecycle of registry, and the routing of their events to the sinks.

Jump to

Keyboard shortcuts

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