package
0.0.0-20200930173842-476b4f672e85
Repository: https://github.com/iotdomain/iotdomain-go.git
Documentation: pkg.go.dev
# Functions
MakeNodeAddress generates the publication address of a node: domain/publisherID/nodeID[/messageType].
MakeNodeConfigureAddress generates the address to configure a node.
MakeNodeDiscoveryAddress generates the address of a node: domain/publisherID/nodeID/$node.
MakeSetNodeIDAddress creates the address used to update a node's ID domain, publisherID, nodeID of the existing node.
NewDomainNodes creates a new instance for domain node management.
NewNode returns a new instance of a node.
NewNodeConfig creates a new node configuration instance.
NewReceiveNodeConfigure returns a new instance of handling of node configuration commands.
NewReceiveSetNodeID returns a new instance of handling of the setNodeId command.
NewRegisteredNodes creates a new instance for node management.
PublishNodeConfigure sends a command to update the configuration of a remote node.
PublishRegisteredNodes publishes pending updates to registered nodes and saves their configuration to file the node configuration is saved in file <publisherID>-nodes.yaml.
PublishSetNodeID publishes the command to change a remote node ID using the existing node address.
# Structs
DomainNodes manages nodes discovered on the domain.
ReceiveNodeConfigure with handling of node configure commands aimed at nodes managed by this publisher.
ReceiveSetNodeID listener This decrypts incoming messages, determines the sender and verifies the signature with the sender public key.
RegisteredNodes manages the publisher's node registration and publication for discovery Nodes are immutable.
# Type aliases
NodeConfigureHandler application handler when command to update a node's configuration is received The handler is only invoked if the node is confirmed to exist.
SetNodeIDHandler callback when command to change a node ID.