beacon

package module
v0.0.0-...-0f16e73 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2020 License: MIT Imports: 11 Imported by: 0

README

beacon

The beacon serves to guide components to their partners.

Base Functionality

The beacon interacts with the storage system to maintain what components are registered to the system. When a request comes for a given component type, the beacon sends the connection information back.

Current

The storage system will initially be a docker volume connected to the beacon container on the same machine. There will be a single beacon and it is assumed that the churn rate is 0.

The next evolution is the external storage system to allow beacon distribution and handling nebula component churn.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(containerName string, overlayName string) (*beacon, error)

Types

type Beacon

type Beacon interface {
	Run(port int)
}

type SpinnerInfo

type SpinnerInfo struct {
	Id          string    `json:"Id"`          // unique id of this spinner
	OverlayName string    `json:"OverlayName"` // name of the overlay network for this spinner
	LastUpdate  time.Time `json:"LastUpdate"`  // last timestamp of update
}

type SpinnerTable

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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