Documentation
¶
Index ¶
- type MockCache
- func (_mock *MockCache) Delete(ctx context.Context, key string) error
- func (_m *MockCache) EXPECT() *MockCache_Expecter
- func (_mock *MockCache) Get(ctx context.Context, key string, value interface{}) error
- func (_mock *MockCache) HasAccountLockout(ctx context.Context, source string, userID string) (int64, int, error)
- func (_mock *MockCache) ResetLoginAttempts(ctx context.Context, source string, userID string) error
- func (_mock *MockCache) Set(ctx context.Context, key string, value interface{}, ttl time.Duration) error
- func (_mock *MockCache) StoreLoginAttempt(ctx context.Context, source string, userID string) (int64, int, error)
- type MockCache_Delete_Call
- type MockCache_Expecter
- func (_e *MockCache_Expecter) Delete(ctx any, key any) *MockCache_Delete_Call
- func (_e *MockCache_Expecter) Get(ctx any, key any, value any) *MockCache_Get_Call
- func (_e *MockCache_Expecter) HasAccountLockout(ctx any, source any, userID any) *MockCache_HasAccountLockout_Call
- func (_e *MockCache_Expecter) ResetLoginAttempts(ctx any, source any, userID any) *MockCache_ResetLoginAttempts_Call
- func (_e *MockCache_Expecter) Set(ctx any, key any, value any, ttl any) *MockCache_Set_Call
- func (_e *MockCache_Expecter) StoreLoginAttempt(ctx any, source any, userID any) *MockCache_StoreLoginAttempt_Call
- type MockCache_Get_Call
- func (_c *MockCache_Get_Call) Return(err error) *MockCache_Get_Call
- func (_c *MockCache_Get_Call) Run(run func(ctx context.Context, key string, value interface{})) *MockCache_Get_Call
- func (_c *MockCache_Get_Call) RunAndReturn(run func(ctx context.Context, key string, value interface{}) error) *MockCache_Get_Call
- type MockCache_HasAccountLockout_Call
- func (_c *MockCache_HasAccountLockout_Call) Return(lockout int64, attempt int, err error) *MockCache_HasAccountLockout_Call
- func (_c *MockCache_HasAccountLockout_Call) Run(run func(ctx context.Context, source string, userID string)) *MockCache_HasAccountLockout_Call
- func (_c *MockCache_HasAccountLockout_Call) RunAndReturn(...) *MockCache_HasAccountLockout_Call
- type MockCache_ResetLoginAttempts_Call
- func (_c *MockCache_ResetLoginAttempts_Call) Return(err error) *MockCache_ResetLoginAttempts_Call
- func (_c *MockCache_ResetLoginAttempts_Call) Run(run func(ctx context.Context, source string, userID string)) *MockCache_ResetLoginAttempts_Call
- func (_c *MockCache_ResetLoginAttempts_Call) RunAndReturn(run func(ctx context.Context, source string, userID string) error) *MockCache_ResetLoginAttempts_Call
- type MockCache_Set_Call
- type MockCache_StoreLoginAttempt_Call
- func (_c *MockCache_StoreLoginAttempt_Call) Return(lockout int64, attempt int, err error) *MockCache_StoreLoginAttempt_Call
- func (_c *MockCache_StoreLoginAttempt_Call) Run(run func(ctx context.Context, source string, userID string)) *MockCache_StoreLoginAttempt_Call
- func (_c *MockCache_StoreLoginAttempt_Call) RunAndReturn(...) *MockCache_StoreLoginAttempt_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCache ¶ added in v0.26.0
MockCache is an autogenerated mock type for the Cache type
func NewMockCache ¶ added in v0.26.0
NewMockCache creates a new instance of MockCache. 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 (*MockCache) EXPECT ¶ added in v0.26.0
func (_m *MockCache) EXPECT() *MockCache_Expecter
func (*MockCache) HasAccountLockout ¶ added in v0.26.0
func (_mock *MockCache) HasAccountLockout(ctx context.Context, source string, userID string) (int64, int, error)
HasAccountLockout provides a mock function for the type MockCache
func (*MockCache) ResetLoginAttempts ¶ added in v0.26.0
ResetLoginAttempts provides a mock function for the type MockCache
type MockCache_Delete_Call ¶ added in v0.26.0
MockCache_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*MockCache_Delete_Call) Return ¶ added in v0.26.0
func (_c *MockCache_Delete_Call) Return(err error) *MockCache_Delete_Call
func (*MockCache_Delete_Call) Run ¶ added in v0.26.0
func (_c *MockCache_Delete_Call) Run(run func(ctx context.Context, key string)) *MockCache_Delete_Call
func (*MockCache_Delete_Call) RunAndReturn ¶ added in v0.26.0
func (_c *MockCache_Delete_Call) RunAndReturn(run func(ctx context.Context, key string) error) *MockCache_Delete_Call
type MockCache_Expecter ¶ added in v0.26.0
type MockCache_Expecter struct {
// contains filtered or unexported fields
}
func (*MockCache_Expecter) Delete ¶ added in v0.26.0
func (_e *MockCache_Expecter) Delete(ctx any, key any) *MockCache_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- key string
func (*MockCache_Expecter) Get ¶ added in v0.26.0
func (_e *MockCache_Expecter) Get(ctx any, key any, value any) *MockCache_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- key string
- value interface{}
func (*MockCache_Expecter) HasAccountLockout ¶ added in v0.26.0
func (_e *MockCache_Expecter) HasAccountLockout(ctx any, source any, userID any) *MockCache_HasAccountLockout_Call
HasAccountLockout is a helper method to define mock.On call
- ctx context.Context
- source string
- userID string
func (*MockCache_Expecter) ResetLoginAttempts ¶ added in v0.26.0
func (_e *MockCache_Expecter) ResetLoginAttempts(ctx any, source any, userID any) *MockCache_ResetLoginAttempts_Call
ResetLoginAttempts is a helper method to define mock.On call
- ctx context.Context
- source string
- userID string
func (*MockCache_Expecter) Set ¶ added in v0.26.0
func (_e *MockCache_Expecter) Set(ctx any, key any, value any, ttl any) *MockCache_Set_Call
Set is a helper method to define mock.On call
- ctx context.Context
- key string
- value interface{}
- ttl time.Duration
func (*MockCache_Expecter) StoreLoginAttempt ¶ added in v0.26.0
func (_e *MockCache_Expecter) StoreLoginAttempt(ctx any, source any, userID any) *MockCache_StoreLoginAttempt_Call
StoreLoginAttempt is a helper method to define mock.On call
- ctx context.Context
- source string
- userID string
type MockCache_Get_Call ¶ added in v0.26.0
MockCache_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*MockCache_Get_Call) Return ¶ added in v0.26.0
func (_c *MockCache_Get_Call) Return(err error) *MockCache_Get_Call
func (*MockCache_Get_Call) Run ¶ added in v0.26.0
func (_c *MockCache_Get_Call) Run(run func(ctx context.Context, key string, value interface{})) *MockCache_Get_Call
func (*MockCache_Get_Call) RunAndReturn ¶ added in v0.26.0
func (_c *MockCache_Get_Call) RunAndReturn(run func(ctx context.Context, key string, value interface{}) error) *MockCache_Get_Call
type MockCache_HasAccountLockout_Call ¶ added in v0.26.0
MockCache_HasAccountLockout_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasAccountLockout'
func (*MockCache_HasAccountLockout_Call) Return ¶ added in v0.26.0
func (_c *MockCache_HasAccountLockout_Call) Return(lockout int64, attempt int, err error) *MockCache_HasAccountLockout_Call
func (*MockCache_HasAccountLockout_Call) Run ¶ added in v0.26.0
func (_c *MockCache_HasAccountLockout_Call) Run(run func(ctx context.Context, source string, userID string)) *MockCache_HasAccountLockout_Call
func (*MockCache_HasAccountLockout_Call) RunAndReturn ¶ added in v0.26.0
func (_c *MockCache_HasAccountLockout_Call) RunAndReturn(run func(ctx context.Context, source string, userID string) (int64, int, error)) *MockCache_HasAccountLockout_Call
type MockCache_ResetLoginAttempts_Call ¶ added in v0.26.0
MockCache_ResetLoginAttempts_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ResetLoginAttempts'
func (*MockCache_ResetLoginAttempts_Call) Return ¶ added in v0.26.0
func (_c *MockCache_ResetLoginAttempts_Call) Return(err error) *MockCache_ResetLoginAttempts_Call
func (*MockCache_ResetLoginAttempts_Call) Run ¶ added in v0.26.0
func (_c *MockCache_ResetLoginAttempts_Call) Run(run func(ctx context.Context, source string, userID string)) *MockCache_ResetLoginAttempts_Call
func (*MockCache_ResetLoginAttempts_Call) RunAndReturn ¶ added in v0.26.0
func (_c *MockCache_ResetLoginAttempts_Call) RunAndReturn(run func(ctx context.Context, source string, userID string) error) *MockCache_ResetLoginAttempts_Call
type MockCache_Set_Call ¶ added in v0.26.0
MockCache_Set_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Set'
func (*MockCache_Set_Call) Return ¶ added in v0.26.0
func (_c *MockCache_Set_Call) Return(err error) *MockCache_Set_Call
func (*MockCache_Set_Call) Run ¶ added in v0.26.0
func (_c *MockCache_Set_Call) Run(run func(ctx context.Context, key string, value interface{}, ttl time.Duration)) *MockCache_Set_Call
func (*MockCache_Set_Call) RunAndReturn ¶ added in v0.26.0
func (_c *MockCache_Set_Call) RunAndReturn(run func(ctx context.Context, key string, value interface{}, ttl time.Duration) error) *MockCache_Set_Call
type MockCache_StoreLoginAttempt_Call ¶ added in v0.26.0
MockCache_StoreLoginAttempt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StoreLoginAttempt'
func (*MockCache_StoreLoginAttempt_Call) Return ¶ added in v0.26.0
func (_c *MockCache_StoreLoginAttempt_Call) Return(lockout int64, attempt int, err error) *MockCache_StoreLoginAttempt_Call
func (*MockCache_StoreLoginAttempt_Call) Run ¶ added in v0.26.0
func (_c *MockCache_StoreLoginAttempt_Call) Run(run func(ctx context.Context, source string, userID string)) *MockCache_StoreLoginAttempt_Call
func (*MockCache_StoreLoginAttempt_Call) RunAndReturn ¶ added in v0.26.0
func (_c *MockCache_StoreLoginAttempt_Call) RunAndReturn(run func(ctx context.Context, source string, userID string) (int64, int, error)) *MockCache_StoreLoginAttempt_Call