logreader

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cached added in v0.2.1

type Cached struct {
	LogQuerier logQuerier
	*ShardCache
}

func (*Cached) QueryRaftLog added in v0.2.1

func (l *Cached) QueryRaftLog(ctx context.Context, clusterID uint64, logRange dragonboat.LogRange, maxSize uint64) ([]raftpb.Entry, error)

type Interface added in v0.2.1

type Interface interface {
	// QueryRaftLog for all the entries in a given cluster within the right half-open range
	// defined by dragonboat.LogRange. MaxSize denotes the maximum cumulative size of the entries,
	// but this serves only as a hint and the actual size of returned entries may be larger than maxSize.
	QueryRaftLog(context.Context, uint64, dragonboat.LogRange, uint64) ([]raftpb.Entry, error)
}

type ShardCache added in v0.3.1

type ShardCache struct {
	// contains filtered or unexported fields
}

func NewShardCache added in v0.5.0

func NewShardCache(size int) *ShardCache

func (*ShardCache) LogCompacted added in v0.3.1

func (l *ShardCache) LogCompacted(shardID uint64)

func (*ShardCache) NodeDeleted added in v0.3.1

func (l *ShardCache) NodeDeleted(shardID uint64)

type Simple added in v0.2.1

type Simple struct {
	LogQuerier logQuerier
}

func (*Simple) QueryRaftLog added in v0.2.1

func (l *Simple) QueryRaftLog(ctx context.Context, clusterID uint64, logRange dragonboat.LogRange, maxSize uint64) ([]raftpb.Entry, error)

Jump to

Keyboard shortcuts

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