lib

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

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

Go to latest
Published: Nov 3, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildRPCAddress

func BuildRPCAddress(peer coretypes.Peer) string

func CheckNode

func CheckNode(nodeAddr string)

func CheckNodeGRPC

func CheckNodeGRPC(nodeAddr string)

func FetchClient

func FetchClient(nodeAddr string) (client *http.HTTP, err error)

func FetchNetInfo

func FetchNetInfo(client *http.HTTP) (*coretypes.ResultNetInfo, error)

func FetchNodeInfoGRPC

func FetchNodeInfoGRPC(nodeAddr string) error

func IsNodeVisited

func IsNodeVisited(nodeAddr string) bool

func MarkNodeAsVisited

func MarkNodeAsVisited(nodeAddr string)

func NormalizeAddressWithRemoteIP

func NormalizeAddressWithRemoteIP(nodeAddr string, remoteIP string) string

func ProcessPeer

func ProcessPeer(peer coretypes.Peer)

func WriteNodesToToml

func WriteNodesToToml(initialNode string)

func WriteSectionToToml

func WriteSectionToToml(file *os.File, nodeAddr string)

func WriteSectionToTomlSlice

func WriteSectionToTomlSlice(file *os.File, sectionName string, nodes map[string]bool, status bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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