routing

package
v1.89.8 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: Apache-2.0 Imports: 23 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouter

func NewRouter(
	conf *config.Config,
	kialiCache cache.KialiCache,
	clientFactory kubernetes.ClientFactory,
	prom kialiprometheus.ClientInterface,
	traceClientLoader func() tracing.ClientInterface,
	cpm business.ControlPlaneMonitor,
	grafana *grafana.Service,
	discovery *istio.Discovery,
) (*mux.Router, error)

NewRouter creates the router with all API routes and the static files handler

Types

type Route

type Route struct {
	Name          string
	Method        string
	Pattern       string
	HandlerFunc   http.HandlerFunc
	Authenticated bool
}

Route describes a single route

type Routes

type Routes struct {
	Routes []Route
}

Routes holds an array of Route. A note on swagger documentation. The path variables and query parameters are defined in ../doc.go. YOu need to manually associate params and routes.

func NewRoutes

func NewRoutes(
	conf *config.Config,
	kialiCache cache.KialiCache,
	clientFactory kubernetes.ClientFactory,
	cpm business.ControlPlaneMonitor,
	prom prometheus.ClientInterface,
	traceClientLoader func() tracing.ClientInterface,
	authController authentication.AuthController,
	grafana *grafana.Service,
	discovery *istio.Discovery,
) (r *Routes)

NewRoutes creates and returns all the API routes

Jump to

Keyboard shortcuts

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