Documentation
¶
Index ¶
- Variables
- func Cors() gin.HandlerFunc
- func GinLogger(logger *zap.SugaredLogger) gin.HandlerFunc
- func GinRecovery(logger *zap.SugaredLogger, stack bool, ...) gin.HandlerFunc
- func Init(opt *InitOptions)
- func KeyAuth() gin.HandlerFunc
- func Ping(c *gin.Context)
- func PluginConfigGet(c *gin.Context)
- func PluginConfigPost(c *gin.Context)
- func Rss(c *gin.Context)
- func Run(ctx context.Context)
- type InitOptions
- type PluginConfigDownloadRequest
- type PluginConfigResponse
- type PluginConfigUploadRequest
- type PluginRequest
- type PluginResponse
- type Response
- func ErrDeny(msg string, data ...interface{}) (int, Response)
- func ErrIpt(msg string, data ...interface{}) (int, Response)
- func ErrJwt(msg string, data ...interface{}) (int, Response)
- func ErrOpt(msg string, data ...interface{}) (int, Response)
- func ErrSvr(msg string, data ...interface{}) (int, Response)
- func Ext(msg string, data ...interface{}) (int, Response)
- func Fail(msg string, data ...interface{}) (int, Response)
- func Page(msg string, items interface{}, count int) (int, Response)
- func Succ(msg string, data ...interface{}) (int, Response)
- type SelectEpRequest
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Debug bool
)
Functions ¶
func GinRecovery ¶
func GinRecovery(logger *zap.SugaredLogger, stack bool, response func(*gin.Context, interface{})) gin.HandlerFunc
GinRecovery recover掉项目可能出现的panic
func Init ¶
func Init(opt *InitOptions)
func PluginConfigGet ¶
func PluginConfigPost ¶
Types ¶
type InitOptions ¶
type InitOptions struct {
Debug bool
}
type PluginConfigDownloadRequest ¶
type PluginConfigDownloadRequest struct {
PluginRequest
}
type PluginConfigResponse ¶
type PluginConfigResponse struct {
PluginResponse
Data string `json:"data"` //base64编码后的数据
}
type PluginConfigUploadRequest ¶
type PluginConfigUploadRequest struct {
PluginRequest
Data string `json:"data" binding:"required"` //base64格式的文本数据
}
type PluginRequest ¶
type PluginRequest struct {
Name string `json:"name" form:"name" binding:"required"` //插件文件名
}
type PluginResponse ¶
type PluginResponse struct {
Name string `json:"name"`
}
Click to show internal directories.
Click to hide internal directories.