Documentation ¶
Index ¶
- Constants
- func GenerateConfig(privateKey ed25519.PrivateKey) config.NodeConfig
- type NodeInfo
- type PeerList
- type Server
- func (s *Server) Address() (net.IP, error)
- func (s *Server) Gateway() (net.IPNet, error)
- func (s *Server) NodeID() (*crypto.NodeID, error)
- func (s *Server) Start() error
- func (s *Server) Stop() error
- func (s *Server) Subnet() (net.IPNet, error)
- func (s *Server) SubnetFor(b []byte) (net.IP, error)
- func (s *Server) Tun() string
Constants ¶
View Source
const ( YggListenTCP = 9943 YggListenTLS = 9944 YggListenLinkLocal = 9945 YggIface = "ygg0" )
List of port used by yggdrasil
Variables ¶
This section is empty.
Functions ¶
func GenerateConfig ¶
func GenerateConfig(privateKey ed25519.PrivateKey) config.NodeConfig
GenerateConfig creates a new yggdrasil configuration and generate the box and signing key from the ed25519 Private key of the node this creates a mapping between a yggdrasil identity and the TFGrid identity
Types ¶
type PeerList ¶
type PeerList struct {
// contains filtered or unexported fields
}
PeerList is a list of yggsdrasil peer retrieved from https://publicpeers.neilalexander.dev/publicnodes.json
func FetchPeerList ¶
FetchPeerList download the list of public yggdrasil peer from https://publicpeers.neilalexander.dev/publicnodes.json
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server represent a yggdrasil server
func NewServer ¶
func NewServer(zinit *zinit.Client, cfg *config.NodeConfig) *Server
NewServer create a new yggdrasil Server
Click to show internal directories.
Click to hide internal directories.