Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GatewayOpenapiRuleService ¶
type GatewayOpenapiRuleService interface { Clone(context.Context) GatewayOpenapiRuleService CreateOrUpdateLimitRule(consumerId, packageId string, limits []exdto.LimitType) error CreateLimitRule(*dto.DiceArgsDto, *dto.OpenLimitRuleDto) (bool, bool, error) UpdateLimitRule(string, *dto.OpenLimitRuleDto) (*dto.OpenLimitRuleInfoDto, error) GetLimitRules(*dto.GetOpenLimitRulesDto) (common.NewPageQuery, error) DeleteLimitRule(string) (bool, error) CreateRule(dto.DiceInfo, *dto.OpenapiRule, *service.SessionHelper) error UpdateRule(string, *dto.OpenapiRule) (*orm.GatewayPackageRule, error) // use session if helper not nil GetPackageRules(string, *service.SessionHelper, ...dto.RuleCategory) ([]dto.OpenapiRuleInfo, error) GetApiRules(string, ...dto.RuleCategory) ([]dto.OpenapiRuleInfo, error) DeleteRule(string, *service.SessionHelper) error // recycle plugins DeleteByPackage(*orm.GatewayPackage) error DeleteByPackageApi(*orm.GatewayPackage, *orm.GatewayPackageApi) error SetPackageKongPolicies(*orm.GatewayPackage, *service.SessionHelper) error SetPackageApiKongPolicies(packageApi *orm.GatewayPackageApi, session *service.SessionHelper) error }
var Service GatewayOpenapiRuleService
Click to show internal directories.
Click to hide internal directories.