Documentation ¶
Index ¶
- Constants
- Variables
- func NewKongAdapter(kongAddr string) gateway_providers.GatewayAdapter
- func NewKongAdapterByConsumerId(consumerDb service.GatewayConsumerService, consumerId string) gateway_providers.GatewayAdapter
- func NewKongAdapterForConsumer(consumer *orm.GatewayConsumer) gateway_providers.GatewayAdapter
- func NewKongAdapterForProject(az, env, projectId string) gateway_providers.GatewayAdapter
Constants ¶
View Source
const ( ConsumerRoot string = "/consumers/" PluginRoot string = "/plugins/" ServiceRoot string = "/services/" RouteRoot string = "/routes/" AclRoot string = "/acls/" UpstreamRoot string = "/upstreams/" HealthPath string = "/health/" TargetPath string = "/targets/" )
View Source
const InnerHost = "gateway.inner"
Variables ¶
View Source
var (
ErrInvalidReq = errors.New("kongAdapter: invalid request")
)
Functions ¶
func NewKongAdapter ¶
func NewKongAdapter(kongAddr string) gateway_providers.GatewayAdapter
func NewKongAdapterByConsumerId ¶
func NewKongAdapterByConsumerId(consumerDb service.GatewayConsumerService, consumerId string) gateway_providers.GatewayAdapter
func NewKongAdapterForConsumer ¶
func NewKongAdapterForConsumer(consumer *orm.GatewayConsumer) gateway_providers.GatewayAdapter
func NewKongAdapterForProject ¶
func NewKongAdapterForProject(az, env, projectId string) gateway_providers.GatewayAdapter
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.