impl

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

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 (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)

Jump to

Keyboard shortcuts

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