mock_user

package
v0.0.0-...-c380036 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mock_user is a generated GoMock package.

Package mock_user is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockIService

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

MockIService is a mock of IService interface.

func NewMockIService

func NewMockIService(ctrl *gomock.Controller) *MockIService

NewMockIService creates a new mock instance.

func (*MockIService) ChatStart

func (m *MockIService) ChatStart(ctx context.Context, token string) (*models.User, int, error)

ChatStart mocks base method.

func (*MockIService) Create

func (m *MockIService) Create(ctx context.Context, user models.UserDTO) (string, error)

Create mocks base method.

func (*MockIService) CreateToken

func (m *MockIService) CreateToken(ctx context.Context, u *models.User) (string, error)

CreateToken mocks base method.

func (*MockIService) EXPECT

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

func (*MockIService) FindByUUID

func (m *MockIService) FindByUUID(ctx context.Context, uid string) (*models.User, error)

FindByUUID mocks base method.

func (*MockIService) GetOnlineUsers

func (m *MockIService) GetOnlineUsers(ctx context.Context) (int, error)

GetOnlineUsers mocks base method.

func (*MockIService) InitSocketConnection

func (m *MockIService) InitSocketConnection(w http.ResponseWriter, r *http.Request, u *models.User) error

InitSocketConnection mocks base method.

func (*MockIService) Login

func (m *MockIService) Login(ctx context.Context, dto *models.UserDTO) (*models.User, error)

Login mocks base method.

func (*MockIService) RevokeToken

func (m *MockIService) RevokeToken(ctx context.Context, u *models.User) bool

RevokeToken mocks base method.

func (*MockIService) StartWS

func (m *MockIService) StartWS(w http.ResponseWriter, r *http.Request, u *models.User) error

StartWS mocks base method.

type MockIServiceMockRecorder

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

MockIServiceMockRecorder is the mock recorder for MockIService.

func (*MockIServiceMockRecorder) ChatStart

func (mr *MockIServiceMockRecorder) ChatStart(ctx, token interface{}) *gomock.Call

ChatStart indicates an expected call of ChatStart.

func (*MockIServiceMockRecorder) Create

func (mr *MockIServiceMockRecorder) Create(ctx, user interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockIServiceMockRecorder) CreateToken

func (mr *MockIServiceMockRecorder) CreateToken(ctx, u interface{}) *gomock.Call

CreateToken indicates an expected call of CreateToken.

func (*MockIServiceMockRecorder) FindByUUID

func (mr *MockIServiceMockRecorder) FindByUUID(ctx, uid interface{}) *gomock.Call

FindByUUID indicates an expected call of FindByUUID.

func (*MockIServiceMockRecorder) GetOnlineUsers

func (mr *MockIServiceMockRecorder) GetOnlineUsers(ctx interface{}) *gomock.Call

GetOnlineUsers indicates an expected call of GetOnlineUsers.

func (*MockIServiceMockRecorder) InitSocketConnection

func (mr *MockIServiceMockRecorder) InitSocketConnection(w, r, u interface{}) *gomock.Call

InitSocketConnection indicates an expected call of InitSocketConnection.

func (*MockIServiceMockRecorder) Login

func (mr *MockIServiceMockRecorder) Login(ctx, dto interface{}) *gomock.Call

Login indicates an expected call of Login.

func (*MockIServiceMockRecorder) RevokeToken

func (mr *MockIServiceMockRecorder) RevokeToken(ctx, u interface{}) *gomock.Call

RevokeToken indicates an expected call of RevokeToken.

func (*MockIServiceMockRecorder) StartWS

func (mr *MockIServiceMockRecorder) StartWS(w, r, u interface{}) *gomock.Call

StartWS indicates an expected call of StartWS.

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

func (m *MockRepository) Create(ctx context.Context, user *models.User) (string, error)

Create mocks base method.

func (*MockRepository) EXPECT

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

func (*MockRepository) FindByUUID

