Documentation ¶
Index ¶
- type MockAuthorization
- func (m *MockAuthorization) CreateUser(ctx context.Context, user models.User) (int, error)
- func (m *MockAuthorization) EXPECT() *MockAuthorizationMockRecorder
- func (m *MockAuthorization) GenerateToken(ctx context.Context, email, password string) (string, error)
- func (m *MockAuthorization) ParseToken(accessToken string) (int, error)
- type MockAuthorizationMockRecorder
- type MockImages
- func (m *MockImages) Conversion(ctx context.Context, payload service.ConversionPayLoad) (string, error)
- func (m *MockImages) DownloadImageFromID(fileID string) (string, error)
- func (m *MockImages) EXPECT() *MockImagesMockRecorder
- func (m *MockImages) GetImageByID(ctx context.Context, id string) (models.Images, error)
- func (m *MockImages) GetRequestFromID(ctx context.Context, userID int) ([]models.Request, error)
- func (m *MockImages) InsertImage(ctx context.Context, filename, format string) (string, error)
- func (m *MockImages) RequestsHistory(ctx context.Context, sourceFormat, targetFormat, imageID, filename string, ...) (string, error)
- func (m *MockImages) UpdateRequest(ctx context.Context, status, imageID, targetID string) error
- type MockImagesMockRecorder
- func (mr *MockImagesMockRecorder) Conversion(ctx, payload interface{}) *gomock.Call
- func (mr *MockImagesMockRecorder) DownloadImageFromID(fileID interface{}) *gomock.Call
- func (mr *MockImagesMockRecorder) GetImageByID(ctx, id interface{}) *gomock.Call
- func (mr *MockImagesMockRecorder) GetRequestFromID(ctx, userID interface{}) *gomock.Call
- func (mr *MockImagesMockRecorder) InsertImage(ctx, filename, format interface{}) *gomock.Call
- func (mr *MockImagesMockRecorder) RequestsHistory(ctx, sourceFormat, targetFormat, imageID, filename, userID, ratio interface{}) *gomock.Call
- func (mr *MockImagesMockRecorder) UpdateRequest(ctx, status, imageID, targetID interface{}) *gomock.Call
- type MockInterface
- func (m *MockInterface) Conversion(ctx context.Context, payload service.ConversionPayLoad) (string, error)
- func (m *MockInterface) CreateUser(ctx context.Context, user models.User) (int, error)
- func (m *MockInterface) DownloadImageFromID(fileID string) (string, error)
- func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
- func (m *MockInterface) GenerateToken(ctx context.Context, email, password string) (string, error)
- func (m *MockInterface) GetImageByID(ctx context.Context, id string) (models.Images, error)
- func (m *MockInterface) GetRequestFromID(ctx context.Context, userID int) ([]models.Request, error)
- func (m *MockInterface) InsertImage(ctx context.Context, filename, format string) (string, error)
- func (m *MockInterface) ParseToken(accessToken string) (int, error)
- func (m *MockInterface) RequestsHistory(ctx context.Context, sourceFormat, targetFormat, imageID, filename string, ...) (string, error)
- func (m *MockInterface) UpdateRequest(ctx context.Context, status, imageID, targetID string) error
- type MockInterfaceMockRecorder
- func (mr *MockInterfaceMockRecorder) Conversion(ctx, payload interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) CreateUser(ctx, user interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) DownloadImageFromID(fileID interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) GenerateToken(ctx, email, password interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) GetImageByID(ctx, id interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) GetRequestFromID(ctx, userID interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) InsertImage(ctx, filename, format interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) ParseToken(accessToken interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) RequestsHistory(ctx, sourceFormat, targetFormat, imageID, filename, userID, ratio interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) UpdateRequest(ctx, status, imageID, targetID interface{}) *gomock.Call
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 ¶
CreateUser mocks base method.
func (*MockAuthorization) EXPECT ¶
func (m *MockAuthorization) EXPECT() *MockAuthorizationMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAuthorization) GenerateToken ¶
func (m *MockAuthorization) GenerateToken(ctx context.Context, email, password string) (string, error)
GenerateToken mocks base method.
func (*MockAuthorization) ParseToken ¶
func (m *MockAuthorization) ParseToken(accessToken string) (int, 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(ctx, user interface{}) *gomock.Call
CreateUser indicates an expected call of CreateUser.
func (*MockAuthorizationMockRecorder) GenerateToken ¶
func (mr *MockAuthorizationMockRecorder) GenerateToken(ctx, email, password interface{}) *gomock.Call
GenerateToken indicates an expected call of GenerateToken.
func (*MockAuthorizationMockRecorder) ParseToken ¶
func (mr *MockAuthorizationMockRecorder) ParseToken(accessToken interface{}) *gomock.Call
ParseToken indicates an expected call of ParseToken.
type MockImages ¶
type MockImages struct {
// contains filtered or unexported fields
}
MockImages is a mock of Images interface.
func NewMockImages ¶
func NewMockImages(ctrl *gomock.Controller) *MockImages
NewMockImages creates a new mock instance.
func (*MockImages) Conversion ¶
func (m *MockImages) Conversion(ctx context.Context, payload service.ConversionPayLoad) (string, error)
Conversion mocks base method.
func (*MockImages) DownloadImageFromID ¶
func (m *MockImages) DownloadImageFromID(fileID string) (string, error)
DownloadImageFromID mocks base method.
func (*MockImages) EXPECT ¶
func (m *MockImages) EXPECT() *MockImagesMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockImages) GetImageByID ¶
GetImageByID mocks base method.
func (*MockImages) GetRequestFromID ¶
GetRequestFromID mocks base method.
func (*MockImages) InsertImage ¶
InsertImage mocks base method.
func (*MockImages) RequestsHistory ¶
func (m *MockImages) RequestsHistory(ctx context.Context, sourceFormat, targetFormat, imageID, filename string, userID, ratio int) (string, error)
RequestsHistory mocks base method.
func (*MockImages) UpdateRequest ¶
func (m *MockImages) UpdateRequest(ctx context.Context, status, imageID, targetID string) error
UpdateRequest mocks base method.
type MockImagesMockRecorder ¶
type MockImagesMockRecorder struct {
// contains filtered or unexported fields
}
MockImagesMockRecorder is the mock recorder for MockImages.
func (*MockImagesMockRecorder) Conversion ¶
func (mr *MockImagesMockRecorder) Conversion(ctx, payload interface{}) *gomock.Call
Conversion indicates an expected call of Conversion.
func (*MockImagesMockRecorder) DownloadImageFromID ¶
func (mr *MockImagesMockRecorder) DownloadImageFromID(fileID interface{}) *gomock.Call
DownloadImageFromID indicates an expected call of DownloadImageFromID.
func (*MockImagesMockRecorder) GetImageByID ¶
func (mr *MockImagesMockRecorder) GetImageByID(ctx, id interface{}) *gomock.Call
GetImageByID indicates an expected call of GetImageByID.
func (*MockImagesMockRecorder) GetRequestFromID ¶
func (mr *MockImagesMockRecorder) GetRequestFromID(ctx, userID interface{}) *gomock.Call
GetRequestFromID indicates an expected call of GetRequestFromID.
func (*MockImagesMockRecorder) InsertImage ¶
func (mr *MockImagesMockRecorder) InsertImage(ctx, filename, format interface{}) *gomock.Call
InsertImage indicates an expected call of InsertImage.
func (*MockImagesMockRecorder) RequestsHistory ¶
func (mr *MockImagesMockRecorder) RequestsHistory(ctx, sourceFormat, targetFormat, imageID, filename, userID, ratio interface{}) *gomock.Call
RequestsHistory indicates an expected call of RequestsHistory.
func (*MockImagesMockRecorder) UpdateRequest ¶
func (mr *MockImagesMockRecorder) UpdateRequest(ctx, status, imageID, targetID interface{}) *gomock.Call
UpdateRequest indicates an expected call of UpdateRequest.
type MockInterface ¶
type MockInterface struct {
// contains filtered or unexported fields
}
MockInterface is a mock of Interface interface.
func NewMockInterface ¶
func NewMockInterface(ctrl *gomock.Controller) *MockInterface
NewMockInterface creates a new mock instance.
func (*MockInterface) Conversion ¶
func (m *MockInterface) Conversion(ctx context.Context, payload service.ConversionPayLoad) (string, error)
Conversion mocks base method.
func (*MockInterface) CreateUser ¶
CreateUser mocks base method.
func (*MockInterface) DownloadImageFromID ¶
func (m *MockInterface) DownloadImageFromID(fileID string) (string, error)
DownloadImageFromID mocks base method.
func (*MockInterface) EXPECT ¶
func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInterface) GenerateToken ¶
GenerateToken mocks base method.
func (*MockInterface) GetImageByID ¶
GetImageByID mocks base method.
func (*MockInterface) GetRequestFromID ¶
GetRequestFromID mocks base method.
func (*MockInterface) InsertImage ¶
InsertImage mocks base method.
func (*MockInterface) ParseToken ¶
func (m *MockInterface) ParseToken(accessToken string) (int, error)
ParseToken mocks base method.
func (*MockInterface) RequestsHistory ¶
func (m *MockInterface) RequestsHistory(ctx context.Context, sourceFormat, targetFormat, imageID, filename string, userID, ratio int) (string, error)
RequestsHistory mocks base method.
func (*MockInterface) UpdateRequest ¶
func (m *MockInterface) UpdateRequest(ctx context.Context, status, imageID, targetID string) error
UpdateRequest mocks base method.
type MockInterfaceMockRecorder ¶
type MockInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockInterfaceMockRecorder is the mock recorder for MockInterface.
func (*MockInterfaceMockRecorder) Conversion ¶
func (mr *MockInterfaceMockRecorder) Conversion(ctx, payload interface{}) *gomock.Call
Conversion indicates an expected call of Conversion.
func (*MockInterfaceMockRecorder) CreateUser ¶
func (mr *MockInterfaceMockRecorder) CreateUser(ctx, user interface{}) *gomock.Call
CreateUser indicates an expected call of CreateUser.
func (*MockInterfaceMockRecorder) DownloadImageFromID ¶
func (mr *MockInterfaceMockRecorder) DownloadImageFromID(fileID interface{}) *gomock.Call
DownloadImageFromID indicates an expected call of DownloadImageFromID.
func (*MockInterfaceMockRecorder) GenerateToken ¶
func (mr *MockInterfaceMockRecorder) GenerateToken(ctx, email, password interface{}) *gomock.Call
GenerateToken indicates an expected call of GenerateToken.
func (*MockInterfaceMockRecorder) GetImageByID ¶
func (mr *MockInterfaceMockRecorder) GetImageByID(ctx, id interface{}) *gomock.Call
GetImageByID indicates an expected call of GetImageByID.
func (*MockInterfaceMockRecorder) GetRequestFromID ¶
func (mr *MockInterfaceMockRecorder) GetRequestFromID(ctx, userID interface{}) *gomock.Call
GetRequestFromID indicates an expected call of GetRequestFromID.
func (*MockInterfaceMockRecorder) InsertImage ¶
func (mr *MockInterfaceMockRecorder) InsertImage(ctx, filename, format interface{}) *gomock.Call
InsertImage indicates an expected call of InsertImage.
func (*MockInterfaceMockRecorder) ParseToken ¶
func (mr *MockInterfaceMockRecorder) ParseToken(accessToken interface{}) *gomock.Call
ParseToken indicates an expected call of ParseToken.
func (*MockInterfaceMockRecorder) RequestsHistory ¶
func (mr *MockInterfaceMockRecorder) RequestsHistory(ctx, sourceFormat, targetFormat, imageID, filename, userID, ratio interface{}) *gomock.Call
RequestsHistory indicates an expected call of RequestsHistory.
func (*MockInterfaceMockRecorder) UpdateRequest ¶
func (mr *MockInterfaceMockRecorder) UpdateRequest(ctx, status, imageID, targetID interface{}) *gomock.Call
UpdateRequest indicates an expected call of UpdateRequest.