product

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DatabaseRepository

type DatabaseRepository struct {
	mock.Mock
}

DatabaseRepository is an autogenerated mock type for the DatabaseRepository type

func NewDatabaseRepository added in v0.5.0

func NewDatabaseRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *DatabaseRepository

NewDatabaseRepository creates a new instance of DatabaseRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*DatabaseRepository) CreateCategory

func (_m *DatabaseRepository) CreateCategory(e *entities.Category) (*entities.Category, error)

CreateCategory provides a mock function with given fields: e

func (*DatabaseRepository) CreateManufacturer

func (_m *DatabaseRepository) CreateManufacturer(e *entities.Manufacturer) (*entities.Manufacturer, error)

CreateManufacturer provides a mock function with given fields: e

func (*DatabaseRepository) CreateProduct

func (_m *DatabaseRepository) CreateProduct(e *entities.Product) (*entities.Product, error)

CreateProduct provides a mock function with given fields: e

func (*DatabaseRepository) CreateService added in v1.1.0

func (_m *DatabaseRepository) CreateService(e *entities.Service) (*entities.Service, error)

CreateService provides a mock function with given fields: e

func (*DatabaseRepository) CreateServiceCategory added in v1.1.0

func (_m *DatabaseRepository) CreateServiceCategory(e *entities.ServiceCategory) (*entities.ServiceCategory, error)

CreateServiceCategory provides a mock function with given fields: e

func (*DatabaseRepository) DeleteCategory

func (_m *DatabaseRepository) DeleteCategory(id entities.ID) error

DeleteCategory provides a mock function with given fields: id

func (*DatabaseRepository) DeleteImage

func (_m *DatabaseRepository) DeleteImage(id entities.ID) error

DeleteImage provides a mock function with given fields: id

func (*DatabaseRepository) DeleteManufacturer

func (_m *DatabaseRepository) DeleteManufacturer(id entities.ID) error

DeleteManufacturer provides a mock function with given fields: id

func (*DatabaseRepository) DeleteProduct

func (_m *DatabaseRepository) DeleteProduct(id entities.ID) error

DeleteProduct provides a mock function with given fields: id

func (*DatabaseRepository) DeleteService added in v1.1.0

func (_m *DatabaseRepository) DeleteService(id entities.ID) error

DeleteService provides a mock function with given fields: id

func (*DatabaseRepository) DeleteServiceCategory added in v1.1.0

func (_m *DatabaseRepository) DeleteServiceCategory(id entities.ID) error

DeleteServiceCategory provides a mock function with given fields: id

func (*DatabaseRepository) EXPECT added in v1.1.0

func (*DatabaseRepository) GetCategory

func (_m *DatabaseRepository) GetCategory(id entities.ID) (*entities.Category, error)

GetCategory provides a mock function with given fields: id

func (*DatabaseRepository) GetImage

func (_m *DatabaseRepository) GetImage(id entities.ID) (*entities.Image, error)

GetImage provides a mock function with given fields: id

func (*DatabaseRepository) GetManufacturer

func (_m *DatabaseRepository) GetManufacturer(id entities.ID) (*entities.Manufacturer, error)

GetManufacturer provides a mock function with given fields: id

func (*DatabaseRepository) GetProduct

func (_m *DatabaseRepository) GetProduct(id entities.ID) (*entities.Product, error)

GetProduct provides a mock function with given fields: id

func (*DatabaseRepository) GetService added in v1.1.0

func (_m *DatabaseRepository) GetService(id entities.ID) (*entities.Service, error)

GetService provides a mock function with given fields: id

func (*DatabaseRepository) GetServiceCategory added in v1.1.0

func (_m *DatabaseRepository) GetServiceCategory(id entities.ID) (*entities.ServiceCategory, error)

GetServiceCategory provides a mock function with given fields: id

func (*DatabaseRepository) ListCategories

func (_m *DatabaseRepository) ListCategories() ([]*entities.Category, error)

ListCategories provides a mock function with given fields:

func (*DatabaseRepository) ListManufacturers

func (_m *DatabaseRepository) ListManufacturers() ([]*entities.Manufacturer, error)

ListManufacturers provides a mock function with given fields:

func (*DatabaseRepository) ListProducts

func (_m *DatabaseRepository) ListProducts() ([]*entities.Product, error)

ListProducts provides a mock function with given fields:

func (*DatabaseRepository) ListServiceCategories added in v1.1.0

func (_m *DatabaseRepository) ListServiceCategories() ([]*entities.ServiceCategory, error)

ListServiceCategories provides a mock function with given fields:

func (*DatabaseRepository) ListServices added in v1.1.0

func (_m *DatabaseRepository) ListServices(optionalServiceCategoryID entities.ID) ([]*entities.Service, error)

ListServices provides a mock function with given fields: optionalServiceCategoryID

func (*DatabaseRepository) UpdateCategory

func (_m *DatabaseRepository) UpdateCategory(e *entities.Category) (*entities.Category, error)

UpdateCategory provides a mock function with given fields: e

func (*DatabaseRepository) UpdateImage

func (_m *DatabaseRepository) UpdateImage(id entities.ID, ownerID entities.ID, newOrder int) ([]*entities.Image, error)

UpdateImage provides a mock function with given fields: id, ownerID, newOrder

func (*DatabaseRepository) UpdateManufacturer

func (_m *DatabaseRepository) UpdateManufacturer(e *entities.Manufacturer) (*entities.Manufacturer, error)

UpdateManufacturer provides a mock function with given fields: e

func (*DatabaseRepository) UpdateProduct

func (_m *DatabaseRepository) UpdateProduct(e *entities.Product) (*entities.Product, error)

UpdateProduct provides a mock function with given fields: e

func (*DatabaseRepository) UpdateProductImages added in v0.5.0

func (_m *DatabaseRepository) UpdateProductImages(id entities.ID, images []*entities.Image) ([]*entities.Image, error)

UpdateProductImages provides a mock function with given fields: id, images

func (*DatabaseRepository) UpdateService added in v1.1.0

func (_m *DatabaseRepository) UpdateService(e *entities.Service) (*entities.Service, error)

UpdateService provides a mock function with given fields: e

func (*DatabaseRepository) UpdateServiceCategory added in v1.1.0

func (_m *DatabaseRepository) UpdateServiceCategory(e *entities.ServiceCategory) (*entities.ServiceCategory, error)

UpdateServiceCategory provides a mock function with given fields: e

type DatabaseRepository_CreateCategory_Call added in v1.1.0

type DatabaseRepository_CreateCategory_Call struct {
	*mock.Call
}

DatabaseRepository_CreateCategory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateCategory'

func (*DatabaseRepository_CreateCategory_Call) Return added in v1.1.0

func (*DatabaseRepository_CreateCategory_Call) Run added in v1.1.0

func (*DatabaseRepository_CreateCategory_Call) RunAndReturn added in v1.1.0

type DatabaseRepository_CreateManufacturer_Call added in v1.1.0

type DatabaseRepository_CreateManufacturer_Call struct {
	*mock.Call
}

DatabaseRepository_CreateManufacturer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateManufacturer'

func (*DatabaseRepository_CreateManufacturer_Call) Return added in v1.1.0

func (*DatabaseRepository_CreateManufacturer_Call) Run added in v1.1.0

func (*DatabaseRepository_CreateManufacturer_Call) RunAndReturn added in v1.1.0

type DatabaseRepository_CreateProduct_Call added in v1.1.0

type DatabaseRepository_CreateProduct_Call struct {
	*mock.Call
}

DatabaseRepository_CreateProduct_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateProduct'

func (*DatabaseRepository_CreateProduct_Call) Return added in v1.1.0

func (*DatabaseRepository_CreateProduct_Call) Run added in v1.1.0

