mocks

package
v0.27.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 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 MockCache added in v0.26.0

type MockCache struct {
	mock.Mock
}

MockCache is an autogenerated mock type for the Cache type

func NewMockCache added in v0.26.0

func NewMockCache(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockCache

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) Delete added in v0.26.0

func (_mock *MockCache) Delete(ctx context.Context, key string) error

Delete provides a mock function for the type MockCache

func (*MockCache) EXPECT added in v0.26.0

func (_m *MockCache) EXPECT() *MockCache_Expecter

func (*MockCache) Get added in v0.26.0

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

Get provides a mock function for the type MockCache

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

func (_mock *MockCache) ResetLoginAttempts(ctx context.Context, source string, userID string) error

ResetLoginAttempts provides a mock function for the type MockCache

func (*MockCache) Set added in v0.26.0

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

Set provides a mock function for the type MockCache

func (*MockCache) SetNX

func (_mock *MockCache) SetNX(ctx context.Context, key string, value interface{}, ttl time.Duration) (bool, error)

SetNX provides a mock function for the type MockCache

func (*MockCache) StoreLoginAttempt added in v0.26.0

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

StoreLoginAttempt provides a mock function for the type MockCache

type MockCache_Delete_Call added in v0.26.0

type MockCache_Delete_Call struct {
	*mock.Call
}

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 (*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) SetNX

func (_e *MockCache_Expecter) SetNX(ctx any, key any, value any, ttl any) *MockCache_SetNX_Call

SetNX 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

type MockCache_Get_Call struct {
	*mock.Call
}

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

type MockCache_HasAccountLockout_Call struct {
	*mock.Call
}

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 (*MockCache_HasAccountLockout_Call) Run added in v0.26.0

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

type MockCache_ResetLoginAttempts_Call struct {
	*mock.Call
}

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 (*MockCache_ResetLoginAttempts_Call) Run added in v0.26.0

func (*MockCache_ResetLoginAttempts_Call) RunAndReturn added in v0.26.0

type MockCache_SetNX_Call

type MockCache_SetNX_Call struct {
	*mock.Call
}

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

func (*MockCache_SetNX_Call) Return

func (*MockCache_SetNX_Call) Run

func (_c *MockCache_SetNX_Call) Run(run func(ctx context.Context, key string, value interface{}, ttl time.Duration)) *MockCache_SetNX_Call

func (*MockCache_SetNX_Call) RunAndReturn

func (_c *MockCache_SetNX_Call) RunAndReturn(run func(ctx context.Context, key string, value interface{}, ttl time.Duration) (bool, error)) *MockCache_SetNX_Call

type MockCache_Set_Call added in v0.26.0

type MockCache_Set_Call struct {
	*mock.Call
}

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

type MockCache_StoreLoginAttempt_Call struct {
	*mock.Call
}

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 (*MockCache_StoreLoginAttempt_Call) Run added in v0.26.0

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

Jump to

Keyboard shortcuts

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