discovery

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2020 License: MPL-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const XdsClusterName = "xds_cluster"

Variables

This section is empty.

Functions

func Start

func Start(ctx context.Context, config *Config) (func(), error)

func StartDebugServer

func StartDebugServer(port int, node string, c cache.SnapshotCache)

Types

type Config

type Config struct {
	ListenPort         int
	ConsulProto        string
	ConsulHost         string
	ConsulPort         int
	ConsulToken        string
	SelfName           string
	NodeName           string
	EnvoyListenPort    int
	EnvoyAccessLogPath string
	StartDebugServer   bool
	DebugServerPort    int
}

type DebugServer

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

func (*DebugServer) ListenAndServe

func (d *DebugServer) ListenAndServe(port int)

type XDS

type XDS struct {
	ServiceName        string
	ProxyNodeName      string
	Consul             *consul.Client
	Cache              cache.SnapshotCache
	ProxyListenerPort  int
	EnvoyAccessLogPath string
	WithDebugServer    bool
	DebugServerPort    int
}

func (*XDS) Start

func (x *XDS) Start(ctx context.Context)

Jump to

Keyboard shortcuts

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