Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockProposer ¶
type MockProposer struct {
// contains filtered or unexported fields
}
MockProposer is a simple proposer implementation for use in tests.
func (*MockProposer) ChangesBetween ¶
ChangesBetween returns changes after "from" up to and including "to".
func (*MockProposer) GetVersion ¶
func (mp *MockProposer) GetVersion() *api.Version
GetVersion returns the current version.
func (*MockProposer) ProposeValue ¶
func (mp *MockProposer) ProposeValue(ctx context.Context, storeAction []api.StoreAction, cb func()) error
ProposeValue propagates a value. In this mock implementation, it just stores the value locally.
Click to show internal directories.
Click to hide internal directories.