uploadimage

package
v0.0.0-...-41dc70e Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2021 License: MIT Imports: 7 Imported by: 0

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

func NewUsecase(outputPort Outport) Inport

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

Outport of UploadImage

Jump to

Keyboard shortcuts

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