package
0.4.0
Repository: https://github.com/cessproject/p2p-go.git
Documentation: pkg.go.dev

# Functions

CalcFileSHA256 is used to calculate the sha256 value of the file type.
CalcPathSHA256 is used to calculate the sha256 value of a file with a given path.
CalcSHA256 is used to calculate the sha256 value of the data.
No description provided by the author
No description provided by the author
Get external ip address.
Get local ip address.
IsIPv4 is used to determine whether ipAddr is an ipv4 address.
IsIPv6 is used to determine whether ipAddr is an ipv6 address.
NewDatastore returns a new fs Datastore at given `path`.
No description provided by the author
NewPeerNode constructs a new *PeerNode workspace: service working directory privatekeypath: private key file If it is empty, automatically created in the program working directory If it is a directory, it will be created in the specified directory.
No description provided by the author
ParseMultiaddrs.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
pattern: /protocol-name/request-or-response-message/version.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
Datastore uses a uses a file per key to store values.
No description provided by the author
Node type - Implementation of a P2P Host.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

P2P is an object participating in a p2p network, which implements protocols or provides services.
No description provided by the author

# Type aliases

No description provided by the author