router

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Router module.

A set of functions to access the routing properties of the request.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Router

type Router struct {
	bridge.PdkBridge
}

Holds this module's functions. Accessible as `kong.Router`

func (Router) GetRoute

func (c Router) GetRoute() (route entities.Route, err error)

kong.Router.GetRoute() returns the current route entity. The request was matched against this route.

func (Router) GetService

func (c Router) GetService() (service entities.Service, err error)

// kong.Router.GetService() returns the current service entity. // The request will be targetted to this upstream service.

Jump to

Keyboard shortcuts

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