mock_services

package
v0.0.0-...-adb56df Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package mock_services is a generated GoMock package.

Package mock_services is a generated GoMock package.

Package mock_services is a generated GoMock package.

Package mock_services is a generated GoMock package.

Package mock_services is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockImageProcessService

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

MockImageProcessService is a mock of ImageProcessService interface.

func NewMockImageProcessService

func NewMockImageProcessService(ctrl *gomock.Controller) *MockImageProcessService

NewMockImageProcessService creates a new mock instance.

func (*MockImageProcessService) CreateThumbnails

func (m *MockImageProcessService) CreateThumbnails(ctx context.Context, photoFile *entities.PhotoFile, data []byte, orientation int) error

CreateThumbnails mocks base method.

func (*MockImageProcessService) EXPECT

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

type MockImageProcessServiceMockRecorder

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

MockImageProcessServiceMockRecorder is the mock recorder for MockImageProcessService.

func (*MockImageProcessServiceMockRecorder) CreateThumbnails

func (mr *MockImageProcessServiceMockRecorder) CreateThumbnails(ctx, photoFile, data, orientation interface{}) *gomock.Call

CreateThumbnails indicates an expected call of CreateThumbnails.

type MockOAuthService

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

MockOAuthService is a mock of OAuthService interface.

func NewMockOAuthService

func NewMockOAuthService(ctrl *gomock.Controller) *MockOAuthService

NewMockOAuthService creates a new mock instance.

func (*MockOAuthService) AuthByRefreshToken

func (m *MockOAuthService) AuthByRefreshToken(ctx context.Context, clientID, refreshToken string) (*entities.UserAuth, error)

AuthByRefreshToken mocks base method.

func (*MockOAuthService) AuthClient

func (m *MockOAuthService) AuthClient(ctx context.Context, clientID, clientSecret string) (*entities.OauthClient, error)

AuthClient mocks base method.

func (*MockOAuthService) AuthCode

func (m *MockOAuthService) AuthCode(ctx context.Context, client *entities.OauthClient, code, redirectURL string) (*entities.OAuthCode, error)

AuthCode mocks base method.

func (*MockOAuthService) CreateClient

CreateClient mocks base method.

func (*MockOAuthService) CreateClientWithClientSecret

func (m *MockOAuthService) CreateClientWithClientSecret(ctx context.Context, client *entities.OauthClient, clientSecret string) error

CreateClientWithClientSecret mocks base method.

func (*MockOAuthService) EXPECT

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

func (*MockOAuthService) GetOAuthClientRedirectURLsByOAuthClientID

func (m *MockOAuthService) GetOAuthClientRedirectURLsByOAuthClientID(ctx context.Context, clientID string) (entities.OAuthClientRedirectURLList, error)

GetOAuthClientRedirectURLsByOAuthClientID mocks base method.

func (*MockOAuthService) GetSession

func (m *MockOAuthService) GetSession(ctx context.Context, accessToken string) (*entities.OauthSession, error)

GetSession mocks base method.

func (*MockOAuthService) GetUserClient

func (m *MockOAuthService) GetUserClient(ctx context.Context, clientID string) (*entities.OauthClient, error)

GetUserClient mocks base method.

func (*MockOAuthService) PublishAuthCode

func (m *MockOAuthService) PublishAuthCode(ctx context.Context, clientID, userID, redirectURL string) (string, error)

PublishAuthCode mocks base method.

func (*MockOAuthService) PublishCCAccessToken

func (m *MockOAuthService) PublishCCAccessToken(ctx context.Context, client *entities.OauthClient) (string, int64, error)

PublishCCAccessToken mocks base method.

func (*MockOAuthService) PublishUserAccessToken

func (m *MockOAuthService) PublishUserAccessToken(ctx context.Context, client *entities.OauthClient, userID string) (string, int64, error)

PublishUserAccessToken mocks base method.

func (*MockOAuthService) UpsertUserAuth

func (m *MockOAuthService) UpsertUserAuth(ctx context.Context, clientID, userID string, now time.Time) (string, error)

UpsertUserAuth mocks base method.

func (*MockOAuthService) ValidateRedirectURL

