Documentation ¶
Overview ¶
Package bucketservice holds the business logic and data structures associated with the bucket domain.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { BucketRepository Repository Tracer trace.Tracer Logger *otelzap.Logger }
Config will hold repository and used utils that will be injected into this Service layer on service initialization
type Interface ¶
type Interface interface {
UploadHealthCheckResult(ctx context.Context, bucketName, objName string, imageFileHeader *multipart.FileHeader) (string, error)
}
Interface specifies the business operations of the service.
type MockInterface ¶
MockInterface is an autogenerated mock type for the Interface type
func NewMockInterface ¶
func NewMockInterface(t mockConstructorTestingTNewMockInterface) *MockInterface
NewMockInterface creates a new instance of MockInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockInterface) UploadHealthCheckResult ¶
func (_m *MockInterface) UploadHealthCheckResult(ctx context.Context, bucketName string, objName string, imageFileHeader *multipart.FileHeader) (string, error)
UploadHealthCheckResult provides a mock function with given fields: ctx, bucketName, objName, imageFileHeader
type MockRepository ¶
MockRepository is an autogenerated mock type for the Repository type
func NewMockRepository ¶
func NewMockRepository(t mockConstructorTestingTNewMockRepository) *MockRepository
NewMockRepository creates a new instance of MockRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.