Documentation ¶
Index ¶
- Constants
- Variables
- func DeleteNodeID(node *noise.Node)
- func DeletePeerID(peer *noise.Peer)
- func DeleteSharedKey(peer *noise.Peer)
- func HasPeerID(peer *noise.Peer) bool
- func HasSharedKey(peer *noise.Peer) bool
- func LoadSharedKey(peer *noise.Peer) []byte
- func MustSharedKey(peer *noise.Peer) []byte
- func Peer(node *noise.Node, id ID) *noise.Peer
- func SetNodeID(node *noise.Node, id ID)
- func SetPeerID(peer *noise.Peer, id ID)
- func SetSharedKey(peer *noise.Peer, sharedKey []byte)
- type Block
- type ID
- type Protocol
Constants ¶
View Source
const ( KeyID = "node.id" KeyPeerID = "peer.id" )
View Source
const ( KeyProtocolCurrentBlockIndex = "protocol.current_block_index" KeyProtocolEnforceOnce = "protocol.enforce_once" )
Variables ¶
View Source
var (
DisconnectPeer = errors.New("peer disconnect requested")
)
Functions ¶
func DeleteNodeID ¶
func DeletePeerID ¶
func DeleteSharedKey ¶
func HasSharedKey ¶
func LoadSharedKey ¶
func MustSharedKey ¶
func SetSharedKey ¶
Types ¶
type ID ¶
Click to show internal directories.
Click to hide internal directories.