Files
OpenList/conf/const.go

35 lines
597 B
Go
Raw Normal View History

2020-12-24 01:39:45 +08:00
package conf
import (
2020-12-29 13:37:58 +08:00
"github.com/patrickmn/go-cache"
2020-12-24 01:39:45 +08:00
"net/http"
)
var(
Debug bool
Help bool
Con string
Client *http.Client
Authorization string
2020-12-29 13:37:58 +08:00
Cache *cache.Cache
2020-12-24 01:39:45 +08:00
)
var Conf = new(Config)
const (
2021-01-05 16:51:31 +08:00
VERSION="v0.1.4"
2020-12-24 15:21:49 +08:00
2020-12-24 01:39:45 +08:00
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"
)