Documentation
¶
Overview ¶
Package observer defines the Observer interface for collecting observability events such as connection status and traffic statistics.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event interface {
Type() EventType
}
Event is a generic observability event. Implementations carry type-specific data such as connection counts or byte throughput.
type Observer ¶
type Observer interface {
// Observe processes a batch of events.
Observe(ctx context.Context, events []Event, opts ...Option) error
}
Observer receives observability events from components. Events can include status changes, connection statistics snapshots, and other runtime diagnostics. Observers are typically used to feed data to monitoring dashboards or log systems.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package stats defines the Stats interface for tracking connection and traffic counters (total connections, current connections, bytes, errors).
|
Package stats defines the Stats interface for tracking connection and traffic counters (total connections, current connections, bytes, errors). |