routing

package
v0.7.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Key added in v0.5.0

type Key []byte

func NewKey added in v0.5.0

func NewKey(host string, path string) Key

func NewKeyFromRequest added in v0.5.0

func NewKeyFromRequest(req *http.Request) Key

func NewKeyFromURL added in v0.5.0

func NewKeyFromURL(url *url.URL) Key

func (Key) String added in v0.5.0

func (k Key) String() string

type Keys added in v0.5.0

type Keys []Key

func NewKeysFromHTTPSO added in v0.5.0

func NewKeysFromHTTPSO(httpso *httpv1alpha1.HTTPScaledObject) Keys

type Table

type Table interface {
	util.HealthChecker

	Start(ctx context.Context) error
	Route(req *http.Request) *httpv1alpha1.HTTPScaledObject
	HasSynced() bool
}

func NewTable

func NewTable(sharedInformerFactory externalversions.SharedInformerFactory, namespace string) (Table, error)

type TableMemory added in v0.5.0

type TableMemory interface {
	Remember(httpso *httpv1alpha1.HTTPScaledObject) TableMemory
	Recall(namespacedName *types.NamespacedName) *httpv1alpha1.HTTPScaledObject
	Forget(namespacedName *types.NamespacedName) TableMemory
	Route(key Key) *httpv1alpha1.HTTPScaledObject
}

func NewTableMemory added in v0.5.0

func NewTableMemory() TableMemory

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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