mock_service

package
v0.0.0-...-bef6861 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package mock_service is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAuthorization

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

MockAuthorization is a mock of Authorization interface.

func NewMockAuthorization

func NewMockAuthorization(ctrl *gomock.Controller) *MockAuthorization

NewMockAuthorization creates a new mock instance.

func (*MockAuthorization) CreateUser

func (m *MockAuthorization) CreateUser(user domain.User) (int64, error)

CreateUser mocks base method.

func (*MockAuthorization) EXPECT

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

func (*MockAuthorization) GenerateToken

func (m *MockAuthorization) GenerateToken(email, password string) (int64, string, error)

GenerateToken mocks base method.

func (*MockAuthorization) GetUserName

func (m *MockAuthorization) GetUserName(id int64) (string, error)

GetUserName mocks base method.

func (*MockAuthorization) ParseToken

func (m *MockAuthorization) ParseToken(token string) (int64, error)

ParseToken mocks base method.

type MockAuthorizationMockRecorder

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

MockAuthorizationMockRecorder is the mock recorder for MockAuthorization.

func (*MockAuthorizationMockRecorder) CreateUser

func (mr *MockAuthorizationMockRecorder) CreateUser(user interface{}) *gomock.Call

CreateUser indicates an expected call of CreateUser.

func (*MockAuthorizationMockRecorder) GenerateToken

func (mr *MockAuthorizationMockRecorder) GenerateToken(email, password interface{}) *gomock.Call

GenerateToken indicates an expected call of GenerateToken.

func (*MockAuthorizationMockRecorder) GetUserName

func (mr *MockAuthorizationMockRecorder) GetUserName(id interface{}) *gomock.Call

GetUserName indicates an expected call of GetUserName.

func (*MockAuthorizationMockRecorder) ParseToken

func (mr *MockAuthorizationMockRecorder) ParseToken(token interface{}) *gomock.Call

ParseToken indicates an expected call of ParseToken.

type MockVerification

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

MockVerification is a mock of Verification interface.

func NewMockVerification

func NewMockVerification(ctrl *gomock.Controller) *MockVerification

NewMockVerification creates a new mock instance.

func (*MockVerification) EXPECT

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

func (*MockVerification) GetVerificationCode

func (m *MockVerification) GetVerificationCode(id int64) (int, error)

GetVerificationCode mocks base method.

func (*MockVerification) SendCodeToBot

func (m *MockVerification) SendCodeToBot(id int64, discord string) error

SendCodeToBot mocks base method.

type MockVerificationMockRecorder

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

MockVerificationMockRecorder is the mock recorder for MockVerification.

func (*MockVerificationMockRecorder) GetVerificationCode

func (mr *MockVerificationMockRecorder) GetVerificationCode(id interface{}) *gomock.Call

GetVerificationCode indicates an expected call of GetVerificationCode.

func (*MockVerificationMockRecorder) SendCodeToBot

func (mr *MockVerificationMockRecorder) SendCodeToBot(id, discord interface{}) *gomock.Call

SendCodeToBot indicates an expected call of SendCodeToBot.

Jump to

Keyboard shortcuts

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