Documentation ¶
Index ¶
- func HandleAPIVersion(ctx *fasthttp.RequestCtx, _ func(error))
- func HandleCreateRule(ctx *fasthttp.RequestCtx, _ func(error))
- func HandleDeleteRule(ctx *fasthttp.RequestCtx, _ func(error))
- func HandleExportRules(ctx *fasthttp.RequestCtx, _ func(error))
- func HandleGetRule(ctx *fasthttp.RequestCtx, _ func(error))
- func HandleImportRules(ctx *fasthttp.RequestCtx, _ func(error))
- func HandleMockedAPI(ctx *fasthttp.RequestCtx, _ func(error))
- func HandlePatchRule(ctx *fasthttp.RequestCtx, _ func(error))
- func HandlePutRule(ctx *fasthttp.RequestCtx, _ func(error))
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleAPIVersion ¶
func HandleAPIVersion(ctx *fasthttp.RequestCtx, _ func(error))
HandleAPIVersion 健康检查用途
func HandleCreateRule ¶
func HandleCreateRule(ctx *fasthttp.RequestCtx, _ func(error))
HandleCreateRule 创建规则接口
func HandleDeleteRule ¶
func HandleDeleteRule(ctx *fasthttp.RequestCtx, _ func(error))
HandleDeleteRule 根据rule id删除规则
func HandleExportRules ¶
func HandleExportRules(ctx *fasthttp.RequestCtx, _ func(error))
HandleExportRules 导出当前所有规则
func HandleGetRule ¶
func HandleGetRule(ctx *fasthttp.RequestCtx, _ func(error))
HandleGetRule 根据rule id获取规则
func HandleImportRules ¶
func HandleImportRules(ctx *fasthttp.RequestCtx, _ func(error))
HandleImportRules 导入规则,将会清空目前所有规则
func HandleMockedAPI ¶
func HandleMockedAPI(ctx *fasthttp.RequestCtx, _ func(error))
HandleMockedAPI 处理所有mock api
func HandlePatchRule ¶
func HandlePatchRule(ctx *fasthttp.RequestCtx, _ func(error))
HandlePatchRule 根据rule id更新目前规则,与put的区别在于:put需要传入完整的rule对象,而patch只需要传入更新部分即可
func HandlePutRule ¶
func HandlePutRule(ctx *fasthttp.RequestCtx, _ func(error))
HandlePutRule 根据rule id更新目前规则,如果规则不存在,不会新建
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.