Change network id to name

This commit is contained in:
Asim Aslam
2019-07-07 10:10:38 +01:00
parent d1fc3c361e
commit eafc930f84
3 changed files with 20 additions and 20 deletions

View File

@@ -10,8 +10,8 @@ import (
// is responsible for routing messages to the correct services.
type Network interface {
options.Options
// Id of the network
Id() string
// Name of the network
Name() string
// Connect to the network
Connect() (Node, error)
// Peer with a neighboring network
@@ -53,8 +53,8 @@ type Message struct {
}
var (
// The default network ID is local
DefaultId = "local"
// The default network name is local
DefaultName = "local"
// just the standard network element
DefaultNetwork = NewNetwork()