strategies

package
v0.0.0-...-7907c65 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Strategy

type Strategy struct {
	mock.Mock
}

Strategy is an autogenerated mock type for the Strategy type

func NewStrategy

func NewStrategy(t interface {
	mock.TestingT
	Cleanup(func())
}) *Strategy

NewStrategy creates a new instance of Strategy. 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 (*Strategy) Connect

func (_m *Strategy) Connect(ctx context.Context) error

Connect provides a mock function with given fields: ctx

func (*Strategy) Disconnect

func (_m *Strategy) Disconnect(ctx context.Context) error

Disconnect provides a mock function with given fields: ctx

func (*Strategy) EXPECT

func (_m *Strategy) EXPECT() *Strategy_Expecter

func (*Strategy) Liveness

func (_m *Strategy) Liveness() error

Liveness provides a mock function with given fields:

func (*Strategy) Login

func (_m *Strategy) Login(ctx context.Context, creds entities.Credentials) (*entities.Tokens, error)

Login provides a mock function with given fields: ctx, creds

func (*Strategy) Logout

func (_m *Strategy) Logout(ctx context.Context, tokens entities.Tokens) error

Logout provides a mock function with given fields: ctx, tokens

func (*Strategy) Management

func (_m *Strategy) Management() strategies.Management

Management provides a mock function with given fields:

func (*Strategy) Readiness

func (_m *Strategy) Readiness() error

Readiness provides a mock function with given fields:

func (*Strategy) Register

func (_m *Strategy) Register(ctx context.Context, acc entities.Account) error

Register provides a mock function with given fields: ctx, acc

func (*Strategy) Verify

func (_m *Strategy) Verify(ctx context.Context, tokens entities.Tokens) (*entities.Account, error)

Verify provides a mock function with given fields: ctx, tokens

type Strategy_Connect_Call

type Strategy_Connect_Call struct {
	*mock.Call
}

Strategy_Connect_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Connect'

func (*Strategy_Connect_Call) Return

func (*Strategy_Connect_Call) Run

func (*Strategy_Connect_Call) RunAndReturn

func (_c *Strategy_Connect_Call) RunAndReturn(run func(context.Context) error) *Strategy_Connect_Call

type Strategy_Disconnect_Call

type Strategy_Disconnect_Call struct {
	*mock.Call
}

Strategy_Disconnect_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Disconnect'

func (*Strategy_Disconnect_Call) Return

func (*Strategy_Disconnect_Call) Run

func (*Strategy_Disconnect_Call) RunAndReturn

type Strategy_Expecter

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

func (*Strategy_Expecter) Connect

func (_e *Strategy_Expecter) Connect(ctx interface{}) *Strategy_Connect_Call

Connect is a helper method to define mock.On call

  • ctx context.Context

func (*Strategy_Expecter) Disconnect

func (_e *Strategy_Expecter) Disconnect(ctx interface{}) *Strategy_Disconnect_Call

Disconnect is a helper method to define mock.On call

  • ctx context.Context

func (*Strategy_Expecter) Liveness

func (_e *Strategy_Expecter) Liveness() *Strategy_Liveness_Call

Liveness is a helper method to define mock.On call

func (*Strategy_Expecter) Login

func (_e *Strategy_Expecter) Login(ctx interface{}, creds interface{}) *Strategy_Login_Call

Login is a helper method to define mock.On call

  • ctx context.Context
  • creds entities.Credentials

func (*Strategy_Expecter) Logout

func (_e *Strategy_Expecter) Logout(ctx interface{}, tokens interface{}) *Strategy_Logout_Call

Logout is a helper method to define mock.On call

  • ctx context.Context
  • tokens entities.Tokens

func (*Strategy_Expecter) Management

func (_e *Strategy_Expecter) Management() *Strategy_Management_Call

Management is a helper method to define mock.On call

func (*Strategy_Expecter) Readiness

func (_e *Strategy_Expecter) Readiness() *Strategy_Readiness_Call

Readiness is a helper method to define mock.On call

func (*Strategy_Expecter) Register

func (_e *Strategy_Expecter) Register(ctx interface{}, acc interface{}) *Strategy_Register_Call

Register is a helper method to define mock.On call

  • ctx context.Context
  • acc entities.Account

func (*Strategy_Expecter) Verify

func (_e *Strategy_Expecter) Verify(ctx interface{}, tokens interface{}) *Strategy_Verify_Call

Verify is a helper method to define mock.On call

  • ctx context.Context
  • tokens entities.Tokens

type Strategy_Liveness_Call

type Strategy_Liveness_Call struct {
	*mock.Call
}

Strategy_Liveness_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Liveness'

func (*Strategy_Liveness_Call) Return

func (*Strategy_Liveness_Call) Run

func (_c *Strategy_Liveness_Call) Run(run func()) *Strategy_Liveness_Call

func (*Strategy_Liveness_Call) RunAndReturn

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

type Strategy_Login_Call

type Strategy_Login_Call struct {
	*mock.Call
}

Strategy_Login_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Login'

func (*Strategy_Login_Call) Return

func (*Strategy_Login_Call) Run

func (*Strategy_Login_Call) RunAndReturn

type Strategy_Logout_Call

type Strategy_Logout_Call struct {
	*mock.Call
}

Strategy_Logout_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Logout'

func (*Strategy_Logout_Call) Return

func (*Strategy_Logout_Call) Run

func (_c *Strategy_Logout_Call) Run(run func(ctx context.Context, tokens entities.Tokens)) *Strategy_Logout_Call

func (*Strategy_Logout_Call) RunAndReturn

type Strategy_Management_Call

type Strategy_Management_Call struct {
	*mock.Call
}

Strategy_Management_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Management'

func (*Strategy_Management_Call) Return

func (*Strategy_Management_Call) Run

func (*Strategy_Management_Call) RunAndReturn

type Strategy_Readiness_Call

type Strategy_Readiness_Call struct {
	*mock.Call
}

Strategy_Readiness_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Readiness'

func (*Strategy_Readiness_Call) Return

func (*Strategy_Readiness_Call) Run

func (_c *Strategy_Readiness_Call) Run(run func()) *Strategy_Readiness_Call

func (*Strategy_Readiness_Call) RunAndReturn

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

type Strategy_Register_Call

type Strategy_Register_Call struct {
	*mock.Call
}

Strategy_Register_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Register'

func (*Strategy_Register_Call) Return

func (*Strategy_Register_Call) Run

func (*Strategy_Register_Call) RunAndReturn

type Strategy_Verify_Call

type Strategy_Verify_Call struct {
	*mock.Call
}

Strategy_Verify_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Verify'

func (*Strategy_Verify_Call) Return

func (*Strategy_Verify_Call) Run

func (_c *Strategy_Verify_Call) Run(run func(ctx context.Context, tokens entities.Tokens)) *Strategy_Verify_Call

func (*Strategy_Verify_Call) RunAndReturn

Jump to

Keyboard shortcuts

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