nodes

package
v0.0.0-...-9cf374a Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2019 License: GPL-3.0 Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CurrentNodeAddress string

CurrentNodeAddress ... Contains the address of the current node.

View Source
var MasterNode = "127.0.0.1:3000"

MasterNode ... Hard code the masternode address for now. In future this will be elected by the nodes.

View Source
var SyncList = make(chan string, 1000)

SyncList ... A channel to send the address of the newly registered node.

Functions

func GenerateUUID

func GenerateUUID() string

func NodeList

func NodeList() nodeSet

func RegNode

func RegNode(address string) bool

func SyncNode

func SyncNode(address, addr string, syncFlag bool)

func SyncNodes

func SyncNodes(address string)

Types

type Node

type Node struct {
	Identifier string
	Address    string
}

Jump to

Keyboard shortcuts

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