func (*DatabaseRepository_CreateProduct_Call) RunAndReturn added in v1.1.0

type DatabaseRepository_CreateServiceCategory_Call added in v1.1.0

type DatabaseRepository_CreateServiceCategory_Call struct {
	*mock.Call
}

DatabaseRepository_CreateServiceCategory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateServiceCategory'

func (*DatabaseRepository_CreateServiceCategory_Call) Return added in v1.1.0

func (*DatabaseRepository_CreateServiceCategory_Call) Run added in v1.1.0

func (*DatabaseRepository_CreateServiceCategory_Call) RunAndReturn added in v1.1.0

type DatabaseRepository_CreateService_Call added in v1.1.0

type DatabaseRepository_CreateService_Call struct {
	*mock.Call
}

DatabaseRepository_CreateService_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateService'

func (*DatabaseRepository_CreateService_Call) Return added in v1.1.0

func (*DatabaseRepository_CreateService_Call) Run added in v1.1.0

func (*DatabaseRepository_CreateService_Call) RunAndReturn added in v1.1.0

type DatabaseRepository_DeleteCategory_Call added in v1.1.0

type DatabaseRepository_DeleteCategory_Call struct {
	*mock.Call
}

DatabaseRepository_DeleteCategory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteCategory'

func (*DatabaseRepository_DeleteCategory_Call) Return added in v1.1.0

func (*DatabaseRepository_DeleteCategory_Call) Run added in v1.1.0

func (*DatabaseRepository_DeleteCategory_Call) RunAndReturn added in v1.1.0

type DatabaseRepository_DeleteImage_Call added in v1.1.0

type DatabaseRepository_DeleteImage_Call struct {
	*mock.Call
}

DatabaseRepository_DeleteImage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteImage'

func (*DatabaseRepository_DeleteImage_Call) Return added in v1.1.0

func (*DatabaseRepository_DeleteImage_Call) Run added in v1.1.0

func (*DatabaseRepository_DeleteImage_Call) RunAndReturn added in v1.1.0

type DatabaseRepository_DeleteManufacturer_Call added in v1.1.0

type DatabaseRepository_DeleteManufacturer_Call struct {
	*mock.Call
}

DatabaseRepository_DeleteManufacturer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteManufacturer'

func (*DatabaseRepository_DeleteManufacturer_Call) Return added in v1.1.0

func (*DatabaseRepository_DeleteManufacturer_Call) Run added in v1.1.0

func (*DatabaseRepository_DeleteManufacturer_Call) RunAndReturn added in v1.1.0

type DatabaseRepository_DeleteProduct_Call added in v1.1.0

type DatabaseRepository_DeleteProduct_Call struct {
	*mock.Call
}

DatabaseRepository_DeleteProduct_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteProduct'

func (*DatabaseRepository_DeleteProduct_Call) Return added in v1.1.0

func (*DatabaseRepository_DeleteProduct_Call) Run added in v1.1.0

func (*DatabaseRepository_DeleteProduct_Call) RunAndReturn added in v1.1.0

type DatabaseRepository_DeleteServiceCategory_Call added in v1.1.0

type DatabaseRepository_DeleteServiceCategory_Call struct {
	*mock.Call
}

DatabaseRepository_DeleteServiceCategory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteServiceCategory'

func (*DatabaseRepository_DeleteServiceCategory_Call) Return added in v1.1.0

func (*DatabaseRepository_DeleteServiceCategory_Call) Run added in v1.1.0

func (*DatabaseRepository_DeleteServiceCategory_Call) RunAndReturn added in v1.1.0

type DatabaseRepository_DeleteService_Call added in v1.1.0

type DatabaseRepository_DeleteService_Call struct {
	*mock.Call
}

DatabaseRepository_DeleteService_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteService'

func (*DatabaseRepository_DeleteService_Call) Return added in v1.1.0

func (*DatabaseRepository_DeleteService_Call) Run added in v1.1.0

func (*DatabaseRepository_DeleteService_Call) RunAndReturn added in v1.1.0

type DatabaseRepository_Expecter added in v1.1.0

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

func (*DatabaseRepository_Expecter) CreateCategory added in v1.1.0

func (_e *DatabaseRepository_Expecter) CreateCategory(e interface{}) *DatabaseRepository_CreateCategory_Call

CreateCategory is a helper method to define mock.On call

  • e *entities.Category

func (*DatabaseRepository_Expecter) CreateManufacturer added in v1.1.0

func (_e *DatabaseRepository_Expecter) CreateManufacturer(e interface{}) *DatabaseRepository_CreateManufacturer_Call

CreateManufacturer is a helper method to define mock.On call

  • e *entities.Manufacturer

func (*DatabaseRepository_Expecter) CreateProduct added in v1.1.0

func (_e *DatabaseRepository_Expecter) CreateProduct(e interface{}) *DatabaseRepository_CreateProduct_Call

CreateProduct is a helper method to define mock.On call

  • e *entities.Product

func (*DatabaseRepository_Expecter) CreateService added in v1.1.0

func (_e *DatabaseRepository_Expecter) CreateService(e interface{}) *DatabaseRepository_CreateService_Call

CreateService is a helper method to define mock.On call

  • e *entities.Service

func (*DatabaseRepository_Expecter) CreateServiceCategory added in v1.1.0

func (_e *DatabaseRepository_Expecter) CreateServiceCategory(e interface{}) *DatabaseRepository_CreateServiceCategory_Call

CreateServiceCategory is a helper method to define mock.On call

  • e *entities.ServiceCategory

func (*DatabaseRepository_Expecter) DeleteCategory added in v1.1.0

func (_e *DatabaseRepository_Expecter) DeleteCategory(id interface{}) *DatabaseRepository_DeleteCategory_Call

DeleteCategory is a helper method to define mock.On call

  • id entities.ID

func (*DatabaseRepository_Expecter) DeleteImage added in v1.1.0

func (_e *DatabaseRepository_Expecter) DeleteImage(id interface{}) *DatabaseRepository_DeleteImage_Call

DeleteImage is a helper method to define mock.On call

  • id entities.ID

func (*DatabaseRepository_Expecter) DeleteManufacturer added in v1.1.0

func (_e *DatabaseRepository_Expecter) DeleteManufacturer(id interface{}) *DatabaseRepository_DeleteManufacturer_Call

DeleteManufacturer is a helper method to define mock.On call

  • id entities.ID

func (*DatabaseRepository_Expecter) DeleteProduct added in v1.1.0

func (_e *DatabaseRepository_Expecter) DeleteProduct(id interface{}) *DatabaseRepository_DeleteProduct_Call

DeleteProduct is a helper method to define mock.On call

  • id entities.ID

func (*DatabaseRepository_Expecter) DeleteService added in v1.1.0

func (_e *DatabaseRepository_Expecter) DeleteService(id interface{}) *DatabaseRepository_DeleteService_Call

DeleteService is a helper method to define mock.On call

  • id entities.ID

func (*DatabaseRepository_Expecter) DeleteServiceCategory added in v1.1.0

func (_e *DatabaseRepository_Expecter) DeleteServiceCategory(id interface{}) *DatabaseRepository_DeleteServiceCategory_Call

DeleteServiceCategory is a helper method to define mock.On call

  • id entities.ID

func (*DatabaseRepository_Expecter) GetCategory added in v1.1.0

func (_e *DatabaseRepository_Expecter) GetCategory(id interface{}) *DatabaseRepository_GetCategory_Call

GetCategory is a helper method to define mock.On call

  • id entities.ID

func (*DatabaseRepository_Expecter) GetImage added in v1.1.0

func (_e *DatabaseRepository_Expecter) GetImage(id interface{}) *DatabaseRepository_GetImage_Call

