openresty

package
v0.0.0-...-4b6aec8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2024 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

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]

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL