package
Version:
v0.0.4
Opens a new window with list of versions in this module.
Published: Jul 7, 2025
License: MIT
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func NewDNS(
ctx context.Context,
wg *sync.WaitGroup,
cmd *cobra.Command,
address string,
port int,
nodeAddress multiaddr.Multiaddr,
nodePort int,
nodeId string,
mode DNSMode,
) (*DNS, error)
func (dns *DNS) ShutDown()
Shuts down the DNS server
type PeerInfo struct {
Address string `json:"address"`
Port int `json:"port"`
Id string `json:"id"`
Mode string `json:"mode"`
}
Response structures
Source Files
¶
Click to show internal directories.
Click to hide internal directories.