Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainView ¶
type ChainView struct { NetView *NetworkView Node lnrpc.LightningClient }
ChainView couples a network view for a particulr chain, and the node that will be populating that network view.
type DnsRequest ¶
type DnsRequest struct {
// contains filtered or unexported fields
}
type DnsServer ¶
type DnsServer struct {
// contains filtered or unexported fields
}
func NewDnsServer ¶
type NetworkView ¶
The local view of the network
func NewNetworkView ¶
func NewNetworkView(chain string) *NetworkView
NewNetworkView creates a new instance of a NetworkView.
func (*NetworkView) AddNode ¶
func (nv *NetworkView) AddNode(node *lnrpc.LightningNode) (*Node, error)
Insert nodes into the map of known nodes. Existing nodes with the same Id are overwritten.
func (*NetworkView) RandomSample ¶
func (nv *NetworkView) RandomSample(query NodeType, count int) []Node
Return a random sample matching the NodeType, or just any node if query is set to `0xFF`. Relies on random map-iteration ordering internally.
Click to show internal directories.
Click to hide internal directories.