Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BASEDIR = "registry"
View Source
var IdRegistrationErr = errors.New("etcd error: could not complete the registration")
View Source
var KeepAliveErr = errors.New(" The system can't renew your registration key")
View Source
var TTL = config.GetInt(config.REGISTRATION_TTL, 20) // lease time in Seconds
Functions ¶
func GetCloudNodes ¶
GetCloudNodes retrieves the list of Cloud servers in a given region
func GetCloudNodesInRegion ¶
GetCloudNodesInRegion retrieves the list of Cloud servers in a given region
func InitEdgeMonitoring ¶
func UDPStatusServer ¶
func UDPStatusServer()
UDPStatusServer listen for incoming request from other edge-nodes which want to retrieve the status of this server this listener should be called asynchronously in the main function
Types ¶
type Registry ¶
type Registry struct {
Area string
Key string
Client *vivaldi.Client
RwMtx trylock.Mutex
NearbyServersMap map[string]*StatusInformation
// contains filtered or unexported fields
}
var Reg *Registry
func (*Registry) Deregister ¶
Deregister deletes from etcd the key, value pair previously inserted
type StatusInformation ¶
Click to show internal directories.
Click to hide internal directories.