upload_file

package
v0.0.0-...-2e0bdef Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Dir                    = "./internal/file_uploader"
	UploadPath             = "/public/upload/files"
	SuccessResponseMessage = "File has been uploaded"
)

Variables

View Source
var AllowedExtensions = []string{"csv", "zip", "txt", "xlx", "xlsx", "xls", "pdf", "doc", "docx", "png", "jpg"}

Functions

This section is empty.

Types

type Inport

func NewUsecase

func NewUsecase(outputPort Outport) Inport

type InportRequest

type InportRequest struct {
	entity.FileCreateRequest
}

type InportResponse

type InportResponse struct {
	ID      vo.FileID `json:"id"`
	Message string    `json:"message"`
	Path    string    `json:"path"`
}

type Outport

type Outport interface {
	contract.Repository
}

Jump to

Keyboard shortcuts

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