message

package
v0.1.28 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bolt

type Bolt struct {
	PartitionsPath string
	// contains filtered or unexported fields
}

func NewBolt

func NewBolt(partitionPath string, log logger.Logger) *Bolt

func (*Bolt) AckMessage

func (b *Bolt) AckMessage(
	ctx context.Context,
	commandID uint64,
	message *model.Message,
	group *model.ConsumerGroup,
) error

func (*Bolt) AppendMessage

func (b *Bolt) AppendMessage(
	ctx context.Context,
	commandID uint64,
	message *model.Message,
) error

func (*Bolt) Close

func (b *Bolt) Close(context.Context) error

func (*Bolt) LastAppliedCommandID

func (b *Bolt) LastAppliedCommandID(
	ctx context.Context,
	partitions []string,
) (uint64, error)

func (*Bolt) LastMessageID

func (b *Bolt) LastMessageID(ctx context.Context, partitionKey string) ([]byte, error)

func (*Bolt) MessageAtIndex

func (b *Bolt) MessageAtIndex(ctx context.Context, partition *model.Partition, messageID []byte) (*model.Message, error)

func (*Bolt) NextUnAckedMessageID

func (b *Bolt) NextUnAckedMessageID(ctx context.Context, partition *model.Partition, group *model.ConsumerGroup) ([]byte, error)

func (*Bolt) RecoverFromSnapshot

func (b *Bolt) RecoverFromSnapshot(ctx context.Context, r io.Reader) error

func (*Bolt) Snapshot

func (b *Bolt) Snapshot(ctx context.Context, w io.Writer) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL