Documentation ¶
Overview ¶
获取指定目录下的所有视频文件
Index ¶
- Variables
- func AddKeyValueByBucketName(db, table, key, value string) error
- func AddKeyValueByBucketNameAuto(table, key, value string) error
- func AddTables(db, tablename string) error
- func Colorize(text string, status string, background string, underline bool, highshow bool) string
- func CommandPty(cmd string) error
- func CreateBucket(db string) error
- func DecodeBase64(in string) (string, error)
- func DecodeBase64Bytes(in string) ([]byte, error)
- func DeleteBucket(db, tablename string) error
- func DeleteKeyValueByBucket(table, key string) error
- func DeleteTables(db, tablename string) error
- func EncodeBase64(in string) string
- func ExecCommand(cmd string) ([]byte, error)
- func ExecCommandString(cmd string) (string, error)
- func GetAllByTables(name string) (map[string]string, error)
- func GetAllFiles(dirPth string, suff []string) (files []string, err error)
- func GetAllTables(db string) (map[string]string, error)
- func GetCurrentDirectory() string
- func GetIPs() (ips []string)
- func GetIps() []string
- func GetMacAddrs() (macAddrs []string)
- func GetNowTime() string
- func GetRandomSalt() string
- func GetRandomString(len int) string
- func GetValueByBucketName(table, key string) ([]byte, error)
- func Home() (string, error)
- func In(target string, source []string) bool
- func InitDB(dbName, defaultDb string)
- func InitSqlite()
- func IsPathExists(path string) bool
- func Jiami(code string) string
- func MD5(text string) string
- func ParseIps(in string) ([]string, error)
- type LogFileWriter
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Db *bolt.DB Mmap map[string]string )
View Source
var Engine *xorm.Engine
Functions ¶
func AddKeyValueByBucketName ¶
func Colorize ¶
文字字体 参数介绍:text->文本内容 status->文字颜色 background->背景颜色 underline->是否下划线 highshow->是否高亮 http://www.cnblogs.com/frydsh/p/4139922.html
func CommandPty ¶
func CreateBucket ¶
func DeleteBucket ¶
func DeleteKeyValueByBucket ¶
func DeleteTables ¶
func ExecCommand ¶
func ExecCommandString ¶
func GetAllFiles ¶
获取指定目录下的所有文件,包含子目录下的文件 strings.Replace(dirPth+PthSep+fi.Name(), ".", "/static", 1) 只能查找当前目录下的所有视频文件
func GetCurrentDirectory ¶
func GetCurrentDirectory() string
func GetNowTime ¶
func GetNowTime() string
func GetValueByBucketName ¶
func Home ¶
Home returns the home directory for the executing user.
This uses an OS-specific method for discovering the home directory. An error is returned if a home directory cannot be detected.
func InitSqlite ¶
func InitSqlite()
func IsPathExists ¶
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.