Documentation ¶
Index ¶
- Variables
- func Authorize(c *gin.Context)
- func Cors(c *gin.Context)
- func Failed(c *gin.Context, code int, message string, data ...any)
- func GetBranches(c *gin.Context)
- func GetComments(c *gin.Context)
- func GetPosts(c *gin.Context)
- func GetUser(c *gin.Context) *user.User
- func Run(cfg *Config)
- func Submit(c *gin.Context)
- func Succeed(c *gin.Context, data ...any)
- type Config
- type Monitor
Constants ¶
This section is empty.
Variables ¶
View Source
var Monitors = make(monitors)
View Source
var Timer = timer{0, make(map[string]int64)}
Functions ¶
Types ¶
type Config ¶
type Config struct { // 资源文件夹 Resource string // 数据库文件名 File string // 服务器启动 IP Url string // 启动端口 Port string // gin 启动模式 Debug bool }
webhook 配置
Click to show internal directories.
Click to hide internal directories.