Documentation
¶
Index ¶
- Variables
- type BoundOffset
- type Config
- type Kafka
- type PartitionBoundOffsets
- type Service
- func (s *Service) FindMessageInBoundOffsets(ctx context.Context, partOffsets PartitionBoundOffsets, cond condition.Cond) (msg *kafka.Message, err error)
- func (s *Service) GetMessageAt(ctx context.Context, t time.Time) (msgs []kafka.Message, err error)
- func (s *Service) ResolveBoundOffsets(ctx context.Context, from, to time.Time) (partOffsets PartitionBoundOffsets, err error)
- func (s *Service) Stop()
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorBeforeFirstMessageTime = fmt.Errorf("the given time is before the first message time") ErrorAfterLastMessageTime = fmt.Errorf("the given time is after the last message time") ErrorNotFound = fmt.Errorf("not found") ErrorAllMessagesFetched = fmt.Errorf("all messages fetched") )
View Source
var (
ErrorContextCanceled = fmt.Errorf("parent context canceled")
)
Functions ¶
This section is empty.
Types ¶
type BoundOffset ¶
type PartitionBoundOffsets ¶
type PartitionBoundOffsets map[int]BoundOffset
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) FindMessageInBoundOffsets ¶
func (*Service) GetMessageAt ¶
func (*Service) ResolveBoundOffsets ¶
Click to show internal directories.
Click to hide internal directories.