routing

package
v0.0.0-...-260b785 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Routing

type Routing struct {
	// contains filtered or unexported fields
}

Routing manages the routing functionality of space cloud

func New

func New() *Routing

New creates a new instance of the routing module

func (*Routing) DeleteProjectRoutes

func (r *Routing) DeleteProjectRoutes(project string)

DeleteProjectRoutes deletes a project's routes from the global list or routes

func (*Routing) HandleRoutes

func (r *Routing) HandleRoutes(modules modulesInterface) http.HandlerFunc

HandleRoutes handles incoming http requests and routes them according to the configured rules.

func (*Routing) SetCachingModule

func (r *Routing) SetCachingModule(c cachingInterface)

SetCachingModule sets caching module

func (*Routing) SetGlobalConfig

func (r *Routing) SetGlobalConfig(globalConfig *config.GlobalRoutesConfig)

SetGlobalConfig sets the project level config of the routing module

func (*Routing) SetProjectRoutes

func (r *Routing) SetProjectRoutes(project string, routesConfig config.IngressRoutes) error

SetProjectRoutes adds a project's routes to the global list of routes

Jump to

Keyboard shortcuts

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