Documentation ¶
Index ¶
Constants ¶
View Source
const ( Daily = "daily" Weekly = "weekly" Monthly = "monthly" )
View Source
const ( MetaVersion = "version" MetaConfigFile = "meta.config-file" MetaListenAddr = "meta.listen-addr" MetaUrlPrefix = "meta.url-prefix" MetaAppName = "meta.app-name" DBHostPort = "db.host-port" DBUserPass = "db.user-pass" DBDatabase = "db.database" TaskSyncNewInterval = "task.sync-new-interval" TaskSyncFullInterval = "task.sync-full-interval" RedisHostPort = "redis.host-port" RedisPassword = "redis.password" StorageMediaDir = "storage.media-dir" // 如果设置了本地目录则不使用对象存储 StorageAccessKey = "storage.access-key" StorageSecretKey = "storage.secret-key" )
配置参数集
View Source
const RecommendMonthly = `0 10 1,16 * *`
避免打扰到别人,推送时间固定为每月两次
Variables ¶
View Source
var (
MetaVersionMap = map[string]string{
"version": metaVersion,
"commitId": metaCommitId,
"branch": metaBranch,
"buildAt": metaBuildAt,
"platform": metaPlatform,
"poweredBy": metaPoweredBy,
}
)
配置信息集合, 集中式管理配置是为了某些配置可能会被循环导入的情况
View Source
var Spec = map[string]string{ Daily: `0 5 * * *`, Weekly: `0 4 * * 7`, Monthly: `0 3 1 * *`, }
任务周期表达式映射
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.