Documentation ¶
Index ¶
- type Blocker
- func (b *Blocker[T]) Capacity() uint32
- func (b *Blocker[T]) ChannelName() string
- func (b *Blocker[T]) ClearObserved()
- func (b *Blocker[T]) ClearPublished()
- func (b *Blocker[T]) GetLatestObserved() T
- func (b *Blocker[T]) GetLatestPublished() T
- func (b *Blocker[T]) GetOldestObserved() T
- func (b *Blocker[T]) IsObservedEmpty() bool
- func (b *Blocker[T]) IsPublishedEmpty() bool
- func (b *Blocker[T]) Observe()
- func (b *Blocker[T]) Publish(msg T)
- func (b *Blocker[T]) SetCapacity(cap uint32)
- func (b *Blocker[T]) Subscribe(callbackID string, callback Callback[T]) bool
- func (b *Blocker[T]) Unsubscribe(callbackID string) bool
- type BlockerAttr
- type Callback
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Blocker ¶
type Blocker[T any] struct { // contains filtered or unexported fields }
func NewBlocker ¶
func NewBlocker[T any](blockerAttr *BlockerAttr) *Blocker[T]
func (*Blocker[T]) ChannelName ¶
func (*Blocker[T]) ClearObserved ¶
func (b *Blocker[T]) ClearObserved()
func (*Blocker[T]) ClearPublished ¶
func (b *Blocker[T]) ClearPublished()
func (*Blocker[T]) GetLatestObserved ¶
func (b *Blocker[T]) GetLatestObserved() T
func (*Blocker[T]) GetLatestPublished ¶
func (b *Blocker[T]) GetLatestPublished() T
func (*Blocker[T]) GetOldestObserved ¶
func (b *Blocker[T]) GetOldestObserved() T
func (*Blocker[T]) IsObservedEmpty ¶
func (*Blocker[T]) IsPublishedEmpty ¶
func (*Blocker[T]) SetCapacity ¶
func (*Blocker[T]) Unsubscribe ¶
type BlockerAttr ¶
Click to show internal directories.
Click to hide internal directories.