Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrCommitNotFound = errors.New("commit not found")
)
Functions ¶
This section is empty.
Types ¶
type CommitReader ¶
type Consumer ¶
type Consumer interface {
Consume(globalCtx context.Context, handler MessageHandler) error
}
Consumer defines an interface for blocking action for listening for incoming events and invoking handler on each of them
type FakeCommitReader ¶
type FirstToLastConsumer ¶
type FirstToLastConsumer struct {
// contains filtered or unexported fields
}
func NewFirstToLastConsumer ¶
func NewFirstToLastConsumer(headReader thead.Reader, consumerOffsetManager thead.Manager, messageReader storage.MessageReader, config FirstToLastConsumerConfig) *FirstToLastConsumer
func (*FirstToLastConsumer) Consume ¶
func (f *FirstToLastConsumer) Consume(globalCtx context.Context, handler MessageHandler) error
type MessageFandlerFunc ¶
type MessageFandlerFunc func(ctx context.Context, message storage.ProtoUnmarshallable) error
func (MessageFandlerFunc) Handle ¶
func (m MessageFandlerFunc) Handle(ctx context.Context, message storage.ProtoUnmarshallable) error
type MessageHandler ¶
type MessageHandler interface {
Handle(ctx context.Context, message storage.ProtoUnmarshallable) error
}
type StorageCommitReader ¶
type StorageCommitReader struct {
// contains filtered or unexported fields
}
func NewStorageCommitReader ¶
func NewStorageCommitReader(reader storage.MessageReader, timeout time.Duration) *StorageCommitReader
Click to show internal directories.
Click to hide internal directories.