Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultDiscoveryInterval = time.Minute * 10
DiscoveryInterval is how often we re-publish our mDNS records.
View Source
const DefaultDiscoveryServiceTag = "pubsub"
DiscoveryServiceTag is used in our mDNS advertisements to discover other chat peers.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel struct { Messages chan ChannelMessage // contains filtered or unexported fields }
type ChannelMessage ¶
type LibP2pNodeOptions ¶
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func NewLibP2pNode ¶
func NewLibP2pNode(opts *LibP2pNodeOptions) (*Node, error)
type OnPeerFound ¶
Click to show internal directories.
Click to hide internal directories.