yggconn

package
v0.9.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 12, 2022 License: Apache-2.0 Imports: 18 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	// contains filtered or unexported fields
}

func Setup

func Setup(sk ed25519.PrivateKey, instanceName, storageDirectory, peerURI, listenURI string) (*Node, error)

func (*Node) Accept

func (n *Node) Accept() (net.Conn, error)

Implements net.Listener

func (*Node) Addr

func (n *Node) Addr() net.Addr

Implements net.Listener

func (*Node) Close

func (n *Node) Close() error

Implements net.Listener

func (*Node) CreateClient

func (n *Node) CreateClient(
	base *base.BaseDendrite,
) *gomatrixserverlib.Client

func (*Node) CreateFederationClient

func (n *Node) CreateFederationClient(
	base *base.BaseDendrite,
) *gomatrixserverlib.FederationClient

func (*Node) DerivedServerName

func (n *Node) DerivedServerName() string

func (*Node) Dial

func (n *Node) Dial(network, address string) (net.Conn, error)

Implements http.Transport.Dial

func (*Node) DialContext

func (n *Node) DialContext(ctx context.Context, network, address string) (net.Conn, error)

Implements http.Transport.DialContext

func (*Node) DialerContext

func (n *Node) DialerContext(ctx context.Context, _, address string) (net.Conn, error)

func (*Node) DisconnectMulticastPeers

func (n *Node) DisconnectMulticastPeers()

func (*Node) DisconnectNonMulticastPeers

func (n *Node) DisconnectNonMulticastPeers()

func (*Node) KnownNodes

func (n *Node) KnownNodes() []gomatrixserverlib.ServerName

func (*Node) PeerCount

func (n *Node) PeerCount() int

func (*Node) PrivateKey added in v0.4.1

func (n *Node) PrivateKey() ed25519.PrivateKey

func (*Node) PublicKey added in v0.4.1

func (n *Node) PublicKey() ed25519.PublicKey

func (*Node) SetMulticastEnabled

func (n *Node) SetMulticastEnabled(enabled bool)

func (*Node) SetStaticPeer

func (n *Node) SetStaticPeer(uri string) error

func (*Node) Stop

func (n *Node) Stop()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL