Versions in this module Expand all Collapse all v0 v0.4.6 Oct 27, 2022 Changes in this version type PeerInfo — linux/amd64 + Priority uint8 v0.4.4 Oct 2, 2022 Changes in this version + type AddHandler interface + AddHandler func(name, desc string, args []string, handlerfunc AddHandlerFunc) error + type AddHandlerFunc func(json.RawMessage) (interface{}, error) + type AllowedPublicKey ed25519.PublicKey + type Core struct + func New(secret ed25519.PrivateKey, logger Logger, opts ...SetupOption) (*Core, error) + func (c *Core) AddPeer(peer string, intf string) error + func (c *Core) Address() net.IP + func (c *Core) CallPeer(u *url.URL, sintf string) error + func (c *Core) GetDHT() []DHTEntryInfo + func (c *Core) GetPaths() []PathEntryInfo + func (c *Core) GetPeers() []PeerInfo + func (c *Core) GetSelf() SelfInfo + func (c *Core) GetSessions() []SessionInfo + func (c *Core) Listen(u *url.URL, sintf string) (*Listener, error) + func (c *Core) MTU() uint64 + func (c *Core) PublicKey() ed25519.PublicKey + func (c *Core) ReadFrom(p []byte) (n int, from net.Addr, err error) + func (c *Core) RemovePeer(uri string, sourceInterface string) error + func (c *Core) RemovePeers() error + func (c *Core) SetAdmin(a AddHandler) error + func (c *Core) SetLogger(log Logger) + func (c *Core) Stop() + func (c *Core) Subnet() net.IPNet + func (c *Core) WriteTo(p []byte, addr net.Addr) (n int, err error) + type DHTEntryInfo struct + Key ed25519.PublicKey + Port uint64 + Rest uint64 + type DebugGetDHTRequest struct + Key string + type DebugGetDHTResponse map[string]interface + type DebugGetPeersRequest struct + Key string + type DebugGetPeersResponse map[string]interface + type DebugGetSelfRequest struct + Key string + type DebugGetSelfResponse map[string]interface + type GetNodeInfoRequest struct + Key string + type GetNodeInfoResponse map[string]json.RawMessage + type ListenAddress string + type Listener struct + func (l *Listener) Close() error + type Logger interface + Debugf func(string, ...interface{}) + Debugln func(...interface{}) + Errorf func(string, ...interface{}) + Errorln func(...interface{}) + Infof func(string, ...interface{}) + Infoln func(...interface{}) + Printf func(string, ...interface{}) + Println func(...interface{}) + Warnf func(string, ...interface{}) + Warnln func(...interface{}) + type NodeInfo map[string]interface + type NodeInfoPayload []byte + type NodeInfoPrivacy bool + type PathEntryInfo struct + Key ed25519.PublicKey + Path []uint64 + type Peer struct + SourceInterface string + URI string + type PeerInfo struct + Coords []uint64 + Key ed25519.PublicKey + Port uint64 + RXBytes uint64 + Remote string + Root ed25519.PublicKey + TXBytes uint64 + Uptime time.Duration + type SelfInfo struct + Coords []uint64 + Key ed25519.PublicKey + Root ed25519.PublicKey + type SessionInfo struct + Key ed25519.PublicKey + RXBytes uint64 + TXBytes uint64 + Uptime time.Duration + type SetupOption interface