openapi_rule

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

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
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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