Documentation ¶
Index ¶
- type LeaderElection
- type LeaderElection_Expecter
- type LeaderElection_IsLeader_Call
- func (_c *LeaderElection_IsLeader_Call) Return(_a0 bool, _a1 error) *LeaderElection_IsLeader_Call
- func (_c *LeaderElection_IsLeader_Call) Run(run func(ctx context.Context, memberId string)) *LeaderElection_IsLeader_Call
- func (_c *LeaderElection_IsLeader_Call) RunAndReturn(run func(context.Context, string) (bool, error)) *LeaderElection_IsLeader_Call
- type LeaderElection_Resign_Call
- func (_c *LeaderElection_Resign_Call) Return(_a0 error) *LeaderElection_Resign_Call
- func (_c *LeaderElection_Resign_Call) Run(run func(ctx context.Context, memberId string)) *LeaderElection_Resign_Call
- func (_c *LeaderElection_Resign_Call) RunAndReturn(run func(context.Context, string) error) *LeaderElection_Resign_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LeaderElection ¶
LeaderElection is an autogenerated mock type for the LeaderElection type
func NewLeaderElection ¶
func NewLeaderElection(t mockConstructorTestingTNewLeaderElection) *LeaderElection
NewLeaderElection creates a new instance of LeaderElection. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*LeaderElection) EXPECT ¶
func (_m *LeaderElection) EXPECT() *LeaderElection_Expecter
type LeaderElection_Expecter ¶
type LeaderElection_Expecter struct {
// contains filtered or unexported fields
}
func (*LeaderElection_Expecter) IsLeader ¶
func (_e *LeaderElection_Expecter) IsLeader(ctx interface{}, memberId interface{}) *LeaderElection_IsLeader_Call
IsLeader is a helper method to define mock.On call
- ctx context.Context
- memberId string
func (*LeaderElection_Expecter) Resign ¶
func (_e *LeaderElection_Expecter) Resign(ctx interface{}, memberId interface{}) *LeaderElection_Resign_Call
Resign is a helper method to define mock.On call
- ctx context.Context
- memberId string
type LeaderElection_IsLeader_Call ¶
LeaderElection_IsLeader_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsLeader'
func (*LeaderElection_IsLeader_Call) Return ¶
func (_c *LeaderElection_IsLeader_Call) Return(_a0 bool, _a1 error) *LeaderElection_IsLeader_Call
func (*LeaderElection_IsLeader_Call) Run ¶
func (_c *LeaderElection_IsLeader_Call) Run(run func(ctx context.Context, memberId string)) *LeaderElection_IsLeader_Call
func (*LeaderElection_IsLeader_Call) RunAndReturn ¶
func (_c *LeaderElection_IsLeader_Call) RunAndReturn(run func(context.Context, string) (bool, error)) *LeaderElection_IsLeader_Call
type LeaderElection_Resign_Call ¶
LeaderElection_Resign_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Resign'
func (*LeaderElection_Resign_Call) Return ¶
func (_c *LeaderElection_Resign_Call) Return(_a0 error) *LeaderElection_Resign_Call
func (*LeaderElection_Resign_Call) Run ¶
func (_c *LeaderElection_Resign_Call) Run(run func(ctx context.Context, memberId string)) *LeaderElection_Resign_Call
func (*LeaderElection_Resign_Call) RunAndReturn ¶
func (_c *LeaderElection_Resign_Call) RunAndReturn(run func(context.Context, string) error) *LeaderElection_Resign_Call
Click to show internal directories.
Click to hide internal directories.