func (m *MockRepository) FindByUUID(ctx context.Context, uuid string) (*models.User, error)

FindByUUID mocks base method.

func (*MockRepository) FindOneMessage

func (m *MockRepository) FindOneMessage(ctx context.Context, mid int) (*models.Message, error)

FindOneMessage mocks base method.

func (*MockRepository) FindOneUser

func (m *MockRepository) FindOneUser(ctx context.Context, username string) (*models.User, error)

FindOneUser mocks base method.

func (*MockRepository) GetOnline

func (m *MockRepository) GetOnline(ctx context.Context) (int, error)

GetOnline mocks base method.

func (*MockRepository) GetUnreadMessages

func (m *MockRepository) GetUnreadMessages(ctx context.Context, u *models.User, unreadMC int) ([]models.Message, error)

GetUnreadMessages mocks base method.

func (*MockRepository) GetUnreadMessagesCount

func (m *MockRepository) GetUnreadMessagesCount(ctx context.Context, u *models.User) (int, error)

GetUnreadMessagesCount mocks base method.

func (*MockRepository) StoreMessage

func (m *MockRepository) StoreMessage(ctx context.Context, message *models.Message) (int, error)

StoreMessage mocks base method.

func (*MockRepository) UpdateKey

func (m *MockRepository) UpdateKey(ctx context.Context, user *models.User, key string) error

UpdateKey mocks base method.

func (*MockRepository) UpdateOnline

func (m *MockRepository) UpdateOnline(ctx context.Context, user *models.User, isOnline bool) error

UpdateOnline mocks base method.

type MockRepositoryMockRecorder

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

MockRepositoryMockRecorder is the mock recorder for MockRepository.

func (*MockRepositoryMockRecorder) Create

func (mr *MockRepositoryMockRecorder) Create(ctx, user interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockRepositoryMockRecorder) FindByUUID

func (mr *MockRepositoryMockRecorder) FindByUUID(ctx, uuid interface{}) *gomock.Call

FindByUUID indicates an expected call of FindByUUID.

func (*MockRepositoryMockRecorder) FindOneMessage

func (mr *MockRepositoryMockRecorder) FindOneMessage(ctx, mid interface{}) *gomock.Call

FindOneMessage indicates an expected call of FindOneMessage.

func (*MockRepositoryMockRecorder) FindOneUser

func (mr *MockRepositoryMockRecorder) FindOneUser(ctx, username interface{}) *gomock.Call

FindOneUser indicates an expected call of FindOneUser.

func (*MockRepositoryMockRecorder) GetOnline

func (mr *MockRepositoryMockRecorder) GetOnline(ctx interface{}) *gomock.Call

GetOnline indicates an expected call of GetOnline.

func (*MockRepositoryMockRecorder) GetUnreadMessages

func (mr *MockRepositoryMockRecorder) GetUnreadMessages(ctx, u, unreadMC interface{}) *gomock.Call

GetUnreadMessages indicates an expected call of GetUnreadMessages.

func (*MockRepositoryMockRecorder) GetUnreadMessagesCount

func (mr *MockRepositoryMockRecorder) GetUnreadMessagesCount(ctx, u interface{}) *gomock.Call

GetUnreadMessagesCount indicates an expected call of GetUnreadMessagesCount.

func (*MockRepositoryMockRecorder) StoreMessage

func (mr *MockRepositoryMockRecorder) StoreMessage(ctx, message interface{}) *gomock.Call

StoreMessage indicates an expected call of StoreMessage.

func (*MockRepositoryMockRecorder) UpdateKey

func (mr *MockRepositoryMockRecorder) UpdateKey(ctx, user, key interface{}) *gomock.Call

UpdateKey indicates an expected call of UpdateKey.

func (*MockRepositoryMockRecorder) UpdateOnline

func (mr *MockRepositoryMockRecorder) UpdateOnline(ctx, user, isOnline interface{}) *gomock.Call

UpdateOnline indicates an expected call of UpdateOnline.

Jump to

Keyboard shortcuts

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