detector

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var QueryList chan string
View Source
var Wg = &sync.WaitGroup{}

Functions

This section is empty.

Types

type NodeInfo

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

type NodeSet

type NodeSet struct {
	sync.Mutex
	NodeInfoList map[string]*NodeInfo
}

func Init

func Init() *NodeSet

func (*NodeSet) AddToQuerylist

func (manager *NodeSet) AddToQuerylist(list []string, duplicateCheck bool)

func (*NodeSet) Query

func (manager *NodeSet) Query(endPoint string)

Query has two things to do 1. query the neighbours of this node and restore them 2. query this node's version

func (*NodeSet) Reset

func (manager *NodeSet) Reset()

Jump to

Keyboard shortcuts

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