Documentation ¶
Index ¶
- type Strategy
- func (_m *Strategy) Connect(ctx context.Context) error
- func (_m *Strategy) Disconnect(ctx context.Context) error
- func (_m *Strategy) EXPECT() *Strategy_Expecter
- func (_m *Strategy) Liveness() error
- func (_m *Strategy) Login(ctx context.Context, creds entities.Credentials) (*entities.Tokens, error)
- func (_m *Strategy) Logout(ctx context.Context, tokens entities.Tokens) error
- func (_m *Strategy) Management() strategies.Management
- func (_m *Strategy) Readiness() error
- func (_m *Strategy) Register(ctx context.Context, acc entities.Account) error
- func (_m *Strategy) Verify(ctx context.Context, tokens entities.Tokens) (*entities.Account, error)
- type Strategy_Connect_Call
- type Strategy_Disconnect_Call
- type Strategy_Expecter
- func (_e *Strategy_Expecter) Connect(ctx interface{}) *Strategy_Connect_Call
- func (_e *Strategy_Expecter) Disconnect(ctx interface{}) *Strategy_Disconnect_Call
- func (_e *Strategy_Expecter) Liveness() *Strategy_Liveness_Call
- func (_e *Strategy_Expecter) Login(ctx interface{}, creds interface{}) *Strategy_Login_Call
- func (_e *Strategy_Expecter) Logout(ctx interface{}, tokens interface{}) *Strategy_Logout_Call
- func (_e *Strategy_Expecter) Management() *Strategy_Management_Call
- func (_e *Strategy_Expecter) Readiness() *Strategy_Readiness_Call
- func (_e *Strategy_Expecter) Register(ctx interface{}, acc interface{}) *Strategy_Register_Call
- func (_e *Strategy_Expecter) Verify(ctx interface{}, tokens interface{}) *Strategy_Verify_Call
- type Strategy_Liveness_Call
- type Strategy_Login_Call
- func (_c *Strategy_Login_Call) Return(_a0 *entities.Tokens, _a1 error) *Strategy_Login_Call
- func (_c *Strategy_Login_Call) Run(run func(ctx context.Context, creds entities.Credentials)) *Strategy_Login_Call
- func (_c *Strategy_Login_Call) RunAndReturn(run func(context.Context, entities.Credentials) (*entities.Tokens, error)) *Strategy_Login_Call
- type Strategy_Logout_Call
- func (_c *Strategy_Logout_Call) Return(_a0 error) *Strategy_Logout_Call
- func (_c *Strategy_Logout_Call) Run(run func(ctx context.Context, tokens entities.Tokens)) *Strategy_Logout_Call
- func (_c *Strategy_Logout_Call) RunAndReturn(run func(context.Context, entities.Tokens) error) *Strategy_Logout_Call
- type Strategy_Management_Call
- type Strategy_Readiness_Call
- type Strategy_Register_Call
- func (_c *Strategy_Register_Call) Return(_a0 error) *Strategy_Register_Call
- func (_c *Strategy_Register_Call) Run(run func(ctx context.Context, acc entities.Account)) *Strategy_Register_Call
- func (_c *Strategy_Register_Call) RunAndReturn(run func(context.Context, entities.Account) error) *Strategy_Register_Call
- type Strategy_Verify_Call
- func (_c *Strategy_Verify_Call) Return(_a0 *entities.Account, _a1 error) *Strategy_Verify_Call
- func (_c *Strategy_Verify_Call) Run(run func(ctx context.Context, tokens entities.Tokens)) *Strategy_Verify_Call
- func (_c *Strategy_Verify_Call) RunAndReturn(run func(context.Context, entities.Tokens) (*entities.Account, error)) *Strategy_Verify_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Strategy ¶
Strategy is an autogenerated mock type for the Strategy type
func NewStrategy ¶
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) Disconnect ¶
Disconnect provides a mock function with given fields: ctx
func (*Strategy) EXPECT ¶
func (_m *Strategy) EXPECT() *Strategy_Expecter
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) Management ¶
func (_m *Strategy) Management() strategies.Management
Management provides a mock function with given fields:
type Strategy_Connect_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 (_c *Strategy_Connect_Call) Return(_a0 error) *Strategy_Connect_Call
func (*Strategy_Connect_Call) Run ¶
func (_c *Strategy_Connect_Call) Run(run func(ctx context.Context)) *Strategy_Connect_Call
func (*Strategy_Connect_Call) RunAndReturn ¶
func (_c *Strategy_Connect_Call) RunAndReturn(run func(context.Context) error) *Strategy_Connect_Call
type Strategy_Disconnect_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 (_c *Strategy_Disconnect_Call) Return(_a0 error) *Strategy_Disconnect_Call
func (*Strategy_Disconnect_Call) Run ¶
func (_c *Strategy_Disconnect_Call) Run(run func(ctx context.Context)) *Strategy_Disconnect_Call
func (*Strategy_Disconnect_Call) RunAndReturn ¶
func (_c *Strategy_Disconnect_Call) RunAndReturn(run func(context.Context) error) *Strategy_Disconnect_Call
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 ¶
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 (_c *Strategy_Liveness_Call) Return(_a0 error) *Strategy_Liveness_Call
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 ¶
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 (_c *Strategy_Login_Call) Return(_a0 *entities.Tokens, _a1 error) *Strategy_Login_Call
func (*Strategy_Login_Call) Run ¶
func (_c *Strategy_Login_Call) Run(run func(ctx context.Context, creds entities.Credentials)) *Strategy_Login_Call
func (*Strategy_Login_Call) RunAndReturn ¶
func (_c *Strategy_Login_Call) RunAndReturn(run func(context.Context, entities.Credentials) (*entities.Tokens, error)) *Strategy_Login_Call
type Strategy_Logout_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 (_c *Strategy_Logout_Call) Return(_a0 error) *Strategy_Logout_Call
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 ¶
func (_c *Strategy_Logout_Call) RunAndReturn(run func(context.Context, entities.Tokens) error) *Strategy_Logout_Call
type Strategy_Management_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 (_c *Strategy_Management_Call) Return(_a0 strategies.Management) *Strategy_Management_Call
func (*Strategy_Management_Call) Run ¶
func (_c *Strategy_Management_Call) Run(run func()) *Strategy_Management_Call
func (*Strategy_Management_Call) RunAndReturn ¶
func (_c *Strategy_Management_Call) RunAndReturn(run func() strategies.Management) *Strategy_Management_Call
type Strategy_Readiness_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 (_c *Strategy_Readiness_Call) Return(_a0 error) *Strategy_Readiness_Call
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 ¶
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 (_c *Strategy_Register_Call) Return(_a0 error) *Strategy_Register_Call
func (*Strategy_Register_Call) Run ¶
func (_c *Strategy_Register_Call) Run(run func(ctx context.Context, acc entities.Account)) *Strategy_Register_Call
func (*Strategy_Register_Call) RunAndReturn ¶
func (_c *Strategy_Register_Call) RunAndReturn(run func(context.Context, entities.Account) error) *Strategy_Register_Call
type Strategy_Verify_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 (_c *Strategy_Verify_Call) Return(_a0 *entities.Account, _a1 error) *Strategy_Verify_Call
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 ¶
func (_c *Strategy_Verify_Call) RunAndReturn(run func(context.Context, entities.Tokens) (*entities.Account, error)) *Strategy_Verify_Call