node

package
v0.0.0-...-520de0a Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	Host host.Host
	// contains filtered or unexported fields
}

func New

func New(relayAddrStr string, peerAddrStr string) *Node

func (*Node) ConnectRelay

func (n *Node) ConnectRelay()

func (*Node) Done

func (n *Node) Done() <-chan struct{}

func (*Node) StartChat

func (n *Node) StartChat()

func (*Node) StartFileTransfer

func (n *Node) StartFileTransfer()

func (*Node) Stop

func (n *Node) Stop()

type StreamType

type StreamType string
const (
	ChatStream         StreamType = "chat"
	FileTransferStream StreamType = "file-transfer"
)

Jump to

Keyboard shortcuts

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