Documentation ¶
Index ¶
- Variables
- func NewIncUint32Request(key []byte) ([]byte, error)
- func NewIncUint64Request(key []byte) ([]byte, error)
- func NewPutRequest(key, value []byte) ([]byte, error)
- func NewPutWithCasRequest(key, oldValue, newValue []byte) ([]byte, error)
- func NewSnapshotHelper(r io.ReadCloser, eg *errgroup.Group, ctx context.Context, ...) raft.FSMSnapshot
- type Interface
- type SnapshotHelper
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrKeyNotFound = errors.New("store: key not found") ErrCasOperation = errors.New("store: cas operation error") )
Functions ¶
func NewIncUint32Request ¶
func NewIncUint64Request ¶
func NewPutRequest ¶
func NewPutWithCasRequest ¶
func NewSnapshotHelper ¶
func NewSnapshotHelper(r io.ReadCloser, eg *errgroup.Group, ctx context.Context, cancel context.CancelFunc) raft.FSMSnapshot
Types ¶
type SnapshotHelper ¶
type SnapshotHelper struct {
// contains filtered or unexported fields
}
func (*SnapshotHelper) Persist ¶
func (s *SnapshotHelper) Persist(sink raft.SnapshotSink) error
func (*SnapshotHelper) Release ¶
func (s *SnapshotHelper) Release()
Click to show internal directories.
Click to hide internal directories.