# Functions
MarshalDuration marshals a duration to a string.
MarshalPrivateKey marshals the private key in b58 format.
MarshalPrivateKeyPEM marshals the private key in pem format.
MarshalPublicKey marshals the public key in b58 format.
MarshalPublicKeyPEM marshals the public key in pem format.
MarshalTimestamp marshals a timestamp to a RFC3339 string.
ParseDuration parses a duration or returns 0, nil if empty.
ParsePeer parses one of privKey, pubKey, peerID to build a Peer.
ParsePeerID parses the peer ID if it is not empty.
ParsePeerIDs parses a list of peer IDs.
ParsePeerIDsUnique parses a list of peer IDs and dedupes.
ParsePrivateKey parses the private key from a string.
ParsePrivateKeyPEM parses the private key from a configuration.
ParseProtocolID parses the peer ID if it is not empty.
ParseProtocolIDs parses a list of peer IDs.
ParseProtocolIDsUnique parses a list of peer IDs and dedupes.
ParsePublicKey parses the public key from a string.
ParsePublicKeyPEM parses the public key from a configuration.
ParseRegexp parses a regular expression.
ParseTimestamp parses a timestamp string.
ParseURL parses the url from a string.
ParseURLs parses a list of urls.
ValidatePeerID checks if a peer ID is valid and set.
ValidateProtocolID checks if a peer ID is valid.
ValidatePubKey checks if a public key is set and valid.
ValidateURL checks if a URL is set and valid.