GetImage is a helper method to define mock.On call

  • id entities.ID

func (*DatabaseRepository_Expecter) GetManufacturer added in v1.1.0

func (_e *DatabaseRepository_Expecter) GetManufacturer(id interface{}) *DatabaseRepository_GetManufacturer_Call

GetManufacturer is a helper method to define mock.On call

  • id entities.ID

func (*DatabaseRepository_Expecter) GetProduct added in v1.1.0

func (_e *DatabaseRepository_Expecter) GetProduct(id interface{}) *DatabaseRepository_GetProduct_Call

GetProduct is a helper method to define mock.On call

  • id entities.ID

func (*DatabaseRepository_Expecter) GetService added in v1.1.0

func (_e *DatabaseRepository_Expecter) GetService(id interface{}) *DatabaseRepository_GetService_Call

GetService is a helper method to define mock.On call

  • id entities.ID

func (*DatabaseRepository_Expecter) GetServiceCategory added in v1.1.0

func (_e *DatabaseRepository_Expecter) GetServiceCategory(id interface{}) *DatabaseRepository_GetServiceCategory_Call

GetServiceCategory is a helper method to define mock.On call

  • id entities.ID

func (*DatabaseRepository_Expecter) ListCategories added in v1.1.0

ListCategories is a helper method to define mock.On call

func (*DatabaseRepository_Expecter) ListManufacturers added in v1.1.0

ListManufacturers is a helper method to define mock.On call

func (*DatabaseRepository_Expecter) ListProducts added in v1.1.0

ListProducts is a helper method to define mock.On call

func (*DatabaseRepository_Expecter) ListServiceCategories added in v1.1.0

ListServiceCategories is a helper method to define mock.On call

func (*DatabaseRepository_Expecter) ListServices added in v1.1.0

func (_e *DatabaseRepository_Expecter) ListServices(optionalServiceCategoryID interface{}) *DatabaseRepository_ListServices_Call

ListServices is a helper method to define mock.On call

  • optionalServiceCategoryID entities.ID

func (*DatabaseRepository_Expecter) UpdateCategory added in v1.1.0

func (_e *DatabaseRepository_Expecter) UpdateCategory(e interface{}) *DatabaseRepository_UpdateCategory_Call

UpdateCategory is a helper method to define mock.On call

  • e *entities.Category

func (*DatabaseRepository_Expecter) UpdateImage added in v1.1.0

func (_e *DatabaseRepository_Expecter) UpdateImage(id interface{}, ownerID interface{}, newOrder interface{}) *DatabaseRepository_UpdateImage_Call

UpdateImage is a helper method to define mock.On call

  • id entities.ID
  • ownerID entities.ID
  • newOrder int

func (*DatabaseRepository_Expecter) UpdateManufacturer added in v1.1.0

func (_e *DatabaseRepository_Expecter) UpdateManufacturer(e interface{}) *DatabaseRepository_UpdateManufacturer_Call

UpdateManufacturer is a helper method to define mock.On call

  • e *entities.Manufacturer

func (*DatabaseRepository_Expecter) UpdateProduct added in v1.1.0

func (_e *DatabaseRepository_Expecter) UpdateProduct(e interface{}) *DatabaseRepository_UpdateProduct_Call

UpdateProduct is a helper method to define mock.On call

  • e *entities.Product

func (*DatabaseRepository_Expecter) UpdateProductImages added in v1.1.0

func (_e *DatabaseRepository_Expecter) UpdateProductImages(id interface{}, images interface{}) *DatabaseRepository_UpdateProductImages_Call

UpdateProductImages is a helper method to define mock.On call

  • id entities.ID
  • images []*entities.Image

func (*DatabaseRepository_Expecter) UpdateService added in v1.1.0

func (_e *DatabaseRepository_Expecter) UpdateService(e interface{}) *DatabaseRepository_UpdateService_Call

UpdateService is a helper method to define mock.On call

  • e *entities.Service

func (*DatabaseRepository_Expecter) UpdateServiceCategory added in v1.1.0

func (_e *DatabaseRepository_Expecter) UpdateServiceCategory(e interface{}) *DatabaseRepository_UpdateServiceCategory_Call

UpdateServiceCategory is a helper method to define mock.On call

  • e *entities.ServiceCategory

type DatabaseRepository_GetCategory_Call added in v1.1.0

type DatabaseRepository_GetCategory_Call struct {
	*mock.Call
}

DatabaseRepository_GetCategory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCategory'

func (*DatabaseRepository_GetCategory_Call) Return added in v1.1.0

func (*DatabaseRepository_GetCategory_Call) Run added in v1.1.0

func (*DatabaseRepository_GetCategory_Call) RunAndReturn added in v1.1.0

type DatabaseRepository_GetImage_Call added in v1.1.0

type DatabaseRepository_GetImage_Call struct {
	*mock.Call
}

DatabaseRepository_GetImage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetImage'

func (*DatabaseRepository_GetImage_Call) Return added in v1.1.0

func (*DatabaseRepository_GetImage_Call) Run added in v1.1.0

func (*DatabaseRepository_GetImage_Call) RunAndReturn added in v1.1.0

type DatabaseRepository_GetManufacturer_Call added in v1.1.0

type DatabaseRepository_GetManufacturer_Call struct {
	*mock.Call
}

DatabaseRepository_GetManufacturer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetManufacturer'

func (*DatabaseRepository_GetManufacturer_Call) Return added in v1.1.0

func (*DatabaseRepository_GetManufacturer_Call) Run added in v1.1.0

func (*DatabaseRepository_GetManufacturer_Call) RunAndReturn added in v1.1.0

type DatabaseRepository_GetProduct_Call added in v1.1.0

type DatabaseRepository_GetProduct_Call struct {
	*mock.Call
}

DatabaseRepository_GetProduct_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetProduct'

func (*DatabaseRepository_GetProduct_Call) Return added in v1.1.0

func (*DatabaseRepository_GetProduct_Call) Run added in v1.1.0

func (*DatabaseRepository_GetProduct_Call) RunAndReturn added in v1.1.0

type DatabaseRepository_GetServiceCategory_Call added in v1.1.0

type DatabaseRepository_GetServiceCategory_Call struct {
	*mock.Call
}

DatabaseRepository_GetServiceCategory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetServiceCategory'

func (*DatabaseRepository_GetServiceCategory_Call) Return added in v1.1.0

func (*DatabaseRepository_GetServiceCategory_Call) Run added in v1.1.0

func (*DatabaseRepository_GetServiceCategory_Call) RunAndReturn added in v1.1.0

type DatabaseRepository_GetService_Call added in v1.1.0

type DatabaseRepository_GetService_Call struct {
	*mock.Call
}

DatabaseRepository_GetService_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetService'

func (*DatabaseRepository_GetService_Call) Return added in v1.1.0

func (*DatabaseRepository_GetService_Call) Run added in v1.1.0

func (*DatabaseRepository_GetService_Call) RunAndReturn added in v1.1.0

type DatabaseRepository_ListCategories_Call added in v1.1.0

type DatabaseRepository_ListCategories_Call struct {
	*mock.Call
}

DatabaseRepository_ListCategories_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListCategories'

func (*DatabaseRepository_ListCategories_Call) Return added in v1.1.0

func (*DatabaseRepository_ListCategories_Call) Run added in v1.1.0

func (*DatabaseRepository_ListCategories_Call) RunAndReturn added in v1.1.0

type DatabaseRepository_ListManufacturers_Call added in v1.1.0

type DatabaseRepository_ListManufacturers_Call struct {
	*mock.Call
}

DatabaseRepository_ListManufacturers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListManufacturers'

func (*DatabaseRepository_ListManufacturers_Call) Return added in v1.1.0

