Documentation
¶
Index ¶
- type Controller
- func (r *Controller) ClearErrorLog(ctx http.Context) http.Response
- func (r *Controller) ErrorLog(ctx http.Context) http.Response
- func (r *Controller) GetConfig(ctx http.Context) http.Response
- func (r *Controller) Load(ctx http.Context) http.Response
- func (r *Controller) SaveConfig(ctx http.Context) http.Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
}
func NewController ¶
func NewController() *Controller
func (*Controller) ClearErrorLog ¶
func (r *Controller) ClearErrorLog(ctx http.Context) http.Response
ClearErrorLog
@Summary 清空错误日志
@Tags 插件-OpenResty
@Produce json
@Security BearerToken
@Success 200 {object} h.SuccessResponse
@Router /plugins/openresty/clearErrorLog [post]
func (*Controller) ErrorLog ¶
func (r *Controller) ErrorLog(ctx http.Context) http.Response
ErrorLog
@Summary 获取错误日志
@Tags 插件-OpenResty
@Produce json
@Security BearerToken
@Success 200 {object} h.SuccessResponse
@Router /plugins/openresty/errorLog [get]
func (*Controller) GetConfig ¶
func (r *Controller) GetConfig(ctx http.Context) http.Response
GetConfig
@Summary 获取配置
@Tags 插件-OpenResty
@Produce json
@Security BearerToken
@Success 200 {object} h.SuccessResponse
@Router /plugins/openresty/config [get]
func (*Controller) Load ¶
func (r *Controller) Load(ctx http.Context) http.Response
Load
@Summary 获取负载状态
@Tags 插件-OpenResty
@Produce json
@Security BearerToken
@Success 200 {object} h.SuccessResponse
@Router /plugins/openresty/load [get]
func (*Controller) SaveConfig ¶
func (r *Controller) SaveConfig(ctx http.Context) http.Response
SaveConfig
@Summary 保存配置
@Tags 插件-OpenResty
@Produce json
@Security BearerToken
@Param config body string true "配置"
@Success 200 {object} h.SuccessResponse
@Router /plugins/openresty/config [post]
Click to show internal directories.
Click to hide internal directories.