Files
alist/conf/const.go
2021-03-17 12:56:47 +08:00

40 lines
898 B
Go

package conf
import (
"gorm.io/gorm"
"net/http"
)
var (
Debug bool // is debug command
Help bool // is help command
Version bool // is print version command
ConfigFile string // config file
SkipUpdate bool // skip update
Client *http.Client // request client
DB *gorm.DB
Origins []string // allow origins
)
var Conf = new(Config)
const (
VERSION = "v1.0.1"
ImageThumbnailProcess = "image/resize,w_50"
VideoThumbnailProcess = "video/snapshot,t_0,f_jpg,w_50"
ImageUrlProcess = "image/resize,w_1920/format,jpeg"
ASC = "ASC"
DESC = "DESC"
OrderUpdatedAt = "updated_at"
OrderCreatedAt = "created_at"
OrderSize = "size"
OrderName = "name"
OrderSearch = "type ASC,updated_at DESC"
AccessTokenInvalid = "AccessTokenInvalid"
Bearer = "Bearer\t"
)