scan

package
v0.0.0-...-69f8143 Latest Latest
Warning

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

Go to latest
Published: May 14, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TcpTimeout = 500 * time.Millisecond
	MaxDepth   = 2
)

Variables

This section is empty.

Functions

func GetAllDBNodes

func GetAllDBNodes(c redis.Conn) []string

func GetRandWait

func GetRandWait(base int, count int) int

Types

type NodesScan

type NodesScan struct {
	ResultLock    sync.RWMutex
	BootNodesLock sync.RWMutex

	RedisAddr string
	Bootnodes []*discover.Node // list of bootstrap nodes
	// contains filtered or unexported fields
}

func NewNodesScan

func NewNodesScan(udp *discover.UDP, bootnodes []*discover.Node, redisAddr string, duration time.Duration) *NodesScan

func (*NodesScan) ScanNodesLoop

func (scan *NodesScan) ScanNodesLoop()

Jump to

Keyboard shortcuts

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