Documentation
¶
Overview ¶
Package mock_api is a generated GoMock package.
Index ¶
- type MockRepo
- func (m *MockRepo) AddToken(ctx context.Context, t api.Token) (api.Token, error)
- func (m *MockRepo) DeleteOldToken(ctx context.Context) error
- func (m *MockRepo) DeleteToken(ctx context.Context, t api.Token) error
- func (m *MockRepo) EXPECT() *MockRepoMockRecorder
- func (m *MockRepo) GetToken(ctx context.Context, t api.Token) (api.Token, error)
- func (m *MockRepo) GetTokens(ctx context.Context, userID int) ([]api.Token, error)
- type MockRepoMockRecorder
- func (mr *MockRepoMockRecorder) AddToken(ctx, t any) *gomock.Call
- func (mr *MockRepoMockRecorder) DeleteOldToken(ctx any) *gomock.Call
- func (mr *MockRepoMockRecorder) DeleteToken(ctx, t any) *gomock.Call
- func (mr *MockRepoMockRecorder) GetToken(ctx, t any) *gomock.Call
- func (mr *MockRepoMockRecorder) GetTokens(ctx, userID any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRepo ¶
type MockRepo struct {
// contains filtered or unexported fields
}
MockRepo is a mock of Repo interface.
func NewMockRepo ¶
func NewMockRepo(ctrl *gomock.Controller) *MockRepo
NewMockRepo creates a new mock instance.
func (*MockRepo) DeleteOldToken ¶
DeleteOldToken mocks base method.
func (*MockRepo) DeleteToken ¶
DeleteToken mocks base method.
func (*MockRepo) EXPECT ¶
func (m *MockRepo) EXPECT() *MockRepoMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockRepoMockRecorder ¶
type MockRepoMockRecorder struct {
// contains filtered or unexported fields
}
MockRepoMockRecorder is the mock recorder for MockRepo.
func (*MockRepoMockRecorder) AddToken ¶
func (mr *MockRepoMockRecorder) AddToken(ctx, t any) *gomock.Call
AddToken indicates an expected call of AddToken.
func (*MockRepoMockRecorder) DeleteOldToken ¶
func (mr *MockRepoMockRecorder) DeleteOldToken(ctx any) *gomock.Call
DeleteOldToken indicates an expected call of DeleteOldToken.
func (*MockRepoMockRecorder) DeleteToken ¶
func (mr *MockRepoMockRecorder) DeleteToken(ctx, t any) *gomock.Call
DeleteToken indicates an expected call of DeleteToken.
Click to show internal directories.
Click to hide internal directories.