Documentation ¶
Index ¶
Constants ¶
const Separator = "/"
Variables ¶
This section is empty.
Functions ¶
func ErrorFromPb ¶
func NodeIDSlicePb ¶
NodeIDSlicePb converts a slice of NodeIDs to a slice of the native type underlying NodeID. This is required for serialization using Protocol Buffers.
Types ¶
type ModuleID ¶
type ModuleID string
ModuleID represents an identifier of a module. The intention is for it to correspond to a path in the module hierarchy. However, technically, the Mir Node only cares for the ID's prefix up to the first separator and ignores the rest. The rest of the ID can be used for any module-specific purposes.
func (ModuleID) Sub ¶
Sub returns the identifier of a submodule within the top-level module, stripped of the top-level module identifier.
type NodeAddress ¶
type NodeAddress multiaddr.Multiaddr
NodeAddress represents the address of a node.
type NodeID ¶
type NodeID string
NodeID represents the ID of a node.
func NewNodeIDFromInt ¶
func NodeIDSlice ¶
NodeIDSlice converts a slice of NodeIDs represented directly as their underlying native type to a slice of abstractly typed node IDs.