mesh

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

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

Go to latest
Published: Aug 20, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultRoutes

func DefaultRoutes() []*route.Route

func GatewaySnapshot

func GatewaySnapshot(id string, port int, nodes []NodeInfo) cache.Snapshot

func NewClusters

func NewClusters(nodes []NodeInfo) (clusters []*v2.Cluster)

func NewDefaultClusters

func NewDefaultClusters() []*v2.Cluster

func NewDefaultRoutes

func NewDefaultRoutes() []*v2.RouteConfiguration

func NewGatewayClusters

func NewGatewayClusters(nodes []NodeInfo) []*v2.Cluster

func NewGoogleEndpoint

func NewGoogleEndpoint() *v2.ClusterLoadAssignment

func NewListener

func NewListener(port int, defaultRoutes bool) *v2.Listener

func NewNodeEndpoints

func NewNodeEndpoints(nodes []NodeInfo) (endpoints []*v2.ClusterLoadAssignment)

func NewRoutes

func NewRoutes(nodes []NodeInfo) []*v2.RouteConfiguration

func NodeSnapshot

func NodeSnapshot(id string, port int) cache.Snapshot

Types

type NodeInfo

type NodeInfo interface {
	IP() string
	ID() string
	Cluster() string
	NodeType() string
	PreferredPort() int
	Priority() int
}

Jump to

Keyboard shortcuts

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