Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type EmptyCache ¶
type EmptyCache[T any] struct { }
func (*EmptyCache[T]) Iter ¶
func (h *EmptyCache[T]) Iter(f func(T))
func (*EmptyCache[T]) Push ¶
func (h *EmptyCache[T]) Push(item T)
type ICache ¶
type ICache[T any] interface { Push(item T) Iter(func(T)) }
func NewEmptyCache ¶
func NewRingCache ¶
type Subscriber ¶
type Subscriber[T any] struct { // contains filtered or unexported fields }
func NewSubscriber ¶
func NewSubscriber[T any](name string) (*Subscriber[T], error)
func (*Subscriber[T]) Read ¶
func (s *Subscriber[T]) Read() []T
func (*Subscriber[T]) Recv ¶
func (s *Subscriber[T]) Recv() <-chan struct{}
func (*Subscriber[T]) Unsubscribe ¶
func (s *Subscriber[T]) Unsubscribe()
Click to show internal directories.
Click to hide internal directories.