Documentation ¶
Index ¶
- Constants
- Variables
- func CheckFileIsExist(filename string) bool
- func CopyFile(dstName, srcName string) (written int64, err error)
- func MakeDir(dirpath string) error
- func MakeDirAll(dirpath string) error
- func NewId() string
- type EncodeFileInfo
- type EncodeInfo
- type EncodeNotification
- type EncodeStatInfo
- type EncodedCheckI
- type FileNotification
- type FileUploadI
- type Writer
Constants ¶
View Source
const ( ENCODE_NOT_EXIST = iota ENCODE_INIT ENCODE_TS_ENCODING ENCODE_TS_ENODE_DONE ENCODE_MP4_DONE )
View Source
const RET_ID_NOT_EXIST = 501
View Source
const RET_OK = 200
Variables ¶
View Source
var ENCODE_STATUS_DSCR = []string{"id not exist", "encode init", "encoding ts files", "encode ts done", "encode mp4 done"}
Functions ¶
func CheckFileIsExist ¶
func MakeDirAll ¶
Types ¶
type EncodeFileInfo ¶
type EncodeInfo ¶
type EncodeNotification ¶
type EncodeNotification interface {
EncodeNotify(info *EncodeFileInfo) error
}
type EncodeStatInfo ¶
type EncodedCheckI ¶
type EncodedCheckI interface { IsEncodedDone(key string) bool UpdateEncodeStat(info *EncodeStatInfo) error GetEncodeStat(Id string) (info *EncodeStatInfo, err error) }
type FileNotification ¶
type FileUploadI ¶
type Writer ¶
type Writer interface { WriteMsg(info *EncodeInfo) (string, error) GetEncodeStatInfo(ID string) (info *EncodeStatInfo) }
Click to show internal directories.
Click to hide internal directories.