Documentation
¶
Index ¶
- type Emitter
- func (emitter *Emitter[T]) Emit(data T)
- func (emitter *Emitter[T]) EmitAsync(data T)
- func (emitter *Emitter[T]) EmitAsyncTTL(data T, hash string, ttl time.Duration)
- func (emitter *Emitter[T]) EmitTTL(data T, hash string, ttl time.Duration)
- func (emitter *Emitter[T]) Register(handler func(event Event, data T)) Event
- type Event
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Emitter ¶
type Emitter[T any] struct { // contains filtered or unexported fields }
func NewEmitter ¶
func (*Emitter[T]) EmitAsyncTTL ¶
Click to show internal directories.
Click to hide internal directories.