func (*DatabaseRepository_ListManufacturers_Call) Run added in v1.1.0

func (*DatabaseRepository_ListManufacturers_Call) RunAndReturn added in v1.1.0

type DatabaseRepository_ListProducts_Call added in v1.1.0

type DatabaseRepository_ListProducts_Call struct {
	*mock.Call
}

DatabaseRepository_ListProducts_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListProducts'

func (*DatabaseRepository_ListProducts_Call) Return added in v1.1.0

func (*DatabaseRepository_ListProducts_Call) Run added in v1.1.0

func (*DatabaseRepository_ListProducts_Call) RunAndReturn added in v1.1.0

type DatabaseRepository_ListServiceCategories_Call added in v1.1.0

type DatabaseRepository_ListServiceCategories_Call struct {
	*mock.Call
}

DatabaseRepository_ListServiceCategories_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListServiceCategories'

func (*DatabaseRepository_ListServiceCategories_Call) Return added in v1.1.0

func (*DatabaseRepository_ListServiceCategories_Call) Run added in v1.1.0

func (*DatabaseRepository_ListServiceCategories_Call) RunAndReturn added in v1.1.0

type DatabaseRepository_ListServices_Call added in v1.1.0

type DatabaseRepository_ListServices_Call struct {
	*mock.Call
}

DatabaseRepository_ListServices_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListServices'

func (*DatabaseRepository_ListServices_Call) Return added in v1.1.0

func (*DatabaseRepository_ListServices_Call) Run added in v1.1.0

func (_c *DatabaseRepository_ListServices_Call) Run(run func(optionalServiceCategoryID entities.ID)) *DatabaseRepository_ListServices_Call

func (*DatabaseRepository_ListServices_Call) RunAndReturn added in v1.1.0

type DatabaseRepository_UpdateCategory_Call added in v1.1.0

type DatabaseRepository_UpdateCategory_Call struct {
	*mock.Call
}

DatabaseRepository_UpdateCategory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateCategory'

func (*DatabaseRepository_UpdateCategory_Call) Return added in v1.1.0

func (*DatabaseRepository_UpdateCategory_Call) Run added in v1.1.0

func (*DatabaseRepository_UpdateCategory_Call) RunAndReturn added in v1.1.0

type DatabaseRepository_UpdateImage_Call added in v1.1.0

type DatabaseRepository_UpdateImage_Call struct {
	*mock.Call
}

DatabaseRepository_UpdateImage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateImage'

func (*DatabaseRepository_UpdateImage_Call) Return added in v1.1.0

func (*DatabaseRepository_UpdateImage_Call) Run added in v1.1.0

func (*DatabaseRepository_UpdateImage_Call) RunAndReturn added in v1.1.0

type DatabaseRepository_UpdateManufacturer_Call added in v1.1.0

type DatabaseRepository_UpdateManufacturer_Call struct {
	*mock.Call
}

DatabaseRepository_UpdateManufacturer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateManufacturer'

func (*DatabaseRepository_UpdateManufacturer_Call) Return added in v1.1.0

func (*DatabaseRepository_UpdateManufacturer_Call) Run added in v1.1.0

func (*DatabaseRepository_UpdateManufacturer_Call) RunAndReturn added in v1.1.0

type DatabaseRepository_UpdateProductImages_Call added in v1.1.0

type DatabaseRepository_UpdateProductImages_Call struct {
	*mock.Call
}

DatabaseRepository_UpdateProductImages_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateProductImages'

func (*DatabaseRepository_UpdateProductImages_Call) Return added in v1.1.0

func (*DatabaseRepository_UpdateProductImages_Call) Run added in v1.1.0

func (*DatabaseRepository_UpdateProductImages_Call) RunAndReturn added in v1.1.0

type DatabaseRepository_UpdateProduct_Call added in v1.1.0

type DatabaseRepository_UpdateProduct_Call struct {
	*mock.Call
}

DatabaseRepository_UpdateProduct_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateProduct'

func (*DatabaseRepository_UpdateProduct_Call) Return added in v1.1.0

func (*DatabaseRepository_UpdateProduct_Call) Run added in v1.1.0

func (*DatabaseRepository_UpdateProduct_Call) RunAndReturn added in v1.1.0

type DatabaseRepository_UpdateServiceCategory_Call added in v1.1.0

type DatabaseRepository_UpdateServiceCategory_Call struct {
	*mock.Call
}

DatabaseRepository_UpdateServiceCategory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateServiceCategory'

func (*DatabaseRepository_UpdateServiceCategory_Call) Return added in v1.1.0

func (*DatabaseRepository_UpdateServiceCategory_Call) Run added in v1.1.0

func (*DatabaseRepository_UpdateServiceCategory_Call) RunAndReturn added in v1.1.0

type DatabaseRepository_UpdateService_Call added in v1.1.0

type DatabaseRepository_UpdateService_Call struct {
	*mock.Call
}

DatabaseRepository_UpdateService_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateService'

func (*DatabaseRepository_UpdateService_Call) Return added in v1.1.0

func (*DatabaseRepository_UpdateService_Call) Run added in v1.1.0

func (*DatabaseRepository_UpdateService_Call) RunAndReturn added in v1.1.0

type StorageRepository

type StorageRepository struct {
	mock.Mock
}

StorageRepository is an autogenerated mock type for the StorageRepository type

func NewStorageRepository added in v0.5.0

func NewStorageRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *StorageRepository

NewStorageRepository creates a new instance of StorageRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*StorageRepository) DeleteFile

func (_m *StorageRepository) DeleteFile(filename string) error

DeleteFile provides a mock function with given fields: filename

func (*StorageRepository) EXPECT added in v1.1.0

func (*StorageRepository) SaveFile

func (_m *StorageRepository) SaveFile(filename string, content []byte) error

SaveFile provides a mock function with given fields: filename, content

type StorageRepository_DeleteFile_Call added in v1.1.0

type StorageRepository_DeleteFile_Call struct {
	*mock.Call
}

StorageRepository_DeleteFile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteFile'

func (*StorageRepository_DeleteFile_Call) Return added in v1.1.0

func (*StorageRepository_DeleteFile_Call) Run added in v1.1.0

func (*StorageRepository_DeleteFile_Call) RunAndReturn added in v1.1.0

type StorageRepository_Expecter added in v1.1.0

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

func (*StorageRepository_Expecter) DeleteFile added in v1.1.0

func (_e *StorageRepository_Expecter) DeleteFile(filename interface{}) *StorageRepository_DeleteFile_Call

DeleteFile is a helper method to define mock.On call

  • filename string

func (*StorageRepository_Expecter) SaveFile added in v1.1.0

func (_e *StorageRepository_Expecter) SaveFile(filename interface{}, content interface{}) *StorageRepository_SaveFile_Call

SaveFile is a helper method to define mock.On call

  • filename string
  • content []byte

type StorageRepository_SaveFile_Call added in v1.1.0

type StorageRepository_SaveFile_Call struct {
	*mock.Call
}

StorageRepository_SaveFile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveFile'

func (*StorageRepository_SaveFile_Call) Return added in v1.1.0

func (*StorageRepository_SaveFile_Call) Run added in v1.1.0

func (_c *StorageRepository_SaveFile_Call) Run(run func(filename string, content []byte)) *StorageRepository_SaveFile_Call

func (*StorageRepository_SaveFile_Call) RunAndReturn added in v1.1.0

type Usecase

type Usecase struct {
	mock.Mock
}

Usecase is an autogenerated mock type for the Usecase type

func NewUsecase added in v0.5.0

func NewUsecase(t interface {
	mock.TestingT
	Cleanup(func())
}) *Usecase

