Discover Packages
github.com/ngalayko/p2p
instance
messages
package
Version:
v0.0.0-...-4d778f5
Opens a new window with list of versions in this module.
Published: Mar 19, 2019
License: MIT
Opens a new window with license information.
Imports: 23
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Handler runs message server and holds connection to known peers.
NewHandler returns new messages handler.
Received returns a channel with new messages.
SendText sends a text message.
func (*Handler) Sent ¶
Sent returns a channel with sent messages.
func (*Handler) Start ¶
Start starts the server.
Message is a single message.
Type is a message type.
var (
TypeInvalid Type
TypeText Type = "text"
)
Known types.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.