Help us shape the future of Go! Take the 2026 Go Developer Survey

mocks

package
v0.9.82 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockauthService

type MockauthService struct {
	// contains filtered or unexported fields
}

MockauthService is a mock of authService interface.

func NewMockauthService

func NewMockauthService(ctrl *gomock.Controller) *MockauthService

NewMockauthService creates a new mock instance.

func (*MockauthService) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockauthService) RecentlyUsedTokensChan

func (m *MockauthService) RecentlyUsedTokensChan() <-chan domain.TokenWasUsed

RecentlyUsedTokensChan mocks base method.

type MockauthServiceMockRecorder

type MockauthServiceMockRecorder struct {
	// contains filtered or unexported fields
}

MockauthServiceMockRecorder is the mock recorder for MockauthService.

func (*MockauthServiceMockRecorder) RecentlyUsedTokensChan

func (mr *MockauthServiceMockRecorder) RecentlyUsedTokensChan() *gomock.Call

RecentlyUsedTokensChan indicates an expected call of RecentlyUsedTokensChan.

type Mockrepository

type Mockrepository struct {
	// contains filtered or unexported fields
}

Mockrepository is a mock of repository interface.

func NewMockrepository

func NewMockrepository(ctrl *gomock.Controller) *Mockrepository

NewMockrepository creates a new mock instance.

func (*Mockrepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*Mockrepository) SaveUserHistoryRecord

func (m *Mockrepository) SaveUserHistoryRecord(ctx context.Context, record *models.UserHistoryRecord) error

SaveUserHistoryRecord mocks base method.

func (*Mockrepository) UpdateTokenLastUsed

func (m *Mockrepository) UpdateTokenLastUsed(ctx context.Context, tokenID int, when time.Time) error

UpdateTokenLastUsed mocks base method.

func (*Mockrepository) WithTransaction

func (m *Mockrepository) WithTransaction(ctx context.Context, fn func(context.Context) error) error

WithTransaction mocks base method.

type MockrepositoryMockRecorder

type MockrepositoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockrepositoryMockRecorder is the mock recorder for Mockrepository.

func (*MockrepositoryMockRecorder) SaveUserHistoryRecord

func (mr *MockrepositoryMockRecorder) SaveUserHistoryRecord(ctx, record any) *gomock.Call

SaveUserHistoryRecord indicates an expected call of SaveUserHistoryRecord.

func (*MockrepositoryMockRecorder) UpdateTokenLastUsed

func (mr *MockrepositoryMockRecorder) UpdateTokenLastUsed(ctx, tokenID, when any) *gomock.Call

UpdateTokenLastUsed indicates an expected call of UpdateTokenLastUsed.

func (*MockrepositoryMockRecorder) WithTransaction

func (mr *MockrepositoryMockRecorder) WithTransaction(ctx, fn any) *gomock.Call

WithTransaction indicates an expected call of WithTransaction.

type Mocksubscriber

type Mocksubscriber struct {
	// contains filtered or unexported fields
}

Mocksubscriber is a mock of subscriber interface.

func NewMocksubscriber

func NewMocksubscriber(ctrl *gomock.Controller) *Mocksubscriber

NewMocksubscriber creates a new mock instance.

func (*Mocksubscriber) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*Mocksubscriber) Subscribe

func (m *Mocksubscriber) Subscribe(topic string, handler func(context.Context, []byte) error) error

Subscribe mocks base method.

type MocksubscriberMockRecorder

type MocksubscriberMockRecorder struct {
	// contains filtered or unexported fields
}

MocksubscriberMockRecorder is the mock recorder for Mocksubscriber.

func (*MocksubscriberMockRecorder) Subscribe

func (mr *MocksubscriberMockRecorder) Subscribe(topic, handler any) *gomock.Call

Subscribe indicates an expected call of Subscribe.

Jump to

Keyboard shortcuts

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