api

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

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