package
0.0.0-20240623153536-dbbdc7c661bf
Repository: https://github.com/ansuman12chat/p2p.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
Init creates a new, fully initialized node with the given options.
NewMDNSProtocol creates a new MDNSProtocol struct with sane defaults.
PushRequest is a struct that holds the message and the peer id.
New TransferProtocol initializes a new TransferProtocol object with all fields set to their default values.
# Constants
PushProtocol is used to send and receive push messages pattern: /protocol-name/request-or-response-message/version.
pattern: /protocol-name/request-or-response-message/version.
# Structs
MDNSProtocol encapsulates the logic for discovering peers in via multicast DNS in the local network.
Node encapsulates the logic for sending and receiving messages.
No description provided by the author
PushProtocol type.
TransferProtocol encapsulates data necessary to fulfill its protocol.
# Interfaces
No description provided by the author
No description provided by the author