Documentation
¶
Index ¶
- type GatewayDbAssembler
- type GatewayDbAssemblerImpl
- func (GatewayDbAssemblerImpl) BuildConsumerApiInfo(consumerApi *db.GatewayConsumerApi, gwApi *db.GatewayApi) (*gw.ConsumerApiInfoDto, error)
- func (GatewayDbAssemblerImpl) BuildConsumerApiPolicyInfo(policy *db.GatewayPolicy) (*gw.ConsumerApiPolicyInfoDto, error)
- func (GatewayDbAssemblerImpl) BuildConsumerInfo(consumer *db.GatewayConsumer) (*gw.ConsumerInfoDto, error)
- func (GatewayDbAssemblerImpl) BuildGatewayApi(reqDto gw.ApiDto, consumerId string, policies []db.GatewayPolicy, ...) (*db.GatewayApi, error)
- func (GatewayDbAssemblerImpl) Resp2GatewayPluginInstance(resp *providerDto.PluginRespDto, params PluginParams) (*db.GatewayPluginInstance, error)
- func (GatewayDbAssemblerImpl) Resp2GatewayRoute(resp *providerDto.RouteRespDto, route *db.GatewayRoute) error
- func (impl GatewayDbAssemblerImpl) Resp2GatewayRouteByAPi(resp *providerDto.RouteRespDto, serviceId string, apiId string) (*db.GatewayRoute, error)
- func (GatewayDbAssemblerImpl) Resp2GatewayService(resp *providerDto.ServiceRespDto, service *db.GatewayService) error
- func (impl GatewayDbAssemblerImpl) Resp2GatewayServiceByApi(resp *providerDto.ServiceRespDto, apiDto gw.ApiDto, apiId string) (*db.GatewayService, error)
- type GatewayGroupAssembler
- type GatewayGroupAssemblerImpl
- type GatewayKongAssembler
- type GatewayKongAssemblerImpl
- func (GatewayKongAssemblerImpl) BuildKongPluginReqDto(pluginId string, policy *db.GatewayPolicy, serviceId string, routeId string, ...) (*providerDto.PluginReqDto, error)
- func (GatewayKongAssemblerImpl) BuildKongRouteReq(routeId string, dto *gw.ApiDto, serviceId string, isRegexPath bool) (*providerDto.RouteReqDto, error)
- func (GatewayKongAssemblerImpl) BuildKongServiceReq(serviceId string, dto *gw.ApiDto) (*providerDto.ServiceReqDto, error)
- type PluginParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GatewayDbAssembler ¶
type GatewayDbAssembler interface { Resp2GatewayService(*providerDto.ServiceRespDto, *db.GatewayService) error Resp2GatewayServiceByApi(*providerDto.ServiceRespDto, gw.ApiDto, string) (*db.GatewayService, error) Resp2GatewayRoute(*providerDto.RouteRespDto, *db.GatewayRoute) error Resp2GatewayRouteByAPi(*providerDto.RouteRespDto, string, string) (*db.GatewayRoute, error) Resp2GatewayPluginInstance(*providerDto.PluginRespDto, PluginParams) (*db.GatewayPluginInstance, error) BuildGatewayApi(gw.ApiDto, string, []db.GatewayPolicy, string, ...string) (*db.GatewayApi, error) BuildConsumerInfo(*db.GatewayConsumer) (*gw.ConsumerInfoDto, error) BuildConsumerApiInfo(*db.GatewayConsumerApi, *db.GatewayApi) (*gw.ConsumerApiInfoDto, error) BuildConsumerApiPolicyInfo(*db.GatewayPolicy) (*gw.ConsumerApiPolicyInfoDto, error) }
type GatewayDbAssemblerImpl ¶
type GatewayDbAssemblerImpl struct { }
func (GatewayDbAssemblerImpl) BuildConsumerApiInfo ¶
func (GatewayDbAssemblerImpl) BuildConsumerApiInfo(consumerApi *db.GatewayConsumerApi, gwApi *db.GatewayApi) (*gw.ConsumerApiInfoDto, error)
func (GatewayDbAssemblerImpl) BuildConsumerApiPolicyInfo ¶
func (GatewayDbAssemblerImpl) BuildConsumerApiPolicyInfo(policy *db.GatewayPolicy) (*gw.ConsumerApiPolicyInfoDto, error)
func (GatewayDbAssemblerImpl) BuildConsumerInfo ¶
func (GatewayDbAssemblerImpl) BuildConsumerInfo(consumer *db.GatewayConsumer) (*gw.ConsumerInfoDto, error)
func (GatewayDbAssemblerImpl) BuildGatewayApi ¶
func (GatewayDbAssemblerImpl) BuildGatewayApi(reqDto gw.ApiDto, consumerId string, policies []db.GatewayPolicy, zoneId string, upstreamApiId ...string) (*db.GatewayApi, error)
func (GatewayDbAssemblerImpl) Resp2GatewayPluginInstance ¶
func (GatewayDbAssemblerImpl) Resp2GatewayPluginInstance(resp *providerDto.PluginRespDto, params PluginParams) (*db.GatewayPluginInstance, error)
func (GatewayDbAssemblerImpl) Resp2GatewayRoute ¶
func (GatewayDbAssemblerImpl) Resp2GatewayRoute(resp *providerDto.RouteRespDto, route *db.GatewayRoute) error
func (GatewayDbAssemblerImpl) Resp2GatewayRouteByAPi ¶
func (impl GatewayDbAssemblerImpl) Resp2GatewayRouteByAPi(resp *providerDto.RouteRespDto, serviceId string, apiId string) (*db.GatewayRoute, error)
func (GatewayDbAssemblerImpl) Resp2GatewayService ¶
func (GatewayDbAssemblerImpl) Resp2GatewayService(resp *providerDto.ServiceRespDto, service *db.GatewayService) error
func (GatewayDbAssemblerImpl) Resp2GatewayServiceByApi ¶
func (impl GatewayDbAssemblerImpl) Resp2GatewayServiceByApi(resp *providerDto.ServiceRespDto, apiDto gw.ApiDto, apiId string) (*db.GatewayService, error)
type GatewayGroupAssembler ¶
type GatewayGroupAssembler interface {
GroupInfo2Dto([]gw.GatewayGroupInfo) ([]gw.GwApiGroupDto, error)
}
type GatewayGroupAssemblerImpl ¶
type GatewayGroupAssemblerImpl struct { }
func (GatewayGroupAssemblerImpl) GroupInfo2Dto ¶
func (GatewayGroupAssemblerImpl) GroupInfo2Dto(infos []gw.GatewayGroupInfo) ([]gw.GwApiGroupDto, error)
type GatewayKongAssembler ¶
type GatewayKongAssembler interface { BuildKongServiceReq(string, *gw.ApiDto) (*providerDto.ServiceReqDto, error) BuildKongRouteReq(string, *gw.ApiDto, string, bool) (*providerDto.RouteReqDto, error) BuildKongPluginReqDto(string, *db.GatewayPolicy, string, string, string) (*providerDto.PluginReqDto, error) }
type GatewayKongAssemblerImpl ¶
type GatewayKongAssemblerImpl struct { }
func (GatewayKongAssemblerImpl) BuildKongPluginReqDto ¶
func (GatewayKongAssemblerImpl) BuildKongPluginReqDto(pluginId string, policy *db.GatewayPolicy, serviceId string, routeId string, consumerId string) (*providerDto.PluginReqDto, error)
func (GatewayKongAssemblerImpl) BuildKongRouteReq ¶
func (GatewayKongAssemblerImpl) BuildKongRouteReq(routeId string, dto *gw.ApiDto, serviceId string, isRegexPath bool) (*providerDto.RouteReqDto, error)
func (GatewayKongAssemblerImpl) BuildKongServiceReq ¶
func (GatewayKongAssemblerImpl) BuildKongServiceReq(serviceId string, dto *gw.ApiDto) (*providerDto.ServiceReqDto, error)
Click to show internal directories.
Click to hide internal directories.