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