Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DnsRequest ¶
type DnsRequest struct {
// contains filtered or unexported fields
}
type DnsServer ¶
type DnsServer struct {
// contains filtered or unexported fields
}
func NewDnsServer ¶
func NewDnsServer(netview *NetworkView, listenAddr, rootDomain string, realm int) *DnsServer
type NetworkView ¶
type NetworkView struct {
// contains filtered or unexported fields
}
The local view of the network
func NewNetworkView ¶
func NewNetworkView() *NetworkView
func (*NetworkView) AddNode ¶
func (nv *NetworkView) AddNode(node *glightning.Node) Node
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.