Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RaftFixture ¶
type RaftFixture struct { testing.IsolationSuite FSM raft.FSM Config *raft.Config Transport *raft.InmemTransport Store *raft.InmemStore SnapshotStore *raft.InmemSnapshotStore Raft *raft.Raft }
RaftFixture is a fixture to embed into test suites, providing a raft.Raft and in-memory transport.
func (*RaftFixture) DefaultConfig ¶
func (s *RaftFixture) DefaultConfig(id raft.ServerID) *raft.Config
func (*RaftFixture) NewRaft ¶
func (s *RaftFixture) NewRaft(c *gc.C, id raft.ServerID, fsm raft.FSM) ( *raft.Raft, *raft.Config, *raft.InmemTransport, *raft.InmemStore, *raft.InmemSnapshotStore, )
func (*RaftFixture) SetUpTest ¶
func (s *RaftFixture) SetUpTest(c *gc.C)
Click to show internal directories.
Click to hide internal directories.