Documentation ¶
Index ¶
Constants ¶
View Source
const DiscoveryInterval = time.Minute
Variables ¶
This section is empty.
Functions ¶
func GetCPUStats ¶
func GetCPUStats()
func GetLoadAverage ¶
func GetLoadAverage() float64
func InitNetwork ¶
func InitNetwork()
Types ¶
type Bootstrapping ¶
type MappedNodes ¶
type MappedNodes struct { Active map[string]*MasterNode Inactive map[string]*MasterNode Invalid map[string]*MasterNode }
type MasterNode ¶
type MasterNode struct { ID peer.ID Addrs []ma.Multiaddr Bootstrapper *Bootstrapping Context context.Context PubSub *pubsub.PubSub NetworkID string MasterName string MasterServices map[string]bool Host string Port string HostID string HostAddrs []string DHT *dht.IpfsDHT ChildrenNodes []*peer.AddrInfo Neighbors []*MasterNode NodeState *core.State // contains filtered or unexported fields }
func NewMasterNode ¶
func NewMasterNode() *MasterNode
Click to show internal directories.
Click to hide internal directories.