Documentation ¶
Index ¶
- type Cache
- func (_m *Cache) Delete(ctx context.Context, key string) error
- func (_m *Cache) Get(ctx context.Context, key string, value interface{}) error
- func (_m *Cache) HasAccountLockout(ctx context.Context, source string, userID string) (int64, int, error)
- func (_m *Cache) ResetLoginAttempts(ctx context.Context, source string, userID string) error
- func (_m *Cache) Set(ctx context.Context, key string, value interface{}, ttl time.Duration) error
- func (_m *Cache) StoreLoginAttempt(ctx context.Context, source string, userID string) (int64, int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
Cache is an autogenerated mock type for the Cache type
func NewCache ¶
NewCache creates a new instance of Cache. 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 (*Cache) HasAccountLockout ¶
func (_m *Cache) HasAccountLockout(ctx context.Context, source string, userID string) (int64, int, error)
HasAccountLockout provides a mock function with given fields: ctx, source, userID
func (*Cache) ResetLoginAttempts ¶
ResetLoginAttempts provides a mock function with given fields: ctx, source, userID
Click to show internal directories.
Click to hide internal directories.