mock

package
v0.0.0-...-7f57e1f Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockElector

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

MockElector is a mock of Elector interface.

func NewMockElector

func NewMockElector(ctrl *gomock.Controller) *MockElector

NewMockElector creates a new mock instance.

func (*MockElector) EXPECT

func (m *MockElector) EXPECT() *MockElectorMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockElector) GetLeader

func (m *MockElector) GetLeader() (*election.Member, bool)

GetLeader mocks base method.

func (*MockElector) GetMembers

func (m *MockElector) GetMembers() []*election.Member

GetMembers mocks base method.

func (*MockElector) IsLeader

func (m *MockElector) IsLeader() bool

IsLeader mocks base method.

func (*MockElector) ResignLeader

func (m *MockElector) ResignLeader(arg0 context.Context, arg1 time.Duration) error

ResignLeader mocks base method.

func (*MockElector) RunElection

func (m *MockElector) RunElection(arg0 context.Context) error

RunElection mocks base method.

type MockElectorMockRecorder

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

MockElectorMockRecorder is the mock recorder for MockElector.

func (*MockElectorMockRecorder) GetLeader

func (mr *MockElectorMockRecorder) GetLeader() *gomock.Call

GetLeader indicates an expected call of GetLeader.

func (*MockElectorMockRecorder) GetMembers

func (mr *MockElectorMockRecorder) GetMembers() *gomock.Call

GetMembers indicates an expected call of GetMembers.

func (*MockElectorMockRecorder) IsLeader

func (mr *MockElectorMockRecorder) IsLeader() *gomock.Call

IsLeader indicates an expected call of IsLeader.

func (*MockElectorMockRecorder) ResignLeader

func (mr *MockElectorMockRecorder) ResignLeader(arg0, arg1 interface{}) *gomock.Call

ResignLeader indicates an expected call of ResignLeader.

func (*MockElectorMockRecorder) RunElection

func (mr *MockElectorMockRecorder) RunElection(arg0 interface{}) *gomock.Call

RunElection indicates an expected call of RunElection.

type MockStorage

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

MockStorage is a mock of Storage interface.

func NewMockStorage

func NewMockStorage(ctrl *gomock.Controller) *MockStorage

NewMockStorage creates a new mock instance.

func (*MockStorage) EXPECT

func (m *MockStorage) EXPECT() *MockStorageMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockStorage) Get

func (m *MockStorage) Get(arg0 context.Context) (*election.Record, error)

Get mocks base method.

func (*MockStorage) Update

func (m *MockStorage) Update(arg0 context.Context, arg1 *election.Record, arg2 bool) error

Update mocks base method.

type MockStorageMockRecorder

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

MockStorageMockRecorder is the mock recorder for MockStorage.

func (*MockStorageMockRecorder) Get

func (mr *MockStorageMockRecorder) Get(arg0 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockStorageMockRecorder) Update

func (mr *MockStorageMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call

Update indicates an expected call of Update.

Jump to

Keyboard shortcuts

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