resources

package
v0.0.0-...-2dc4aaf Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	UpstreamHost = "www.envoyproxy.io"
	UpstreamPort = 80
)

Variables

This section is empty.

Functions

func MakeCluster

func MakeCluster(clusterName string) *cluster.Cluster

func MakeEndpoint

func MakeEndpoint(clusterName string, eps []Endpoint) *endpoint.ClusterLoadAssignment

func MakeHTTPListener

func MakeHTTPListener(listenerName, route, address string, port uint32) *listener.Listener

func MakeRoute

func MakeRoute(routes []Route) *route.RouteConfiguration

Types

type Cluster

type Cluster struct {
	Name      string
	Endpoints []Endpoint
}

type Endpoint

type Endpoint struct {
	UpstreamHost string
	UpstreamPort uint32
}

type Listener

type Listener struct {
	Name       string
	Address    string
	Port       uint32
	RouteNames []string
}

type Route

type Route struct {
	Name    string
	Prefix  string
	Cluster string
}

Jump to

Keyboard shortcuts

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