Files
OpenList/conf/const.go

38 lines
780 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(
2021-02-04 10:02:34 +08:00
Debug bool // is debug command
Help bool // is help command
Version bool // is print version command
Con string // config file
Client *http.Client // request client
Authorization string // authorization string
2020-12-29 13:37:58 +08:00
2021-02-04 10:02:34 +08:00
Cache *cache.Cache // cache
2021-01-08 16:32:02 +08:00
2021-02-04 10:02:34 +08:00
Origins []string // allow origins
2020-12-24 01:39:45 +08:00
)
var Conf = new(Config)
const (
2021-02-04 10:02:34 +08:00
VERSION="v0.1.7"
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"
)