Documentation ¶
Index ¶
- func AddApi(apiConfPath, apiName, requestURL, requestMethod, proxyURL, proxyMethod string, ...) (bool, int)
- func AddApiGroup(groupConfPath, groupName string) (bool, int)
- func AddBackend(backendConfPath, backendName, backendPath string) (bool, int)
- func AddGateway(gatewayName, gatewayAlias string) bool
- func AddRateLimit(strategyConfPath, strategyID, period string, ...) bool
- func AddStrategy(strategyConfPath, strategyName string) (bool, string)
- func CheckApiURLIsExist(apiConfPath, requestURL, requestMethod, follow string, apiID int) bool
- func CheckGatewayAliasIsExist(gatewayAlias string) bool
- func CheckLogin(userToken, loginName string) bool
- func DeleteApi(apiConfPath string, apiID int) bool
- func DeleteApiGroup(groupConfPath string, groupID int) bool
- func DeleteApiOfGroup(apiConfPath string, groupID int) bool
- func DeleteBackend(backendConfPath string, backendID int) bool
- func DeleteGateway(gatewayAlias string) bool
- func DeleteRateLimit(strategyConfPath, strategyID string, rateLimitID int) bool
- func DeleteStrategy(strategyConfPath, strategyID string) bool
- func EditApi(apiConfPath, apiName, requestURL, requestMethod, proxyURL, proxyMethod string, ...) bool
- func EditApiGroup(groupConfPath, groupName string, groupID int) bool
- func EditAuth(...) bool
- func EditBackend(backendConfPath, backendName, backendPath, gatewayAlias string, backendID int) bool
- func EditGateway(gatewayName, gatewayAlias, oldGatewayAlias string) bool
- func EditGatewayIPList(gatewayAlias, ipLimitType, ipWhiteList, ipBlackList string) bool
- func EditGlobalConfig(gatewayPort string) bool
- func EditRateLimit(strategyConfPath, strategyID, period string, ...) bool
- func EditStrategy(strategyConfPath, strategyName, strategyID string) bool
- func EditStrategyIPList(strategyConfPath, strategyID, ipLimitType, ipWhiteList, ipBlackList string) bool
- func GetAllApiList(apiConfPath string) map[string]interface{}
- func GetApiCount(apiConfPath string) int
- func GetApiGroupCount(groupConfPath string) int
- func GetApiGroupInfo(groupConfPath string, groupID int) (bool, *conf.GroupInfo)
- func GetApiGroupList(groupConfPath string) []*conf.GroupInfo
- func GetApiInfo(apiConfPath string, apiID int) (bool, map[string]interface{})
- func GetApiListByGroup(apiConfPath string, groupID int) map[string]interface{}
- func GetAuthInfo(strategyConfPath, strategyID string) map[string]string
- func GetBackendInfo(backendConfPath string, backendID int) (bool, *conf.BackendInfo)
- func GetBackendList(backendConfPath string) []*conf.BackendInfo
- func GetGatewayConfPath(gatewayAlias string) (bool, map[string]string)
- func GetGatewayIPList(gatewayAlias string) map[string]string
- func GetGatewayInfo(gatewayAlias string) (bool, map[string]interface{})
- func GetGatewayList() (bool, []map[string]interface{})
- func GetRateLimitInfo(strategyConfPath, strategyID string, limitID int) (bool, *conf.RateLimitInfo)
- func GetRateLimitList(strategyConfPath, strategyID string) []map[string]interface{}
- func GetSimpleStrategyList(strategyConfPath string) []map[string]interface{}
- func GetStrategyCount(strategyConfPath string) int
- func GetStrategyIPList(strategyConfPath, strategyID string) map[string]string
- func GetStrategyList(strategyConfPath string) []map[string]interface{}
- func Install(port, loginName, loginPassword, path string) bool
- func Login(loginName, loginPassword string) bool
- func SearchApi(apiConfPath, keyword string) []map[string]interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddApi ¶
func AddApi(apiConfPath, apiName, requestURL, requestMethod, proxyURL, proxyMethod string, groupID, backendID int, follow, isRaw bool, param []*conf.Param, constantParam []*conf.ConstantParam) (bool, int)
新增接口
func AddBackend ¶
新增后端
func AddRateLimit ¶
func AddRateLimit(strategyConfPath, strategyID, period string, startTime, endTime, priority, limitCount int, allow bool) bool
新增流量限制
func CheckApiURLIsExist ¶
请求路径及请求方式查重
func DeleteRateLimit ¶
删除流量限制
func EditApi ¶
func EditApi(apiConfPath, apiName, requestURL, requestMethod, proxyURL, proxyMethod string, apiID, groupID, backendID int, follow, isRaw bool, param []*conf.Param, constantParam []*conf.ConstantParam) bool
修改接口
func EditAuth ¶
func EditAuth(strategyConfPath, strategyID, auth, basicUserName, basicUserPassword, apiKey string) bool
编辑鉴权信息
func EditBackend ¶
func EditBackend(backendConfPath, backendName, backendPath, gatewayAlias string, backendID int) bool
修改后端信息
func EditGatewayIPList ¶
修改网关黑白名单
func EditRateLimit ¶
func EditRateLimit(strategyConfPath, strategyID, period string, rateLimitID, startTime, endTime, priority, limitCount int, allow bool) bool
修改流量限制
func EditStrategyIPList ¶
func EditStrategyIPList(strategyConfPath, strategyID, ipLimitType, ipWhiteList, ipBlackList string) bool
修改策略组黑白名单
func GetApiGroupInfo ¶
获取api分组信息
func GetApiInfo ¶
获取接口详情
func GetApiListByGroup ¶
func GetBackendInfo ¶
func GetBackendInfo(backendConfPath string, backendID int) (bool, *conf.BackendInfo)
获取后端信息
func GetGatewayConfPath ¶
获取网关配置路径
func GetGatewayInfo ¶
获取网关信息
func GetRateLimitInfo ¶
func GetRateLimitInfo(strategyConfPath, strategyID string, limitID int) (bool, *conf.RateLimitInfo)
获取流量限制列表
func GetRateLimitList ¶
获取流量限制列表
func GetSimpleStrategyList ¶
获取简易策略组列表
func GetStrategyIPList ¶
获取策略组黑白名单
func GetStrategyList ¶
获取策略组列表
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.