mocks

package
v0.15.2-rc.1 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	mock.Mock
}

Cache is an autogenerated mock type for the Cache type

func NewCache

func NewCache(t interface {
	mock.TestingT
	Cleanup(func())
}) *Cache

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) Delete

func (_m *Cache) Delete(ctx context.Context, key string) error

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

func (*Cache) Get

func (_m *Cache) Get(ctx context.Context, key string, value interface{}) error

Get provides a mock function with given fields: ctx, key, 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

func (_m *Cache) ResetLoginAttempts(ctx context.Context, source string, userID string) error

ResetLoginAttempts provides a mock function with given fields: ctx, source, userID

func (*Cache) Set

func (_m *Cache) Set(ctx context.Context, key string, value interface{}, ttl time.Duration) error

Set provides a mock function with given fields: ctx, key, value, ttl

func (*Cache) StoreLoginAttempt

func (_m *Cache) StoreLoginAttempt(ctx context.Context, source string, userID string) (int64, int, error)

StoreLoginAttempt provides a mock function with given fields: ctx, source, userID

Jump to

Keyboard shortcuts

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