Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Version = "dev"
Version 为构建时通过 -ldflags 注入的版本号,如 "v1.2.3" 未注入时默认为 "dev"
Functions ¶
Types ¶
type Controller ¶
type Controller interface {
// Register 注册路由到给定的 Group(已带 /api/<moduleName> 前缀)
Register(r *gin.RouterGroup)
// ModuleName 返回模块名,用作路由前缀
ModuleName() string
// Enabled 返回模块是否启用;未启用时跳过路由注册
Enabled() bool
}
Controller 接口:所有独立的 API 模块都需实现此接口
Directories
¶
| Path | Synopsis |
|---|---|
|
Package modules 模块汇入点 每新增一个子模块,在此文件追加一行匿名导入即可
|
Package modules 模块汇入点 每新增一个子模块,在此文件追加一行匿名导入即可 |
|
starhistory
Package starhistory 移植 star-history(github.com/Mubelotix/star-history) 的 SVG 星标历史图表生成能力,仅保留 /svg 图像接口。
|
Package starhistory 移植 star-history(github.com/Mubelotix/star-history) 的 SVG 星标历史图表生成能力,仅保留 /svg 图像接口。 |
Click to show internal directories.
Click to hide internal directories.