explored

package
v0.0.0-...-c711863 Latest Latest
Warning

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

Go to latest
Published: May 16, 2025 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ExploredCache = make(map[string]Host)
	Mutex         sync.RWMutex
)

Functions

func GetAllHosts

func GetAllHosts(cached bool) (map[string]Host, error)

Types

type Consensus

type Consensus struct {
	Height int    `json:"height"`
	Id     string `json:"id"`
}

func GetConsensus

func GetConsensus() (Consensus, error)

type Host

type Host types.Host

func GetHostByPublicKey

func GetHostByPublicKey(publicKey string) (Host, error)

func GetHosts

func GetHosts(offset int) ([]Host, error)

func (*Host) ToBSON

func (h *Host) ToBSON() bson.M

func (Host) V2SiamuxAddr

func (h Host) V2SiamuxAddr() (string, bool)

V2SiamuxAddr returns the `Address` of the first TCP siamux `NetAddress` it finds in the host's list of net addresses. The protocol for this address is ProtocolTCPSiaMux.

Jump to

Keyboard shortcuts

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