func (m *MockOAuthService) ValidateRedirectURL(ctx context.Context, clientID, redirectURL string) error

ValidateRedirectURL mocks base method.

func (*MockOAuthService) ValidateToCreateClient

func (m *MockOAuthService) ValidateToCreateClient(ctx context.Context, client *entities.OauthClient) error

ValidateToCreateClient mocks base method.

type MockOAuthServiceMockRecorder

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

MockOAuthServiceMockRecorder is the mock recorder for MockOAuthService.

func (*MockOAuthServiceMockRecorder) AuthByRefreshToken

func (mr *MockOAuthServiceMockRecorder) AuthByRefreshToken(ctx, clientID, refreshToken interface{}) *gomock.Call

AuthByRefreshToken indicates an expected call of AuthByRefreshToken.

func (*MockOAuthServiceMockRecorder) AuthClient

func (mr *MockOAuthServiceMockRecorder) AuthClient(ctx, clientID, clientSecret interface{}) *gomock.Call

AuthClient indicates an expected call of AuthClient.

func (*MockOAuthServiceMockRecorder) AuthCode

func (mr *MockOAuthServiceMockRecorder) AuthCode(ctx, client, code, redirectURL interface{}) *gomock.Call

AuthCode indicates an expected call of AuthCode.

func (*MockOAuthServiceMockRecorder) CreateClient

func (mr *MockOAuthServiceMockRecorder) CreateClient(ctx, client interface{}) *gomock.Call

CreateClient indicates an expected call of CreateClient.

func (*MockOAuthServiceMockRecorder) CreateClientWithClientSecret

func (mr *MockOAuthServiceMockRecorder) CreateClientWithClientSecret(ctx, client, clientSecret interface{}) *gomock.Call

CreateClientWithClientSecret indicates an expected call of CreateClientWithClientSecret.

func (*MockOAuthServiceMockRecorder) GetOAuthClientRedirectURLsByOAuthClientID

func (mr *MockOAuthServiceMockRecorder) GetOAuthClientRedirectURLsByOAuthClientID(ctx, clientID interface{}) *gomock.Call

GetOAuthClientRedirectURLsByOAuthClientID indicates an expected call of GetOAuthClientRedirectURLsByOAuthClientID.

func (*MockOAuthServiceMockRecorder) GetSession

func (mr *MockOAuthServiceMockRecorder) GetSession(ctx, accessToken interface{}) *gomock.Call

GetSession indicates an expected call of GetSession.

func (*MockOAuthServiceMockRecorder) GetUserClient

func (mr *MockOAuthServiceMockRecorder) GetUserClient(ctx, clientID interface{}) *gomock.Call

GetUserClient indicates an expected call of GetUserClient.

func (*MockOAuthServiceMockRecorder) PublishAuthCode

func (mr *MockOAuthServiceMockRecorder) PublishAuthCode(ctx, clientID, userID, redirectURL interface{}) *gomock.Call

PublishAuthCode indicates an expected call of PublishAuthCode.

func (*MockOAuthServiceMockRecorder) PublishCCAccessToken

func (mr *MockOAuthServiceMockRecorder) PublishCCAccessToken(ctx, client interface{}) *gomock.Call

PublishCCAccessToken indicates an expected call of PublishCCAccessToken.

func (*MockOAuthServiceMockRecorder) PublishUserAccessToken

func (mr *MockOAuthServiceMockRecorder) PublishUserAccessToken(ctx, client, userID interface{}) *gomock.Call

PublishUserAccessToken indicates an expected call of PublishUserAccessToken.

func (*MockOAuthServiceMockRecorder) UpsertUserAuth

func (mr *MockOAuthServiceMockRecorder) UpsertUserAuth(ctx, clientID, userID, now interface{}) *gomock.Call

UpsertUserAuth indicates an expected call of UpsertUserAuth.

func (*MockOAuthServiceMockRecorder) ValidateRedirectURL

func (mr *MockOAuthServiceMockRecorder) ValidateRedirectURL(ctx, clientID, redirectURL interface{}) *gomock.Call

ValidateRedirectURL indicates an expected call of ValidateRedirectURL.

func (*MockOAuthServiceMockRecorder) ValidateToCreateClient

