Strip Link methods
This commit is contained in:
parent
fbbc33d0f9
commit
8ccf61ebaf
@ -21,8 +21,6 @@ type Network interface {
|
|||||||
Connect() (Node, error)
|
Connect() (Node, error)
|
||||||
// Peer with a neighboring network
|
// Peer with a neighboring network
|
||||||
Peer(Network) (Link, error)
|
Peer(Network) (Link, error)
|
||||||
// Retrieve list of peers
|
|
||||||
Links() ([]Link, error)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Node represents a single node on a network
|
// Node represents a single node on a network
|
||||||
@ -33,8 +31,6 @@ type Node interface {
|
|||||||
Address() string
|
Address() string
|
||||||
// The network of the node
|
// The network of the node
|
||||||
Network() string
|
Network() string
|
||||||
// Links to other nodes
|
|
||||||
Links() ([]Link, error)
|
|
||||||
// Close the network connection
|
// Close the network connection
|
||||||
Close() error
|
Close() error
|
||||||
// Accept messages on the network
|
// Accept messages on the network
|
||||||
|
Loading…
x
Reference in New Issue
Block a user