discovery

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2020 License: MPL-2.0 Imports: 34 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 {
	Global *GlobalConfig
	Consul *ConsulConfig
	XDS    *XDS
}

func NewEmptyConfig added in v0.0.2

func NewEmptyConfig() *Config

func (*Config) ParseFlags added in v0.0.2

func (c *Config) ParseFlags()

type ConsulConfig added in v0.0.2

type ConsulConfig struct {
	Proto string
	Host  string
	Port  int
	Token string
}

type DebugConfig added in v0.0.2

type DebugConfig struct {
	Enable bool
	Port   int
}

type DebugServer

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

func (*DebugServer) ListenAndServe

func (d *DebugServer) ListenAndServe(port int)

type EnvoyConfig added in v0.0.2

type EnvoyConfig struct {
	NodeName string

	ListenerPort                 int
	ListenerDrainType            string
	ListenTransparent            bool
	ListenTcpFastOpenQueueLength int
	ListenerPerConnBufLimitBytes int

	HttpAccessLogPath       string
	HttpIdleTimeout         int64
	HttpStreamIdleTimeout   int64
	HttpRequestTimeout      int64
	HttpDrainTimeout        int64
	HttpDelayedCloseTimeout int64
	HttpPreserveExtReqId    bool

	EnableTracing  bool
	TracingOpName  string
	TracingVerbose bool
}

type GlobalConfig added in v0.0.2

type GlobalConfig struct {
	LogLevel             string
	LogFormat            string
	MetricsSink          string
	EnableRuntimeMetrics bool
	DogstatsdAddr        string
	DogstatsdPort        int
	DogstatsdNS          string
}

type SyncChans added in v0.0.2

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

func NewSyncChans added in v0.0.2

func NewSyncChans() *SyncChans

type XDS

type XDS struct {
	ServiceName string
	ListenPort  int
	Consul      *consul.Client
	Cache       cache.SnapshotCache

	Envoy *EnvoyConfig
	Debug *DebugConfig
}

func (*XDS) Init added in v0.0.2

func (x *XDS) Init(client *consul.Client, sn cache.SnapshotCache)

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