neo-go/pkg/network/transport.go
2020-05-27 19:01:14 +03:00

13 lines
285 B
Go

package network
import "time"
// Transporter is an interface that allows us to abstract
// any form of communication between the server and its peers.
type Transporter interface {
Dial(addr string, timeout time.Duration) error
Accept()
Proto() string
Address() string
Close()
}