Documentation
¶
Index ¶
- type MockAPIKeyVerifier
- type MockAPIKeyVerifier_Expecter
- type MockAPIKeyVerifier_UpdateLastUsed_Call
- func (_c *MockAPIKeyVerifier_UpdateLastUsed_Call) Return(err error) *MockAPIKeyVerifier_UpdateLastUsed_Call
- func (_c *MockAPIKeyVerifier_UpdateLastUsed_Call) Run(run func(ctx context.Context, id int, ip string)) *MockAPIKeyVerifier_UpdateLastUsed_Call
- func (_c *MockAPIKeyVerifier_UpdateLastUsed_Call) RunAndReturn(run func(ctx context.Context, id int, ip string) error) *MockAPIKeyVerifier_UpdateLastUsed_Call
- type MockAPIKeyVerifier_Verify_Call
- func (_c *MockAPIKeyVerifier_Verify_Call) Return(aPIKey *apikey.APIKey, err error) *MockAPIKeyVerifier_Verify_Call
- func (_c *MockAPIKeyVerifier_Verify_Call) Run(run func(ctx context.Context, fullKey string)) *MockAPIKeyVerifier_Verify_Call
- func (_c *MockAPIKeyVerifier_Verify_Call) RunAndReturn(run func(ctx context.Context, fullKey string) (*apikey.APIKey, error)) *MockAPIKeyVerifier_Verify_Call
- type MockUserLookup
- type MockUserLookup_Expecter
- type MockUserLookup_GetUserByID_Call
- func (_c *MockUserLookup_GetUserByID_Call) Return(user *repository.User, err error) *MockUserLookup_GetUserByID_Call
- func (_c *MockUserLookup_GetUserByID_Call) Run(run func(ctx context.Context, userID int)) *MockUserLookup_GetUserByID_Call
- func (_c *MockUserLookup_GetUserByID_Call) RunAndReturn(run func(ctx context.Context, userID int) (*repository.User, error)) *MockUserLookup_GetUserByID_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAPIKeyVerifier ¶
MockAPIKeyVerifier is an autogenerated mock type for the APIKeyVerifier type
func NewMockAPIKeyVerifier ¶
func NewMockAPIKeyVerifier(t interface {
mock.TestingT
Cleanup(func())
}) *MockAPIKeyVerifier
NewMockAPIKeyVerifier creates a new instance of MockAPIKeyVerifier. 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 (*MockAPIKeyVerifier) EXPECT ¶
func (_m *MockAPIKeyVerifier) EXPECT() *MockAPIKeyVerifier_Expecter
func (*MockAPIKeyVerifier) UpdateLastUsed ¶
UpdateLastUsed provides a mock function for the type MockAPIKeyVerifier
type MockAPIKeyVerifier_Expecter ¶
type MockAPIKeyVerifier_Expecter struct {
// contains filtered or unexported fields
}
func (*MockAPIKeyVerifier_Expecter) UpdateLastUsed ¶
func (_e *MockAPIKeyVerifier_Expecter) UpdateLastUsed(ctx any, id any, ip any) *MockAPIKeyVerifier_UpdateLastUsed_Call
UpdateLastUsed is a helper method to define mock.On call
- ctx context.Context
- id int
- ip string
func (*MockAPIKeyVerifier_Expecter) Verify ¶
func (_e *MockAPIKeyVerifier_Expecter) Verify(ctx any, fullKey any) *MockAPIKeyVerifier_Verify_Call
Verify is a helper method to define mock.On call
- ctx context.Context
- fullKey string
type MockAPIKeyVerifier_UpdateLastUsed_Call ¶
MockAPIKeyVerifier_UpdateLastUsed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateLastUsed'
func (*MockAPIKeyVerifier_UpdateLastUsed_Call) Return ¶
func (_c *MockAPIKeyVerifier_UpdateLastUsed_Call) Return(err error) *MockAPIKeyVerifier_UpdateLastUsed_Call
func (*MockAPIKeyVerifier_UpdateLastUsed_Call) Run ¶
func (_c *MockAPIKeyVerifier_UpdateLastUsed_Call) Run(run func(ctx context.Context, id int, ip string)) *MockAPIKeyVerifier_UpdateLastUsed_Call
func (*MockAPIKeyVerifier_UpdateLastUsed_Call) RunAndReturn ¶
func (_c *MockAPIKeyVerifier_UpdateLastUsed_Call) RunAndReturn(run func(ctx context.Context, id int, ip string) error) *MockAPIKeyVerifier_UpdateLastUsed_Call
type MockAPIKeyVerifier_Verify_Call ¶
MockAPIKeyVerifier_Verify_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Verify'
func (*MockAPIKeyVerifier_Verify_Call) Return ¶
func (_c *MockAPIKeyVerifier_Verify_Call) Return(aPIKey *apikey.APIKey, err error) *MockAPIKeyVerifier_Verify_Call
func (*MockAPIKeyVerifier_Verify_Call) Run ¶
func (_c *MockAPIKeyVerifier_Verify_Call) Run(run func(ctx context.Context, fullKey string)) *MockAPIKeyVerifier_Verify_Call
func (*MockAPIKeyVerifier_Verify_Call) RunAndReturn ¶
func (_c *MockAPIKeyVerifier_Verify_Call) RunAndReturn(run func(ctx context.Context, fullKey string) (*apikey.APIKey, error)) *MockAPIKeyVerifier_Verify_Call
type MockUserLookup ¶
MockUserLookup is an autogenerated mock type for the UserLookup type
func NewMockUserLookup ¶
func NewMockUserLookup(t interface {
mock.TestingT
Cleanup(func())
}) *MockUserLookup
NewMockUserLookup creates a new instance of MockUserLookup. 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 (*MockUserLookup) EXPECT ¶
func (_m *MockUserLookup) EXPECT() *MockUserLookup_Expecter
func (*MockUserLookup) GetUserByID ¶
func (_mock *MockUserLookup) GetUserByID(ctx context.Context, userID int) (*repository.User, error)
GetUserByID provides a mock function for the type MockUserLookup
type MockUserLookup_Expecter ¶
type MockUserLookup_Expecter struct {
// contains filtered or unexported fields
}
func (*MockUserLookup_Expecter) GetUserByID ¶
func (_e *MockUserLookup_Expecter) GetUserByID(ctx any, userID any) *MockUserLookup_GetUserByID_Call
GetUserByID is a helper method to define mock.On call
- ctx context.Context
- userID int
type MockUserLookup_GetUserByID_Call ¶
MockUserLookup_GetUserByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserByID'
func (*MockUserLookup_GetUserByID_Call) Return ¶
func (_c *MockUserLookup_GetUserByID_Call) Return(user *repository.User, err error) *MockUserLookup_GetUserByID_Call
func (*MockUserLookup_GetUserByID_Call) Run ¶
func (_c *MockUserLookup_GetUserByID_Call) Run(run func(ctx context.Context, userID int)) *MockUserLookup_GetUserByID_Call
func (*MockUserLookup_GetUserByID_Call) RunAndReturn ¶
func (_c *MockUserLookup_GetUserByID_Call) RunAndReturn(run func(ctx context.Context, userID int) (*repository.User, error)) *MockUserLookup_GetUserByID_Call