func (mr *MockOAuthServiceMockRecorder) ValidateToCreateClient(ctx, client interface{}) *gomock.Call

ValidateToCreateClient indicates an expected call of ValidateToCreateClient.

type MockPasswordService

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

MockPasswordService is a mock of PasswordService interface.

func NewMockPasswordService

func NewMockPasswordService(ctrl *gomock.Controller) *MockPasswordService

NewMockPasswordService creates a new mock instance.

func (*MockPasswordService) EXPECT

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

func (*MockPasswordService) GeneratePassword

func (m *MockPasswordService) GeneratePassword(length int) (string, error)

GeneratePassword mocks base method.

func (*MockPasswordService) HashPassword

func (m *MockPasswordService) HashPassword(password string) (string, error)

HashPassword mocks base method.

func (*MockPasswordService) MatchPassword

func (m *MockPasswordService) MatchPassword(password, hash string) (bool, error)

MatchPassword mocks base method.

type MockPasswordServiceMockRecorder

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

MockPasswordServiceMockRecorder is the mock recorder for MockPasswordService.

func (*MockPasswordServiceMockRecorder) GeneratePassword

func (mr *MockPasswordServiceMockRecorder) GeneratePassword(length interface{}) *gomock.Call

GeneratePassword indicates an expected call of GeneratePassword.

func (*MockPasswordServiceMockRecorder) HashPassword

func (mr *MockPasswordServiceMockRecorder) HashPassword(password interface{}) *gomock.Call

HashPassword indicates an expected call of HashPassword.

func (*MockPasswordServiceMockRecorder) MatchPassword

func (mr *MockPasswordServiceMockRecorder) MatchPassword(password, hash interface{}) *gomock.Call

MatchPassword indicates an expected call of MatchPassword.

type MockPhotoService

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

MockPhotoService is a mock of PhotoService interface.

func NewMockPhotoService

func NewMockPhotoService(ctrl *gomock.Controller) *MockPhotoService

NewMockPhotoService creates a new mock instance.

func (*MockPhotoService) EXPECT

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

func (*MockPhotoService) RegisterPhoto

func (m *MockPhotoService) RegisterPhoto(ctx context.Context, filePath, fileHash string) (*entities.Photo, error)

RegisterPhoto mocks base method.

func (*MockPhotoService) ShouldSkipToRegisterPhoto

func (m *MockPhotoService) ShouldSkipToRegisterPhoto(ctx context.Context, filePath, fileHash string) (bool, error)

ShouldSkipToRegisterPhoto mocks base method.

type MockPhotoServiceMockRecorder

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

MockPhotoServiceMockRecorder is the mock recorder for MockPhotoService.

func (*MockPhotoServiceMockRecorder) RegisterPhoto

func (mr *MockPhotoServiceMockRecorder) RegisterPhoto(ctx, filePath, fileHash interface{}) *gomock.Call

RegisterPhoto indicates an expected call of RegisterPhoto.

func (*MockPhotoServiceMockRecorder) ShouldSkipToRegisterPhoto

func (mr *MockPhotoServiceMockRecorder) ShouldSkipToRegisterPhoto(ctx, filePath, fileHash interface{}) *gomock.Call

ShouldSkipToRegisterPhoto indicates an expected call of ShouldSkipToRegisterPhoto.

type MockUserService

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

MockUserService is a mock of UserService interface.

func NewMockUserService

func NewMockUserService(ctrl *gomock.Controller) *MockUserService

NewMockUserService creates a new mock instance.

func (*MockUserService) AuthUserPassword

func (m *MockUserService) AuthUserPassword(ctx context.Context, userID, password string) error

AuthUserPassword mocks base method.

func (*MockUserService) EXPECT

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

type MockUserServiceMockRecorder

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

MockUserServiceMockRecorder is the mock recorder for MockUserService.

func (*MockUserServiceMockRecorder) AuthUserPassword

func (mr *MockUserServiceMockRecorder) AuthUserPassword(ctx, userID, password interface{}) *gomock.Call

AuthUserPassword indicates an expected call of AuthUserPassword.

Jump to

Keyboard shortcuts

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