Documentation
¶
Index ¶
Constants ¶
View Source
const ( // PeerIDMaxLength is the maximum length accepted for a Network peer id. PeerIDMaxLength = 128 // PeerIDPattern is the Network peer identifier grammar. PeerIDPattern = `^[a-z0-9][a-z0-9._-]{0,127}$` )
Variables ¶
View Source
var ( // ErrInvalidField reports a present Network field that violates protocol rules. ErrInvalidField = errors.New("network: invalid field") )
Functions ¶
func ValidatePeerID ¶
ValidatePeerID reports whether the peer identifier matches the RFC grammar.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.