NewUsecase creates a new instance of Usecase. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Usecase) AddProductImages

func (_m *Usecase) AddProductImages(id entities.ID, images map[string][]byte, imageConfigs map[string]imageproxy.ImageConfig) (*entities.Product, error)

AddProductImages provides a mock function with given fields: id, images, imageConfigs

func (*Usecase) CreateCategory

func (_m *Usecase) CreateCategory(e *entities.Category) (*entities.Category, error)

CreateCategory provides a mock function with given fields: e

func (*Usecase) CreateManufacturer

func (_m *Usecase) CreateManufacturer(e *entities.Manufacturer) (*entities.Manufacturer, error)

CreateManufacturer provides a mock function with given fields: e

func (*Usecase) CreateProduct

func (_m *Usecase) CreateProduct(e *entities.Product) (*entities.Product, error)

CreateProduct provides a mock function with given fields: e

func (*Usecase) CreateService added in v1.1.0

func (_m *Usecase) CreateService(e *entities.Service) (*entities.Service, error)

CreateService provides a mock function with given fields: e

func (*Usecase) CreateServiceCategory added in v1.1.0

func (_m *Usecase) CreateServiceCategory(e *entities.ServiceCategory) (*entities.ServiceCategory, error)

CreateServiceCategory provides a mock function with given fields: e

func (*Usecase) DeleteCategory

func (_m *Usecase) DeleteCategory(id entities.ID) error

DeleteCategory provides a mock function with given fields: id

func (*Usecase) DeleteCategoryImage

func (_m *Usecase) DeleteCategoryImage(categoryID entities.ID) error

DeleteCategoryImage provides a mock function with given fields: categoryID

func (*Usecase) DeleteManufacturer

func (_m *Usecase) DeleteManufacturer(id entities.ID) error

DeleteManufacturer provides a mock function with given fields: id

func (*Usecase) DeleteManufacturerImage

func (_m *Usecase) DeleteManufacturerImage(manufacturerID entities.ID) error

DeleteManufacturerImage provides a mock function with given fields: manufacturerID

func (*Usecase) DeleteProduct

func (_m *Usecase) DeleteProduct(id entities.ID) error

DeleteProduct provides a mock function with given fields: id

func (*Usecase) DeleteProductImage

func (_m *Usecase) DeleteProductImage(productID entities.ID, imageID entities.ID) error

DeleteProductImage provides a mock function with given fields: productID, imageID

func (*Usecase) DeleteService added in v1.1.0

func (_m *Usecase) DeleteService(id entities.ID) error

DeleteService provides a mock function with given fields: id

func (*Usecase) DeleteServiceCategory added in v1.1.0

func (_m *Usecase) DeleteServiceCategory(id entities.ID) error

DeleteServiceCategory provides a mock function with given fields: id

func (*Usecase) EXPECT added in v1.1.0

func (_m *Usecase) EXPECT() *Usecase_Expecter

func (*Usecase) GetCategory

func (_m *Usecase) GetCategory(id entities.ID, imageConfigs map[string]imageproxy.ImageConfig) (*entities.Category, error)

GetCategory provides a mock function with given fields: id, imageConfigs

func (*Usecase) GetManufacturer

func (_m *Usecase) GetManufacturer(id entities.ID, imageConfigs map[string]imageproxy.ImageConfig) (*entities.Manufacturer, error)

GetManufacturer provides a mock function with given fields: id, imageConfigs

func (*Usecase) GetProduct

func (_m *Usecase) GetProduct(id entities.ID, resolved bool, imageConfigs map[string]imageproxy.ImageConfig) (*entities.ResolvedProduct, error)

GetProduct provides a mock function with given fields: id, resolved, imageConfigs

func (*Usecase) GetService added in v1.1.0

func (_m *Usecase) GetService(id entities.ID) (*entities.Service, error)

GetService provides a mock function with given fields: id

func (*Usecase) GetServiceCategory added in v1.1.0

func (_m *Usecase) GetServiceCategory(id entities.ID, resolved bool) (*entities.ResolvedServiceCategory, error)

GetServiceCategory provides a mock function with given fields: id, resolved

func (*Usecase) ListCategories

func (_m *Usecase) ListCategories(imageConfigs map[string]imageproxy.ImageConfig) ([]*entities.Category, error)

ListCategories provides a mock function with given fields: imageConfigs

func (*Usecase) ListManufacturers

func (_m *Usecase) ListManufacturers(imageConfigs map[string]imageproxy.ImageConfig) ([]*entities.Manufacturer, error)

ListManufacturers provides a mock function with given fields: imageConfigs

func (*Usecase) ListProducts

func (_m *Usecase) ListProducts(imageConfigs map[string]imageproxy.ImageConfig) ([]*entities.Product, error)

ListProducts provides a mock function with given fields: imageConfigs

func (*Usecase) ListServiceCategories added in v1.1.0

func (_m *Usecase) ListServiceCategories(resolved bool) ([]*entities.ResolvedServiceCategory, error)

ListServiceCategories provides a mock function with given fields: resolved

func (*Usecase) UpdateCategory

func (_m *Usecase) UpdateCategory(e *entities.Category) (*entities.Category, error)

UpdateCategory provides a mock function with given fields: e

func (*Usecase) UpdateManufacturer

func (_m *Usecase) UpdateManufacturer(e *entities.Manufacturer) (*entities.Manufacturer, error)

UpdateManufacturer provides a mock function with given fields: e

func (*Usecase) UpdateProduct

func (_m *Usecase) UpdateProduct(e *entities.Product) (*entities.Product, error)

UpdateProduct provides a mock function with given fields: e

func (*Usecase) UpdateProductImage

func (_m *Usecase) UpdateProductImage(productID entities.ID, imageID entities.ID, order int) ([]*entities.Image, error)

UpdateProductImage provides a mock function with given fields: productID, imageID, order

func (*Usecase) UpdateService added in v1.1.0

func (_m *Usecase) UpdateService(e *entities.Service) (*entities.Service, error)

UpdateService provides a mock function with given fields: e

func (*Usecase) UpdateServiceCategory added in v1.1.0

func (_m *Usecase) UpdateServiceCategory(e *entities.ServiceCategory) (*entities.ServiceCategory, error)

UpdateServiceCategory provides a mock function with given fields: e

func (*Usecase) UpsertCategoryImage

func (_m *Usecase) UpsertCategoryImage(categoryID entities.ID, imageName string, imageContent []byte, imageConfigs map[string]imageproxy.ImageConfig) (*entities.Category, error)

UpsertCategoryImage provides a mock function with given fields: categoryID, imageName, imageContent, imageConfigs

func (*Usecase) UpsertManufacturerImage

func (_m *Usecase) UpsertManufacturerImage(manufacturerID entities.ID, imageName string, imageContent []byte, imageConfigs map[string]imageproxy.ImageConfig) (*entities.Manufacturer, error)

UpsertManufacturerImage provides a mock function with given fields: manufacturerID, imageName, imageContent, imageConfigs

type Usecase_AddProductImages_Call added in v1.1.0

type Usecase_AddProductImages_Call struct {
	*mock.Call
}

Usecase_AddProductImages_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddProductImages'

func (*Usecase_AddProductImages_Call) Return added in v1.1.0

func (*Usecase_AddProductImages_Call) Run added in v1.1.0

func (_c *Usecase_AddProductImages_Call) Run(run func(id entities.ID, images map[string][]byte, imageConfigs map[string]imageproxy.ImageConfig)) *Usecase_AddProductImages_Call

func (*Usecase_AddProductImages_Call) RunAndReturn added in v1.1.0

type Usecase_CreateCategory_Call added in v1.1.0

type Usecase_CreateCategory_Call struct {
	*mock.Call
}

