sequencer

package
v0.0.0-...-735feb9 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PartialSnapshotHandler

type PartialSnapshotHandler interface {
	Consume(partitionID int, snapshotData []byte) error
	Provide(partitionID int, lastSnapshot raftpb.Snapshot, entriesAppliedSinceLastSnapshot []raftpb.Entry) ([]byte, error)
}

type Sequencer

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

func NewSequencer

func NewSequencer(raftID uint64, txnBatchChan chan<- *pb.TransactionBatch, peers []raft.Peer, storeDir string, connCache util.ConnectionCache, cip util.ClusterInfoProvider, srvr *grpc.Server, snapshotHandler SnapshotHandler, logger *log.Entry) *Sequencer

func (*Sequencer) LogToJSON

func (s *Sequencer) LogToJSON(out io.Writer, n int) error

func (*Sequencer) Stop

func (s *Sequencer) Stop()

func (*Sequencer) SubmitTransaction

func (s *Sequencer) SubmitTransaction(txn *pb.Transaction)

type SnapshotHandler

type SnapshotHandler interface {
	Consume(snapshotData []byte) error
	Provide(lastSnapshot raftpb.Snapshot, entriesAppliedSinceLastSnapshot []raftpb.Entry) ([]byte, error)
}

Jump to

Keyboard shortcuts

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