Documentation ¶
Index ¶
- func NewGatewayOpenapiRuleServiceImpl() error
- type GatewayOpenapiRuleServiceImpl
- func (impl GatewayOpenapiRuleServiceImpl) Clone(ctx context.Context) openapi_rule.GatewayOpenapiRuleService
- func (impl GatewayOpenapiRuleServiceImpl) CreateLimitRule(args *gw.DiceArgsDto, dto *gw.OpenLimitRuleDto) (res bool, existed bool, err error)
- func (impl GatewayOpenapiRuleServiceImpl) CreateOrUpdateLimitRule(consumerId, packageId string, limits []exdto.LimitType) (err error)
- func (impl GatewayOpenapiRuleServiceImpl) CreateOrUpdatePlugin(gatewayProvider string, adapter gateway_providers.GatewayAdapter, ...) (string, error)
- func (impl GatewayOpenapiRuleServiceImpl) CreateRule(diceInfo gw.DiceInfo, rule *gw.OpenapiRule, helper *db.SessionHelper) error
- func (impl GatewayOpenapiRuleServiceImpl) DeleteByPackage(pack *orm.GatewayPackage) error
- func (impl GatewayOpenapiRuleServiceImpl) DeleteByPackageApi(pack *orm.GatewayPackage, api *orm.GatewayPackageApi) error
- func (impl GatewayOpenapiRuleServiceImpl) DeleteLimitRule(id string) (res bool, err error)
- func (impl GatewayOpenapiRuleServiceImpl) DeleteRule(ruleId string, helper *db.SessionHelper) error
- func (impl GatewayOpenapiRuleServiceImpl) GetApiRules(apiId string, category ...gw.RuleCategory) ([]gw.OpenapiRuleInfo, error)
- func (impl GatewayOpenapiRuleServiceImpl) GetGatewayProvider(clusterName string) (string, error)
- func (impl GatewayOpenapiRuleServiceImpl) GetLimitRules(args *gw.GetOpenLimitRulesDto) (res common.NewPageQuery, err error)
- func (impl GatewayOpenapiRuleServiceImpl) GetPackageRules(packageId string, helper *db.SessionHelper, category ...gw.RuleCategory) ([]gw.OpenapiRuleInfo, error)
- func (impl GatewayOpenapiRuleServiceImpl) SetPackageApiKongPolicies(packageApi *orm.GatewayPackageApi, useKong bool, session *db.SessionHelper) error
- func (impl GatewayOpenapiRuleServiceImpl) SetPackageKongPolicies(pack *orm.GatewayPackage, helper *db.SessionHelper) error
- func (impl GatewayOpenapiRuleServiceImpl) UpdateLimitRule(ruleId string, dto *gw.OpenLimitRuleDto) (res *gw.OpenLimitRuleInfoDto, err error)
- func (impl GatewayOpenapiRuleServiceImpl) UpdateRule(ruleId string, rule *gw.OpenapiRule) (*orm.GatewayPackageRule, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGatewayOpenapiRuleServiceImpl ¶
func NewGatewayOpenapiRuleServiceImpl() error
Types ¶
type GatewayOpenapiRuleServiceImpl ¶
type GatewayOpenapiRuleServiceImpl struct {
// contains filtered or unexported fields
}
func (GatewayOpenapiRuleServiceImpl) Clone ¶
func (impl GatewayOpenapiRuleServiceImpl) Clone(ctx context.Context) openapi_rule.GatewayOpenapiRuleService
func (GatewayOpenapiRuleServiceImpl) CreateLimitRule ¶
func (impl GatewayOpenapiRuleServiceImpl) CreateLimitRule(args *gw.DiceArgsDto, dto *gw.OpenLimitRuleDto) (res bool, existed bool, err error)
func (GatewayOpenapiRuleServiceImpl) CreateOrUpdateLimitRule ¶
func (impl GatewayOpenapiRuleServiceImpl) CreateOrUpdateLimitRule(consumerId, packageId string, limits []exdto.LimitType) (err error)
func (GatewayOpenapiRuleServiceImpl) CreateOrUpdatePlugin ¶
func (impl GatewayOpenapiRuleServiceImpl) CreateOrUpdatePlugin(gatewayProvider string, adapter gateway_providers.GatewayAdapter, dto *gw.OpenapiRule, helper *db.SessionHelper) (string, error)
func (GatewayOpenapiRuleServiceImpl) CreateRule ¶
func (impl GatewayOpenapiRuleServiceImpl) CreateRule(diceInfo gw.DiceInfo, rule *gw.OpenapiRule, helper *db.SessionHelper) error
func (GatewayOpenapiRuleServiceImpl) DeleteByPackage ¶
func (impl GatewayOpenapiRuleServiceImpl) DeleteByPackage(pack *orm.GatewayPackage) error
func (GatewayOpenapiRuleServiceImpl) DeleteByPackageApi ¶
func (impl GatewayOpenapiRuleServiceImpl) DeleteByPackageApi(pack *orm.GatewayPackage, api *orm.GatewayPackageApi) error
func (GatewayOpenapiRuleServiceImpl) DeleteLimitRule ¶
func (impl GatewayOpenapiRuleServiceImpl) DeleteLimitRule(id string) (res bool, err error)
func (GatewayOpenapiRuleServiceImpl) DeleteRule ¶
func (impl GatewayOpenapiRuleServiceImpl) DeleteRule(ruleId string, helper *db.SessionHelper) error
func (GatewayOpenapiRuleServiceImpl) GetApiRules ¶
func (impl GatewayOpenapiRuleServiceImpl) GetApiRules(apiId string, category ...gw.RuleCategory) ([]gw.OpenapiRuleInfo, error)
func (GatewayOpenapiRuleServiceImpl) GetGatewayProvider ¶
func (impl GatewayOpenapiRuleServiceImpl) GetGatewayProvider(clusterName string) (string, error)
func (GatewayOpenapiRuleServiceImpl) GetLimitRules ¶
func (impl GatewayOpenapiRuleServiceImpl) GetLimitRules(args *gw.GetOpenLimitRulesDto) (res common.NewPageQuery, err error)
func (GatewayOpenapiRuleServiceImpl) GetPackageRules ¶
func (impl GatewayOpenapiRuleServiceImpl) GetPackageRules(packageId string, helper *db.SessionHelper, category ...gw.RuleCategory) ([]gw.OpenapiRuleInfo, error)
func (GatewayOpenapiRuleServiceImpl) SetPackageApiKongPolicies ¶
func (impl GatewayOpenapiRuleServiceImpl) SetPackageApiKongPolicies(packageApi *orm.GatewayPackageApi, useKong bool, session *db.SessionHelper) error
func (GatewayOpenapiRuleServiceImpl) SetPackageKongPolicies ¶
func (impl GatewayOpenapiRuleServiceImpl) SetPackageKongPolicies(pack *orm.GatewayPackage, helper *db.SessionHelper) error
func (GatewayOpenapiRuleServiceImpl) UpdateLimitRule ¶
func (impl GatewayOpenapiRuleServiceImpl) UpdateLimitRule(ruleId string, dto *gw.OpenLimitRuleDto) (res *gw.OpenLimitRuleInfoDto, err error)
func (GatewayOpenapiRuleServiceImpl) UpdateRule ¶
func (impl GatewayOpenapiRuleServiceImpl) UpdateRule(ruleId string, rule *gw.OpenapiRule) (*orm.GatewayPackageRule, error)
Click to show internal directories.
Click to hide internal directories.