Documentation
¶
Index ¶
Constants ¶
View Source
const ( // CtxAuthorized 用户已认证 CtxAuthorized = "cazed" // CtxTranslator 翻译 CtxTranslator = "ct" // AuthCookie 用户认证使用的Cookie名 AuthCookie = "i_like_solitude" // CacheKeyPrefixRelatedChapters 缓存键前缀:章节 CacheKeyPrefixRelatedChapters = "ckprc" // CacheKeyPrefixRelatedArticle 缓存键前缀:文章 CacheKeyPrefixRelatedArticle = "ckpra" // CacheKeyPrefixRelatedSiblingArticle 缓存键前缀:相邻文章 CacheKeyPrefixRelatedSiblingArticle = "ckprsa" // CacheKeyPrefixUploadFiles 缓存键前缀:上传的文件 CacheKeyPrefixUploadFiles = "ckpuf" )
Variables ¶
View Source
var BuildVersion = "_BuildVersion_"
BuildVersion 构建版本
View Source
var Injector *dig.Container
Injector 运行时依赖注入
View Source
var TemplateIndex = map[byte]string{
1: "article",
2: "page",
}
TemplateIndex 模板索引
View Source
var Templates = map[byte]string{
1: "Article template",
2: "Page template",
}
Templates 文章模板
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.