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 }
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)
Click to show internal directories.
Click to hide internal directories.