Documentation ¶
Index ¶
Constants ¶
View Source
const (
EVENT_VIDEO_CONVERT = "video.convert"
)
Variables ¶
This section is empty.
Functions ¶
func GetFileExt ¶
Types ¶
type Event ¶
type Event struct { Type string // может пригодиться для разделения видов событий, но пока будет только 1 Value VideoConvertData }
type File ¶
type File struct { Id int `json:"-" db:"id"` Path string `json:"path" db:"path"` Name string `json:"name" db:"name"` UserId int `json:"-" db:"user_id"` KiloByteSize int64 `json:"kilo_byte_size" db:"kilo_byte_size"` PrevImage string `json:"prev_image" db:"prev_image"` Status ProcessStatus `json:"status" db:"status"` ErrorMessage string `json:"error_message" db:"error_message"` }
type ProcessStatus ¶
type ProcessStatus int
const ( CREATED ProcessStatus = iota STARTED FINISHED ERROR )
type ResizeProcess ¶
type ResizedImg ¶
type SizeCoefficient ¶
type UploadedFile ¶
type VideoConvertData ¶
type VideoConvertData struct { UserCode string `json:"user_code"` Path string `json:"path"` TargetFormat FileType `json:"target_format"` }
func (VideoConvertData) Validate ¶
func (t VideoConvertData) Validate() error
type Width ¶
type Width struct { Width int SizeFields []SizeCoefficient }
Click to show internal directories.
Click to hide internal directories.