Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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.
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.
Click to show internal directories.
Click to hide internal directories.