Usecase_CreateCategory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateCategory'

func (*Usecase_CreateCategory_Call) Return added in v1.1.0

func (*Usecase_CreateCategory_Call) Run added in v1.1.0

func (*Usecase_CreateCategory_Call) RunAndReturn added in v1.1.0

type Usecase_CreateManufacturer_Call added in v1.1.0

type Usecase_CreateManufacturer_Call struct {
	*mock.Call
}

Usecase_CreateManufacturer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateManufacturer'

func (*Usecase_CreateManufacturer_Call) Return added in v1.1.0

func (*Usecase_CreateManufacturer_Call) Run added in v1.1.0

func (*Usecase_CreateManufacturer_Call) RunAndReturn added in v1.1.0

type Usecase_CreateProduct_Call added in v1.1.0

type Usecase_CreateProduct_Call struct {
	*mock.Call
}

Usecase_CreateProduct_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateProduct'

func (*Usecase_CreateProduct_Call) Return added in v1.1.0

func (*Usecase_CreateProduct_Call) Run added in v1.1.0

func (*Usecase_CreateProduct_Call) RunAndReturn added in v1.1.0

type Usecase_CreateServiceCategory_Call added in v1.1.0

type Usecase_CreateServiceCategory_Call struct {
	*mock.Call
}

Usecase_CreateServiceCategory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateServiceCategory'

func (*Usecase_CreateServiceCategory_Call) Return added in v1.1.0

func (*Usecase_CreateServiceCategory_Call) Run added in v1.1.0

func (*Usecase_CreateServiceCategory_Call) RunAndReturn added in v1.1.0

type Usecase_CreateService_Call added in v1.1.0

type Usecase_CreateService_Call struct {
	*mock.Call
}

Usecase_CreateService_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateService'

func (*Usecase_CreateService_Call) Return added in v1.1.0

func (*Usecase_CreateService_Call) Run added in v1.1.0

func (*Usecase_CreateService_Call) RunAndReturn added in v1.1.0

type Usecase_DeleteCategoryImage_Call added in v1.1.0

type Usecase_DeleteCategoryImage_Call struct {
	*mock.Call
}

Usecase_DeleteCategoryImage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteCategoryImage'

func (*Usecase_DeleteCategoryImage_Call) Return added in v1.1.0

func (*Usecase_DeleteCategoryImage_Call) Run added in v1.1.0

func (*Usecase_DeleteCategoryImage_Call) RunAndReturn added in v1.1.0

type Usecase_DeleteCategory_Call added in v1.1.0

type Usecase_DeleteCategory_Call struct {
	*mock.Call
}

Usecase_DeleteCategory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteCategory'

func (*Usecase_DeleteCategory_Call) Return added in v1.1.0

func (*Usecase_DeleteCategory_Call) Run added in v1.1.0

func (*Usecase_DeleteCategory_Call) RunAndReturn added in v1.1.0

type Usecase_DeleteManufacturerImage_Call added in v1.1.0

type Usecase_DeleteManufacturerImage_Call struct {
	*mock.Call
}

Usecase_DeleteManufacturerImage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteManufacturerImage'

func (*Usecase_DeleteManufacturerImage_Call) Return added in v1.1.0

func (*Usecase_DeleteManufacturerImage_Call) Run added in v1.1.0

func (*Usecase_DeleteManufacturerImage_Call) RunAndReturn added in v1.1.0

type Usecase_DeleteManufacturer_Call added in v1.1.0

type Usecase_DeleteManufacturer_Call struct {
	*mock.Call
}

Usecase_DeleteManufacturer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteManufacturer'

func (*Usecase_DeleteManufacturer_Call) Return added in v1.1.0

func (*Usecase_DeleteManufacturer_Call) Run added in v1.1.0

func (*Usecase_DeleteManufacturer_Call) RunAndReturn added in v1.1.0

type Usecase_DeleteProductImage_Call added in v1.1.0

type Usecase_DeleteProductImage_Call struct {
	*mock.Call
}

Usecase_DeleteProductImage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteProductImage'

func (*Usecase_DeleteProductImage_Call) Return added in v1.1.0

func (*Usecase_DeleteProductImage_Call) Run added in v1.1.0

func (*Usecase_DeleteProductImage_Call) RunAndReturn added in v1.1.0

type Usecase_DeleteProduct_Call added in v1.1.0

type Usecase_DeleteProduct_Call struct {
	*mock.Call
}

Usecase_DeleteProduct_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteProduct'

func (*Usecase_DeleteProduct_Call) Return added in v1.1.0

func (*Usecase_DeleteProduct_Call) Run added in v1.1.0

func (*Usecase_DeleteProduct_Call) RunAndReturn added in v1.1.0

type Usecase_DeleteServiceCategory_Call added in v1.1.0

type Usecase_DeleteServiceCategory_Call struct {
	*mock.Call
}

Usecase_DeleteServiceCategory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteServiceCategory'

func (*Usecase_DeleteServiceCategory_Call) Return added in v1.1.0

func (*Usecase_DeleteServiceCategory_Call) Run added in v1.1.0

func (*Usecase_DeleteServiceCategory_Call) RunAndReturn added in v1.1.0

type Usecase_DeleteService_Call added in v1.1.0

type Usecase_DeleteService_Call struct {
	*mock.Call
}

Usecase_DeleteService_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteService'

func (*Usecase_DeleteService_Call) Return added in v1.1.0

func (*Usecase_DeleteService_Call) Run added in v1.1.0

func (*Usecase_DeleteService_Call) RunAndReturn added in v1.1.0

type Usecase_Expecter added in v1.1.0

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

func (*Usecase_Expecter) AddProductImages added in v1.1.0

func (_e *Usecase_Expecter) AddProductImages(id interface{}, images interface{}, imageConfigs interface{}) *Usecase_AddProductImages_Call

AddProductImages is a helper method to define mock.On call

  • id entities.ID
  • images map[string][]byte
  • imageConfigs map[string]imageproxy.ImageConfig

func (*Usecase_Expecter) CreateCategory added in v1.1.0

func (_e *Usecase_Expecter) CreateCategory(e interface{}) *Usecase_CreateCategory_Call

CreateCategory is a helper method to define mock.On call

  • e *entities.Category

func (*Usecase_Expecter) CreateManufacturer added in v1.1.0

func (_e *Usecase_Expecter) CreateManufacturer(e interface{}) *Usecase_CreateManufacturer_Call

CreateManufacturer is a helper method to define mock.On call

  • e *entities.Manufacturer

func (*Usecase_Expecter) CreateProduct added in v1.1.0

func (_e *Usecase_Expecter) CreateProduct(e interface{}) *Usecase_CreateProduct_Call

CreateProduct is a helper method to define mock.On call

  • e *entities.Product

func (*Usecase_Expecter) CreateService added in v1.1.0

func (_e *Usecase_Expecter) CreateService(e interface{}) *Usecase_CreateService_Call

CreateService is a helper method to define mock.On call

  • e *entities.Service

func (*Usecase_Expecter) CreateServiceCategory added in v1.1.0

func (_e *Usecase_Expecter) CreateServiceCategory(e interface{}) *Usecase_CreateServiceCategory_Call

CreateServiceCategory is a helper method to define mock.On call

  • e *entities.ServiceCategory

func (*Usecase_Expecter) DeleteCategory added in v1.1.0

func (_e *Usecase_Expecter) DeleteCategory(id interface{}) *Usecase_DeleteCategory_Call

DeleteCategory is a helper method to define mock.On call

  • id entities.ID

func (*Usecase_Expecter) DeleteCategoryImage added in v1.1.0

func (_e *Usecase_Expecter) DeleteCategoryImage(categoryID interface{}) *Usecase_DeleteCategoryImage_Call

