Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Inport ¶
type Inport interface {
Execute(ctx context.Context, req InportRequest) (*InportResponse, error)
}
Inport of UploadImage
func NewUsecase ¶
NewUsecase is constructor for create default implementation of usecase UploadImage
type InportRequest ¶
type InportRequest struct {
Image *multipart.FileHeader `form:"image" binding:"required"`
}
InportRequest is request payload to run the usecase UploadImage
type InportResponse ¶
type InportResponse struct {
Location string `json:"location"`
}
InportResponse is response payload after running the usecase UploadImage
type Outport ¶
type Outport interface {
service.GenerateRandomStringService
service.GetBaseURLRepo
}
Outport of UploadImage
Click to show internal directories.
Click to hide internal directories.