Documentation ¶
Index ¶
- type Node
- func (n *Node) CreateClient() *fclient.Client
- func (n *Node) CreateFederationClient(cfg *config.Dendrite) fclient.FederationClient
- func (n *Node) DerivedServerName() string
- func (n *Node) DialerContext(ctx context.Context, _, address string) (net.Conn, error)
- func (n *Node) DisconnectMulticastPeers()
- func (n *Node) DisconnectNonMulticastPeers()
- func (n *Node) KnownNodes() []spec.ServerName
- func (n *Node) PeerCount() int
- func (n *Node) PrivateKey() ed25519.PrivateKey
- func (n *Node) PublicKey() ed25519.PublicKey
- func (n *Node) SetMulticastEnabled(enabled bool)
- func (n *Node) SetStaticPeer(uri string) error
- func (n *Node) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
type Node struct { *yggquic.YggdrasilTransport // contains filtered or unexported fields }
func Setup ¶
func Setup(sk ed25519.PrivateKey, instanceName, storageDirectory, peerURI, listenURI string) (*Node, error)
func (*Node) CreateClient ¶
func (*Node) CreateFederationClient ¶
func (n *Node) CreateFederationClient( cfg *config.Dendrite, ) fclient.FederationClient
func (*Node) DerivedServerName ¶
func (*Node) DialerContext ¶
func (*Node) DisconnectMulticastPeers ¶
func (n *Node) DisconnectMulticastPeers()
func (*Node) DisconnectNonMulticastPeers ¶
func (n *Node) DisconnectNonMulticastPeers()
func (*Node) KnownNodes ¶
func (n *Node) KnownNodes() []spec.ServerName
func (*Node) PrivateKey ¶
func (n *Node) PrivateKey() ed25519.PrivateKey
func (*Node) SetMulticastEnabled ¶
func (*Node) SetStaticPeer ¶
Click to show internal directories.
Click to hide internal directories.