Help us shape the future of Go! Take the 2026 Go Developer Survey

networkcontroller

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2016 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

network contains a controller that handles network lifecycle

Index

Constants

View Source
const (

	// We'll attempt to recompute EVERY service's endpoints at least this
	// often. Higher numbers = lower CPU/network load; lower numbers =
	// shorter amount of time before a mistaken endpoint is corrected.
	FullServiceResyncPeriod = 5 * time.Minute

	// We'll keep enpoint watches open up to this long
	EndpointRelistPeriod = 5 * time.Minute

	// We'll keep network watches open up to this long
	NetworkRelistPeriod = 5 * time.Minute
)

Variables

This section is empty.

Functions

This section is empty.

Types

type NetworkController

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

NetworkController manages all networks

func NewNetworkController

func NewNetworkController(client *client.Client, provider networkprovider.Interface) *NetworkController

NewNetworkController returns a new *NetworkController.

func (*NetworkController) Run

func (e *NetworkController) Run(stopCh <-chan struct{}) error

Runs e; will not return until stopCh is closed. workers determines how many endpoints will be handled in parallel.

Jump to

Keyboard shortcuts

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