DeleteCategoryImage is a helper method to define mock.On call

  • categoryID entities.ID

func (*Usecase_Expecter) DeleteManufacturer added in v1.1.0

func (_e *Usecase_Expecter) DeleteManufacturer(id interface{}) *Usecase_DeleteManufacturer_Call

DeleteManufacturer is a helper method to define mock.On call

  • id entities.ID

func (*Usecase_Expecter) DeleteManufacturerImage added in v1.1.0

func (_e *Usecase_Expecter) DeleteManufacturerImage(manufacturerID interface{}) *Usecase_DeleteManufacturerImage_Call

DeleteManufacturerImage is a helper method to define mock.On call

  • manufacturerID entities.ID

func (*Usecase_Expecter) DeleteProduct added in v1.1.0

func (_e *Usecase_Expecter) DeleteProduct(id interface{}) *Usecase_DeleteProduct_Call

DeleteProduct is a helper method to define mock.On call

  • id entities.ID

func (*Usecase_Expecter) DeleteProductImage added in v1.1.0

func (_e *Usecase_Expecter) DeleteProductImage(productID interface{}, imageID interface{}) *Usecase_DeleteProductImage_Call

DeleteProductImage is a helper method to define mock.On call

  • productID entities.ID
  • imageID entities.ID

func (*Usecase_Expecter) DeleteService added in v1.1.0

func (_e *Usecase_Expecter) DeleteService(id interface{}) *Usecase_DeleteService_Call

DeleteService is a helper method to define mock.On call

  • id entities.ID

func (*Usecase_Expecter) DeleteServiceCategory added in v1.1.0

func (_e *Usecase_Expecter) DeleteServiceCategory(id interface{}) *Usecase_DeleteServiceCategory_Call

DeleteServiceCategory is a helper method to define mock.On call

  • id entities.ID

func (*Usecase_Expecter) GetCategory added in v1.1.0

func (_e *Usecase_Expecter) GetCategory(id interface{}, imageConfigs interface{}) *Usecase_GetCategory_Call

GetCategory is a helper method to define mock.On call

  • id entities.ID
  • imageConfigs map[string]imageproxy.ImageConfig

func (*Usecase_Expecter) GetManufacturer added in v1.1.0

func (_e *Usecase_Expecter) GetManufacturer(id interface{}, imageConfigs interface{}) *Usecase_GetManufacturer_Call

GetManufacturer is a helper method to define mock.On call

  • id entities.ID
  • imageConfigs map[string]imageproxy.ImageConfig

func (*Usecase_Expecter) GetProduct added in v1.1.0

func (_e *Usecase_Expecter) GetProduct(id interface{}, resolved interface{}, imageConfigs interface{}) *Usecase_GetProduct_Call

GetProduct is a helper method to define mock.On call

  • id entities.ID
  • resolved bool
  • imageConfigs map[string]imageproxy.ImageConfig

func (*Usecase_Expecter) GetService added in v1.1.0

func (_e *Usecase_Expecter) GetService(id interface{}) *Usecase_GetService_Call

GetService is a helper method to define mock.On call

  • id entities.ID

func (*Usecase_Expecter) GetServiceCategory added in v1.1.0

func (_e *Usecase_Expecter) GetServiceCategory(id interface{}, resolved interface{}) *Usecase_GetServiceCategory_Call

GetServiceCategory is a helper method to define mock.On call

  • id entities.ID
  • resolved bool

func (*Usecase_Expecter) ListCategories added in v1.1.0

func (_e *Usecase_Expecter) ListCategories(imageConfigs interface{}) *Usecase_ListCategories_Call

ListCategories is a helper method to define mock.On call

  • imageConfigs map[string]imageproxy.ImageConfig

func (*Usecase_Expecter) ListManufacturers added in v1.1.0

func (_e *Usecase_Expecter) ListManufacturers(imageConfigs interface{}) *Usecase_ListManufacturers_Call

ListManufacturers is a helper method to define mock.On call

  • imageConfigs map[string]imageproxy.ImageConfig

func (*Usecase_Expecter) ListProducts added in v1.1.0

func (_e *Usecase_Expecter) ListProducts(imageConfigs interface{}) *Usecase_ListProducts_Call

ListProducts is a helper method to define mock.On call

  • imageConfigs map[string]imageproxy.ImageConfig

func (*Usecase_Expecter) ListServiceCategories added in v1.1.0

func (_e *Usecase_Expecter) ListServiceCategories(resolved interface{}) *Usecase_ListServiceCategories_Call

ListServiceCategories is a helper method to define mock.On call

  • resolved bool

func (*Usecase_Expecter) UpdateCategory added in v1.1.0

func (_e *Usecase_Expecter) UpdateCategory(e interface{}) *Usecase_UpdateCategory_Call

UpdateCategory is a helper method to define mock.On call

  • e *entities.Category

func (*Usecase_Expecter) UpdateManufacturer added in v1.1.0

func (_e *Usecase_Expecter) UpdateManufacturer(e interface{}) *Usecase_UpdateManufacturer_Call

UpdateManufacturer is a helper method to define mock.On call

  • e *entities.Manufacturer

func (*Usecase_Expecter) UpdateProduct added in v1.1.0

func (_e *Usecase_Expecter) UpdateProduct(e interface{}) *Usecase_UpdateProduct_Call

UpdateProduct is a helper method to define mock.On call

  • e *entities.Product

func (*Usecase_Expecter) UpdateProductImage added in v1.1.0

func (_e *Usecase_Expecter) UpdateProductImage(productID interface{}, imageID interface{}, order interface{}) *Usecase_UpdateProductImage_Call

UpdateProductImage is a helper method to define mock.On call

  • productID entities.ID
  • imageID entities.ID
  • order int

func (*Usecase_Expecter) UpdateService added in v1.1.0

func (_e *Usecase_Expecter) UpdateService(e interface{}) *Usecase_UpdateService_Call

UpdateService is a helper method to define mock.On call

  • e *entities.Service

func (*Usecase_Expecter) UpdateServiceCategory added in v1.1.0

func (_e *Usecase_Expecter) UpdateServiceCategory(e interface{}) *Usecase_UpdateServiceCategory_Call

UpdateServiceCategory is a helper method to define mock.On call

  • e *entities.ServiceCategory

func (*Usecase_Expecter) UpsertCategoryImage added in v1.1.0

func (_e *Usecase_Expecter) UpsertCategoryImage(categoryID interface{}, imageName interface{}, imageContent interface{}, imageConfigs interface{}) *Usecase_UpsertCategoryImage_Call

UpsertCategoryImage is a helper method to define mock.On call

  • categoryID entities.ID
  • imageName string
  • imageContent []byte
  • imageConfigs map[string]imageproxy.ImageConfig

func (*Usecase_Expecter) UpsertManufacturerImage added in v1.1.0

func (_e *Usecase_Expecter) UpsertManufacturerImage(manufacturerID interface{}, imageName interface{}, imageContent interface{}, imageConfigs interface{}) *Usecase_UpsertManufacturerImage_Call

UpsertManufacturerImage is a helper method to define mock.On call

  • manufacturerID entities.ID
  • imageName string
  • imageContent []byte
  • imageConfigs map[string]imageproxy.ImageConfig

type Usecase_GetCategory_Call added in v1.1.0

type Usecase_GetCategory_Call struct {
	*mock.Call
}

Usecase_GetCategory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCategory'

func (*Usecase_GetCategory_Call) Return added in v1.1.0

func (*Usecase_GetCategory_Call) Run added in v1.1.0

func (*Usecase_GetCategory_Call) RunAndReturn added in v1.1.0

type Usecase_GetManufacturer_Call added in v1.1.0

