Documentation ¶
Index ¶
- type Idempotency
- func (_m *Idempotency) Connect(ctx context.Context) error
- func (_m *Idempotency) Disconnect(ctx context.Context) error
- func (_m *Idempotency) EXPECT() *Idempotency_Expecter
- func (_m *Idempotency) Liveness() error
- func (_m *Idempotency) Readiness() error
- func (_m *Idempotency) Validate(ctx context.Context, key string) error
- type Idempotency_Connect_Call
- type Idempotency_Disconnect_Call
- func (_c *Idempotency_Disconnect_Call) Return(_a0 error) *Idempotency_Disconnect_Call
- func (_c *Idempotency_Disconnect_Call) Run(run func(ctx context.Context)) *Idempotency_Disconnect_Call
- func (_c *Idempotency_Disconnect_Call) RunAndReturn(run func(context.Context) error) *Idempotency_Disconnect_Call
- type Idempotency_Expecter
- func (_e *Idempotency_Expecter) Connect(ctx interface{}) *Idempotency_Connect_Call
- func (_e *Idempotency_Expecter) Disconnect(ctx interface{}) *Idempotency_Disconnect_Call
- func (_e *Idempotency_Expecter) Liveness() *Idempotency_Liveness_Call
- func (_e *Idempotency_Expecter) Readiness() *Idempotency_Readiness_Call
- func (_e *Idempotency_Expecter) Validate(ctx interface{}, key interface{}) *Idempotency_Validate_Call
- type Idempotency_Liveness_Call
- type Idempotency_Readiness_Call
- type Idempotency_Validate_Call
- func (_c *Idempotency_Validate_Call) Return(_a0 error) *Idempotency_Validate_Call
- func (_c *Idempotency_Validate_Call) Run(run func(ctx context.Context, key string)) *Idempotency_Validate_Call
- func (_c *Idempotency_Validate_Call) RunAndReturn(run func(context.Context, string) error) *Idempotency_Validate_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Idempotency ¶
Idempotency is an autogenerated mock type for the Idempotency type
func NewIdempotency ¶
func NewIdempotency(t interface { mock.TestingT Cleanup(func()) }) *Idempotency
NewIdempotency creates a new instance of Idempotency. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Idempotency) Connect ¶
func (_m *Idempotency) Connect(ctx context.Context) error
Connect provides a mock function with given fields: ctx
func (*Idempotency) Disconnect ¶
func (_m *Idempotency) Disconnect(ctx context.Context) error
Disconnect provides a mock function with given fields: ctx
func (*Idempotency) EXPECT ¶
func (_m *Idempotency) EXPECT() *Idempotency_Expecter
func (*Idempotency) Liveness ¶
func (_m *Idempotency) Liveness() error
Liveness provides a mock function with given fields:
func (*Idempotency) Readiness ¶
func (_m *Idempotency) Readiness() error
Readiness provides a mock function with given fields:
type Idempotency_Connect_Call ¶
Idempotency_Connect_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Connect'
func (*Idempotency_Connect_Call) Return ¶
func (_c *Idempotency_Connect_Call) Return(_a0 error) *Idempotency_Connect_Call
func (*Idempotency_Connect_Call) Run ¶
func (_c *Idempotency_Connect_Call) Run(run func(ctx context.Context)) *Idempotency_Connect_Call
func (*Idempotency_Connect_Call) RunAndReturn ¶
func (_c *Idempotency_Connect_Call) RunAndReturn(run func(context.Context) error) *Idempotency_Connect_Call
type Idempotency_Disconnect_Call ¶
Idempotency_Disconnect_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Disconnect'
func (*Idempotency_Disconnect_Call) Return ¶
func (_c *Idempotency_Disconnect_Call) Return(_a0 error) *Idempotency_Disconnect_Call
func (*Idempotency_Disconnect_Call) Run ¶
func (_c *Idempotency_Disconnect_Call) Run(run func(ctx context.Context)) *Idempotency_Disconnect_Call
func (*Idempotency_Disconnect_Call) RunAndReturn ¶
func (_c *Idempotency_Disconnect_Call) RunAndReturn(run func(context.Context) error) *Idempotency_Disconnect_Call
type Idempotency_Expecter ¶
type Idempotency_Expecter struct {
// contains filtered or unexported fields
}
func (*Idempotency_Expecter) Connect ¶
func (_e *Idempotency_Expecter) Connect(ctx interface{}) *Idempotency_Connect_Call
Connect is a helper method to define mock.On call
- ctx context.Context
func (*Idempotency_Expecter) Disconnect ¶
func (_e *Idempotency_Expecter) Disconnect(ctx interface{}) *Idempotency_Disconnect_Call
Disconnect is a helper method to define mock.On call
- ctx context.Context
func (*Idempotency_Expecter) Liveness ¶
func (_e *Idempotency_Expecter) Liveness() *Idempotency_Liveness_Call
Liveness is a helper method to define mock.On call
func (*Idempotency_Expecter) Readiness ¶
func (_e *Idempotency_Expecter) Readiness() *Idempotency_Readiness_Call
Readiness is a helper method to define mock.On call
func (*Idempotency_Expecter) Validate ¶
func (_e *Idempotency_Expecter) Validate(ctx interface{}, key interface{}) *Idempotency_Validate_Call
Validate is a helper method to define mock.On call
- ctx context.Context
- key string
type Idempotency_Liveness_Call ¶
Idempotency_Liveness_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Liveness'
func (*Idempotency_Liveness_Call) Return ¶
func (_c *Idempotency_Liveness_Call) Return(_a0 error) *Idempotency_Liveness_Call
func (*Idempotency_Liveness_Call) Run ¶
func (_c *Idempotency_Liveness_Call) Run(run func()) *Idempotency_Liveness_Call
func (*Idempotency_Liveness_Call) RunAndReturn ¶
func (_c *Idempotency_Liveness_Call) RunAndReturn(run func() error) *Idempotency_Liveness_Call
type Idempotency_Readiness_Call ¶
Idempotency_Readiness_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Readiness'
func (*Idempotency_Readiness_Call) Return ¶
func (_c *Idempotency_Readiness_Call) Return(_a0 error) *Idempotency_Readiness_Call
func (*Idempotency_Readiness_Call) Run ¶
func (_c *Idempotency_Readiness_Call) Run(run func()) *Idempotency_Readiness_Call
func (*Idempotency_Readiness_Call) RunAndReturn ¶
func (_c *Idempotency_Readiness_Call) RunAndReturn(run func() error) *Idempotency_Readiness_Call
type Idempotency_Validate_Call ¶
Idempotency_Validate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Validate'
func (*Idempotency_Validate_Call) Return ¶
func (_c *Idempotency_Validate_Call) Return(_a0 error) *Idempotency_Validate_Call
func (*Idempotency_Validate_Call) Run ¶
func (_c *Idempotency_Validate_Call) Run(run func(ctx context.Context, key string)) *Idempotency_Validate_Call
func (*Idempotency_Validate_Call) RunAndReturn ¶
func (_c *Idempotency_Validate_Call) RunAndReturn(run func(context.Context, string) error) *Idempotency_Validate_Call