Documentation
¶
Index ¶
- func Emit(ctx context.Context, event any)
- func Listen[T any](ctx context.Context, ch chan<- TypedEnvelope[T])
- func NewBus(ctx context.Context) context.Context
- func RegisterEventType(e any)
- func Tap(ctx context.Context, ch chan<- Envelope)
- func Unlisten[T any](ctx context.Context, ch chan<- TypedEnvelope[T])
- func Untap(ctx context.Context, ch chan<- Envelope)
- type DeleteLogFile
- type DiskMetrics
- type Envelope
- type Key
- type LogFile
- type Metrics
- type OpenLogFile
- type Status
- type Sync
- type TypedEnvelope
- type UnknownEventError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterEventType ¶
func RegisterEventType(e any)
Types ¶
type DeleteLogFile ¶
type DiskMetrics ¶
type OpenLogFile ¶
type TypedEnvelope ¶
func (TypedEnvelope[T]) Envelope ¶
func (e TypedEnvelope[T]) Envelope() Envelope
func (TypedEnvelope[T]) Type ¶
func (e TypedEnvelope[T]) Type() reflect.Type
func (TypedEnvelope[T]) TypeName ¶
func (e TypedEnvelope[T]) TypeName() string
type UnknownEventError ¶
type UnknownEventError struct {
Type string
}
func (UnknownEventError) Error ¶
func (e UnknownEventError) Error() string
Click to show internal directories.
Click to hide internal directories.