http

package
v0.0.0-...-8ac4b46 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpRoute

type HttpRoute struct {
	// Listener
	ParentRef string

	// ForwardTo where to forward the proxied connections.
	// Used for accepting on a dedicated port. Will be set as MeshCluster in
	// the stream, can be mesh node.
	// host:port format.
	ForwardTo string `json:"forwardTo,omitempty"`
}

type HttpRoutes

type HttpRoutes struct {
	PortRoutes map[string]*ListenerRoutes

	TargetHandlers map[string]http.Handler
}

type ListenerRoutes

type ListenerRoutes struct {
	Listener *meshauth.PortListener

	DefaultRoute *HttpRoute

	Routes map[string]*HttpRoute `json:"routes,omitempty"`

	Mux *http.ServeMux
}

func (*ListenerRoutes) FindRoutePrefix

func (ug *ListenerRoutes) FindRoutePrefix(dstaddr net.IP, p uint16, prefix string) *HttpRoute

Jump to

Keyboard shortcuts

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