Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context interface { // WriteBatch returns the write batch for write application's data, it's only used in write command handle. WriteBatch() *util.WriteBatch // LogIndex log index, the raft log index of the current command, it's only used in write command handle. LogIndex() uint64 // Offset is the index in the current command batch Offset() int // BatchSize number of the current command batch BatchSize() int // Attrs returns a map to store attrs Attrs() map[string]interface{} // ByteBuf returns the bytebuf ByteBuf() *buf.ByteBuf // DataStorage returns data storage DataStorage() storage.DataStorage // StoreID returns store id StoreID() uint64 }
Context apply context.
type LocalCommandFunc ¶
LocalCommandFunc directly exec on local func
Click to show internal directories.
Click to hide internal directories.