package
Version:
v0.0.3
Opens a new window with list of versions in this module.
Published: Oct 4, 2024
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type FixedSizeObserver[T interface{}] interface {
Publish(element T) uint64
Subscribe(ctx context.Context) <-chan T
GetLength() int
Release()
Ack(msgId uint64)
WaitAck(msgId uint64)
}
type GrpcStreamDecorator[I interface{}, O interface{}] interface {
Fetch() (<-chan O, error)
Release()
GetStreamContext() context.Context
}
type Observer[T interface{}] interface {
Publish(element T) bool
PublishWithWaiting(ctx context.Context, element T)
Subscribe(func(T) bool) uint64
Unsubscribe(id uint64)
Release()
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.