Documentation ¶
Index ¶
- Variables
- func Debug(r *Config)
- func Default[T comparable](a *T, b T)
- 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 GetToken(c *gin.Context)
- func GetUser(c *gin.Context) *user.User
- func Register(c *gin.Context)
- func Release(r *Config)
- func Run(r *Config)
- func Submit(c *gin.Context)
- func Succeed(c *gin.Context, data ...any)
- type Config
- type Cycle
- type Github
- type LifeCycle
- type Resource
- func (r Resource) Exec(args []string) error
- func (r Resource) IndexUpdate() (err error)
- func (r Resource) List() any
- func (r Resource) ToIndex() string
- func (r Resource) ToPostsDB() gorm.Dialector
- func (r Resource) ToPublic(files ...string) string
- func (r Resource) ToRoot(files ...string) string
- func (r Resource) ToUsersDB() gorm.Dialector
Constants ¶
This section is empty.
Variables ¶
View Source
var ( GIT = "https://github.com/" API = "https://api.github.com/repos/" )
Functions ¶
Types ¶
type Config ¶
type Config struct { // 端口 0~65535 Port uint16 // 资源 Resource // 生命周期 LifeCycle // 引擎 *gin.Engine // 管理员 Administrators []string }
webhook 配置
type Cycle ¶
type Cycle int
func (Cycle) Administrator ¶ added in v0.2.1
func (Cycle) OnAuthorize ¶
type Github ¶
Click to show internal directories.
Click to hide internal directories.