idempotency

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

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

Go to latest
Published: May 11, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Idempotency

type Idempotency struct {
	mock.Mock
}

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:

func (*Idempotency) Validate

func (_m *Idempotency) Validate(ctx context.Context, key string) error

Validate provides a mock function with given fields: ctx, key

type Idempotency_Connect_Call

type Idempotency_Connect_Call struct {
	*mock.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 (*Idempotency_Connect_Call) Run

func (*Idempotency_Connect_Call) RunAndReturn

type Idempotency_Disconnect_Call

type Idempotency_Disconnect_Call struct {
	*mock.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 (*Idempotency_Disconnect_Call) Run

func (*Idempotency_Disconnect_Call) RunAndReturn

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

Liveness is a helper method to define mock.On call

func (*Idempotency_Expecter) Readiness

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

type Idempotency_Liveness_Call struct {
	*mock.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 (*Idempotency_Liveness_Call) Run

func (*Idempotency_Liveness_Call) RunAndReturn

func (_c *Idempotency_Liveness_Call) RunAndReturn(run func() error) *Idempotency_Liveness_Call

type Idempotency_Readiness_Call

type Idempotency_Readiness_Call struct {
	*mock.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 (*Idempotency_Readiness_Call) Run

func (*Idempotency_Readiness_Call) RunAndReturn

func (_c *Idempotency_Readiness_Call) RunAndReturn(run func() error) *Idempotency_Readiness_Call

type Idempotency_Validate_Call

type Idempotency_Validate_Call struct {
	*mock.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 (*Idempotency_Validate_Call) Run

func (*Idempotency_Validate_Call) RunAndReturn

Jump to

Keyboard shortcuts

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