type Usecase_GetManufacturer_Call struct {
	*mock.Call
}

Usecase_GetManufacturer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetManufacturer'

func (*Usecase_GetManufacturer_Call) Return added in v1.1.0

func (*Usecase_GetManufacturer_Call) Run added in v1.1.0

func (*Usecase_GetManufacturer_Call) RunAndReturn added in v1.1.0

type Usecase_GetProduct_Call added in v1.1.0

type Usecase_GetProduct_Call struct {
	*mock.Call
}

Usecase_GetProduct_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetProduct'

func (*Usecase_GetProduct_Call) Return added in v1.1.0

func (*Usecase_GetProduct_Call) Run added in v1.1.0

func (_c *Usecase_GetProduct_Call) Run(run func(id entities.ID, resolved bool, imageConfigs map[string]imageproxy.ImageConfig)) *Usecase_GetProduct_Call

func (*Usecase_GetProduct_Call) RunAndReturn added in v1.1.0

type Usecase_GetServiceCategory_Call added in v1.1.0

type Usecase_GetServiceCategory_Call struct {
	*mock.Call
}

Usecase_GetServiceCategory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetServiceCategory'

func (*Usecase_GetServiceCategory_Call) Return added in v1.1.0

func (*Usecase_GetServiceCategory_Call) Run added in v1.1.0

func (*Usecase_GetServiceCategory_Call) RunAndReturn added in v1.1.0

type Usecase_GetService_Call added in v1.1.0

type Usecase_GetService_Call struct {
	*mock.Call
}

Usecase_GetService_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetService'

func (*Usecase_GetService_Call) Return added in v1.1.0

func (*Usecase_GetService_Call) Run added in v1.1.0

func (*Usecase_GetService_Call) RunAndReturn added in v1.1.0

type Usecase_ListCategories_Call added in v1.1.0

type Usecase_ListCategories_Call struct {
	*mock.Call
}

Usecase_ListCategories_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListCategories'

func (*Usecase_ListCategories_Call) Return added in v1.1.0

func (*Usecase_ListCategories_Call) Run added in v1.1.0

func (*Usecase_ListCategories_Call) RunAndReturn added in v1.1.0

type Usecase_ListManufacturers_Call added in v1.1.0

type Usecase_ListManufacturers_Call struct {
	*mock.Call
}

Usecase_ListManufacturers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListManufacturers'

func (*Usecase_ListManufacturers_Call) Return added in v1.1.0

func (*Usecase_ListManufacturers_Call) Run added in v1.1.0

func (*Usecase_ListManufacturers_Call) RunAndReturn added in v1.1.0

type Usecase_ListProducts_Call added in v1.1.0

type Usecase_ListProducts_Call struct {
	*mock.Call
}

Usecase_ListProducts_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListProducts'

func (*Usecase_ListProducts_Call) Return added in v1.1.0

func (*Usecase_ListProducts_Call) Run added in v1.1.0

func (*Usecase_ListProducts_Call) RunAndReturn added in v1.1.0

type Usecase_ListServiceCategories_Call added in v1.1.0

type Usecase_ListServiceCategories_Call struct {
	*mock.Call
}

Usecase_ListServiceCategories_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListServiceCategories'

func (*Usecase_ListServiceCategories_Call) Return added in v1.1.0

func (*Usecase_ListServiceCategories_Call) Run added in v1.1.0

func (*Usecase_ListServiceCategories_Call) RunAndReturn added in v1.1.0

type Usecase_UpdateCategory_Call added in v1.1.0

type Usecase_UpdateCategory_Call struct {
	*mock.Call
}

Usecase_UpdateCategory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateCategory'

func (*Usecase_UpdateCategory_Call) Return added in v1.1.0

func (*Usecase_UpdateCategory_Call) Run added in v1.1.0

func (*Usecase_UpdateCategory_Call) RunAndReturn added in v1.1.0

type Usecase_UpdateManufacturer_Call added in v1.1.0

type Usecase_UpdateManufacturer_Call struct {
	*mock.Call
}

Usecase_UpdateManufacturer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateManufacturer'

func (*Usecase_UpdateManufacturer_Call) Return added in v1.1.0

func (*Usecase_UpdateManufacturer_Call) Run added in v1.1.0

func (*Usecase_UpdateManufacturer_Call) RunAndReturn added in v1.1.0

type Usecase_UpdateProductImage_Call added in v1.1.0

type Usecase_UpdateProductImage_Call struct {
	*mock.Call
}

Usecase_UpdateProductImage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateProductImage'

func (*Usecase_UpdateProductImage_Call) Return added in v1.1.0

func (*Usecase_UpdateProductImage_Call) Run added in v1.1.0

func (_c *Usecase_UpdateProductImage_Call) Run(run func(productID entities.ID, imageID entities.ID, order int)) *Usecase_UpdateProductImage_Call

func (*Usecase_UpdateProductImage_Call) RunAndReturn added in v1.1.0

type Usecase_UpdateProduct_Call added in v1.1.0

type Usecase_UpdateProduct_Call struct {
	*mock.Call
}

Usecase_UpdateProduct_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateProduct'

func (*Usecase_UpdateProduct_Call) Return added in v1.1.0

func (*Usecase_UpdateProduct_Call) Run added in v1.1.0

func (*Usecase_UpdateProduct_Call) RunAndReturn added in v1.1.0

type Usecase_UpdateServiceCategory_Call added in v1.1.0

type Usecase_UpdateServiceCategory_Call struct {
	*mock.Call
}

Usecase_UpdateServiceCategory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateServiceCategory'

func (*Usecase_UpdateServiceCategory_Call) Return added in v1.1.0

func (*Usecase_UpdateServiceCategory_Call) Run added in v1.1.0

func (*Usecase_UpdateServiceCategory_Call) RunAndReturn added in v1.1.0

type Usecase_UpdateService_Call added in v1.1.0

type Usecase_UpdateService_Call struct {
	*mock.Call
}

Usecase_UpdateService_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateService'

func (*Usecase_UpdateService_Call) Return added in v1.1.0

func (*Usecase_UpdateService_Call) Run added in v1.1.0

func (*Usecase_UpdateService_Call) RunAndReturn added in v1.1.0

type Usecase_UpsertCategoryImage_Call added in v1.1.0

type Usecase_UpsertCategoryImage_Call struct {
	*mock.Call
}

Usecase_UpsertCategoryImage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpsertCategoryImage'

func (*Usecase_UpsertCategoryImage_Call) Return added in v1.1.0

func (*Usecase_UpsertCategoryImage_Call) Run added in v1.1.0

func (_c *Usecase_UpsertCategoryImage_Call) Run(run func(categoryID entities.ID, imageName string, imageContent []byte, imageConfigs map[string]imageproxy.ImageConfig)) *Usecase_UpsertCategoryImage_Call

func (*Usecase_UpsertCategoryImage_Call) RunAndReturn added in v1.1.0

type Usecase_UpsertManufacturerImage_Call added in v1.1.0

type Usecase_UpsertManufacturerImage_Call struct {
	*mock.Call
}

Usecase_UpsertManufacturerImage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpsertManufacturerImage'

func (*Usecase_UpsertManufacturerImage_Call) Return added in v1.1.0

func (*Usecase_UpsertManufacturerImage_Call) Run added in v1.1.0

func (_c *Usecase_UpsertManufacturerImage_Call) Run(run func(manufacturerID entities.ID, imageName string, imageContent []byte, imageConfigs map[string]imageproxy.ImageConfig)) *Usecase_UpsertManufacturerImage_Call

func (*Usecase_UpsertManufacturerImage_Call) RunAndReturn added in v1.1.0

Jump to

Keyboard shortcuts

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