eventloop

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2018 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Configuration options for endpoint discovery and xDS
	Options bootstrap.Options
	// Storage to read upstreams and vhosts, and to write reports
	Store storage.Interface
	// Secrets to watch for changes
	Secrets dependencies.SecretStorage
	// Config files to watch for changes
	Files dependencies.FileStorage
	// The address the xDS server should bind to
	XdsBindAddress net.Addr
}

Config for the event loop. The event loop receives events from various sources, and triggers regeneration of and xDS snapshot via the *translator.Translator.

type EventLoop

type EventLoop interface {
	Run(stop <-chan struct{})
}

func Setup

func Setup(opts bootstrap.Options, xdsPort int) (EventLoop, error)

func SetupWithConfig

func SetupWithConfig(cfg Config) (EventLoop, error)

Jump to

Keyboard shortcuts

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