upload

package
v0.0.0-...-f17293a Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Process

func Process() *goflow.Graph

Types

type Statement

type Statement struct {
	controller.BaseStatement
	controller.StatementAppImpl
	controller.ClaimsImpl

	Request  *proto.FileUploadRequest
	Response *proto.FileUploadResponse

	User  *ent.User
	App   *ent.App
	Media *ent.Media

	Claims *jwt.MapClaims
	// contains filtered or unexported fields
}

type UploadService

type UploadService struct {
	IsExists bool
	// contains filtered or unexported fields
}

func NewUploadService

func NewUploadService() *UploadService

func (*UploadService) GetCheckSum

func (s *UploadService) GetCheckSum() string

func (*UploadService) GetExt

func (s *UploadService) GetExt() string

func (*UploadService) GetFileName

func (s *UploadService) GetFileName() string

func (*UploadService) GetFullPath

func (s *UploadService) GetFullPath() string

func (*UploadService) GetMediaType

func (s *UploadService) GetMediaType() types.MediaType

func (*UploadService) GetMime

func (s *UploadService) GetMime() *mimetype.MIME

func (*UploadService) GetSavePath

func (s *UploadService) GetSavePath() string

func (*UploadService) GetSize

func (s *UploadService) GetSize() schema.MediaSize

func (*UploadService) Init

func (s *UploadService) Init()

func (*UploadService) Parse

func (s *UploadService) Parse(mf *os.File, level types.MediaLevel) error

func (*UploadService) ParseByPath

func (s *UploadService) ParseByPath(filePath string, level types.MediaLevel) error

Jump to

Keyboard shortcuts

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