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 Mockcache

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

Mockcache is a mock of cache interface.

func NewMockcache

func NewMockcache(ctrl *gomock.Controller) *Mockcache

NewMockcache creates a new mock instance.

func (*Mockcache) AllowRateLimit added in v0.9.79

func (m *Mockcache) AllowRateLimit(ctx context.Context, key string, interval time.Duration, burst int, ttl time.Duration) (bool, error)

AllowRateLimit mocks base method.

func (*Mockcache) EXPECT

func (m *Mockcache) EXPECT() *MockcacheMockRecorder

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

type MockcacheMockRecorder

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

MockcacheMockRecorder is the mock recorder for Mockcache.

func (*MockcacheMockRecorder) AllowRateLimit added in v0.9.79

func (mr *MockcacheMockRecorder) AllowRateLimit(ctx, key, interval, burst, ttl any) *gomock.Call

AllowRateLimit indicates an expected call of AllowRateLimit.

type MockoutboxService

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

MockoutboxService is a mock of outboxService interface.

func NewMockoutboxService

func NewMockoutboxService(ctrl *gomock.Controller) *MockoutboxService

NewMockoutboxService creates a new mock instance.

func (*MockoutboxService) EXPECT

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

func (*MockoutboxService) NewOutboxMessage

func (m *MockoutboxService) NewOutboxMessage(ctx context.Context, topic string, msg *domain.Message) error

NewOutboxMessage mocks base method.

type MockoutboxServiceMockRecorder

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

MockoutboxServiceMockRecorder is the mock recorder for MockoutboxService.

func (*MockoutboxServiceMockRecorder) NewOutboxMessage

func (mr *MockoutboxServiceMockRecorder) NewOutboxMessage(ctx, topic, msg any) *gomock.Call

NewOutboxMessage indicates an expected call of NewOutboxMessage.

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

func (m *Mockrepository) AssignRoleToUser(ctx context.Context, userID int, role string) error

AssignRoleToUser mocks base method.

func (*Mockrepository) CreateSession added in v0.9.79

func (m *Mockrepository) CreateSession(ctx context.Context, session *models.Session) error

CreateSession mocks base method.

func (*Mockrepository) CreateUser

func (m *Mockrepository) CreateUser(ctx context.Context, user *models.User) error

CreateUser mocks base method.

func (*Mockrepository) DeleteUser

func (m *Mockrepository) DeleteUser(ctx context.Context, user *models.User) error

DeleteUser mocks base method.

func (*Mockrepository) EXPECT

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

func (*Mockrepository) GetActiveSession added in v0.9.79

func (m *Mockrepository) GetActiveSession(ctx context.Context, sessionID, userUUID string) (*models.Session, error)

GetActiveSession mocks base method.

func (*Mockrepository) GetToken

func (m *Mockrepository) GetToken(ctx context.Context, hashedToken string) (*models.Token, error)

GetToken mocks base method.

func (*Mockrepository) GetUserByEmail

func (m *Mockrepository) GetUserByEmail(ctx context.Context, email string) (*models.User, error)

GetUserByEmail mocks base method.

func (*Mockrepository) GetUserByID

func (m *Mockrepository) GetUserByID(ctx context.Context, id int) (*models.User, error)

GetUserByID mocks base method.

func (*Mockrepository) GetUserByUUID

func (m *Mockrepository) GetUserByUUID(ctx context.Context, uuid string) (*models.User, error)

GetUserByUUID mocks base method.

func (*Mockrepository) ListUsers

func (m *Mockrepository) ListUsers(ctx context.Context, limit, offset int) ([]*models.User, error)

ListUsers mocks base method.

func (*Mockrepository) RevokeSession added in v0.9.79

func (m *Mockrepository) RevokeSession(ctx context.Context, sessionID, userUUID string) error

RevokeSession mocks base method.

func (*Mockrepository) RotateSession added in v0.9.79

func (m *Mockrepository) RotateSession(ctx context.Context, sessionID, userUUID, previousTokenID, nextTokenID string, expiresAt time.Time) (bool, error)

RotateSession mocks base method.

func (*Mockrepository) UpdateUser

func (m *Mockrepository) UpdateUser(ctx context.Context, user *models.User) error

UpdateUser 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) AssignRoleToUser

func (mr *MockrepositoryMockRecorder) AssignRoleToUser(ctx, userID, role any) *gomock.Call

AssignRoleToUser indicates an expected call of AssignRoleToUser.

func (*MockrepositoryMockRecorder) CreateSession added in v0.9.79

func (mr *MockrepositoryMockRecorder) CreateSession(ctx, session any) *gomock.Call

CreateSession indicates an expected call of CreateSession.

func (*MockrepositoryMockRecorder) CreateUser

func (mr *MockrepositoryMockRecorder) CreateUser(ctx, user any) *gomock.Call

CreateUser indicates an expected call of CreateUser.

func (*MockrepositoryMockRecorder) DeleteUser

func (mr *MockrepositoryMockRecorder) DeleteUser(ctx, user any) *gomock.Call

DeleteUser indicates an expected call of DeleteUser.

func (*MockrepositoryMockRecorder) GetActiveSession added in v0.9.79

func (mr *MockrepositoryMockRecorder) GetActiveSession(ctx, sessionID, userUUID any) *gomock.Call

GetActiveSession indicates an expected call of GetActiveSession.

func (*MockrepositoryMockRecorder) GetToken

func (mr *MockrepositoryMockRecorder) GetToken(ctx, hashedToken any) *gomock.Call

GetToken indicates an expected call of GetToken.

func (*MockrepositoryMockRecorder) GetUserByEmail

func (mr *MockrepositoryMockRecorder) GetUserByEmail(ctx, email any) *gomock.Call

GetUserByEmail indicates an expected call of GetUserByEmail.

func (*MockrepositoryMockRecorder) GetUserByID

func (mr *MockrepositoryMockRecorder) GetUserByID(ctx, id any) *gomock.Call

GetUserByID indicates an expected call of GetUserByID.

func (*MockrepositoryMockRecorder) GetUserByUUID

func (mr *MockrepositoryMockRecorder) GetUserByUUID(ctx, uuid any) *gomock.Call

GetUserByUUID indicates an expected call of GetUserByUUID.

func (*MockrepositoryMockRecorder) ListUsers

func (mr *MockrepositoryMockRecorder) ListUsers(ctx, limit, offset any) *gomock.Call

ListUsers indicates an expected call of ListUsers.

func (*MockrepositoryMockRecorder) RevokeSession added in v0.9.79

func (mr *MockrepositoryMockRecorder) RevokeSession(ctx, sessionID, userUUID any) *gomock.Call

RevokeSession indicates an expected call of RevokeSession.

func (*MockrepositoryMockRecorder) RotateSession added in v0.9.79

func (mr *MockrepositoryMockRecorder) RotateSession(ctx, sessionID, userUUID, previousTokenID, nextTokenID, expiresAt any) *gomock.Call

RotateSession indicates an expected call of RotateSession.

func (*MockrepositoryMockRecorder) UpdateUser

func (mr *MockrepositoryMockRecorder) UpdateUser(ctx, user any) *gomock.Call

UpdateUser indicates an expected call of UpdateUser.

func (*MockrepositoryMockRecorder) WithTransaction

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

WithTransaction indicates an expected call of WithTransaction.

Jump to

Keyboard shortcuts

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