Versions in this module Expand all Collapse all v0 v0.1.0 Oct 13, 2021 Changes in this version + type Context interface + Attrs func() map[string]interface{} + BatchSize func() int + ByteBuf func() *buf.ByteBuf + DataStorage func() storage.DataStorage + LogIndex func() uint64 + Offset func() int + StoreID func() uint64 + WriteBatch func() *util.WriteBatch + type LocalCommandFunc func(bhmetapb.Shard, *raftcmdpb.Request) (*raftcmdpb.Response, error) + type ReadCommandFunc func(bhmetapb.Shard, *raftcmdpb.Request, Context) (resp *raftcmdpb.Response, readedBytes uint64) + type WriteCommandFunc func(bhmetapb.Shard, *raftcmdpb.Request, Context) (writeBytes uint64, diffBytes int64, resp *raftcmdpb.Response)