reorder methods

This commit is contained in:
Asim Aslam 2019-10-22 17:02:22 +01:00
parent ab9fa20a50
commit 85e273afa5

View File

@ -57,14 +57,14 @@ type Tunnel interface {
type Link interface { type Link interface {
// The id of the link // The id of the link
Id() string Id() string
// Status of the link e.g connected/closed
Status() string
// Delay is the current load on the link (lower is better) // Delay is the current load on the link (lower is better)
Delay() int64 Delay() int64
// Current transfer rate as bits per second (lower is better)
Rate() float64
// Length returns the roundtrip time as nanoseconds (lower is better) // Length returns the roundtrip time as nanoseconds (lower is better)
Length() int64 Length() int64
// Current transfer rate as bits per second (lower is better)
Rate() float64
// Status of the link e.g connected/closed
Status() string
// honours transport socket // honours transport socket
transport.Socket transport.Socket
} }