Node is a network

This commit is contained in:
Asim Aslam 2019-06-17 21:11:39 +01:00
parent 1a571b8c82
commit 59eaa89bac

View File

@ -25,10 +25,8 @@ type Network interface {
// Node represents a network node // Node represents a network node
type Node interface { type Node interface {
// Id of the node // Node is a network. Network is a node.
Id() string Network
// The network for this node
Network() Network
} }
// Message is a message sent over the network // Message is a message sent over the network