Documentation ¶
Index ¶
- func Process() *goflow.Graph
- type Statement
- type UploadService
- func (s *UploadService) GetCheckSum() string
- func (s *UploadService) GetExt() string
- func (s *UploadService) GetFileName() string
- func (s *UploadService) GetFullPath() string
- func (s *UploadService) GetMediaType() types.MediaType
- func (s *UploadService) GetMime() *mimetype.MIME
- func (s *UploadService) GetSavePath() string
- func (s *UploadService) GetSize() schema.MediaSize
- func (s *UploadService) Init()
- func (s *UploadService) Parse(mf *os.File, level types.MediaLevel) error
- func (s *UploadService) ParseByPath(filePath string, level types.MediaLevel) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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
Click to show internal directories.
Click to hide internal directories.