mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-02 19:45:50 +00:00
13 lines
267 B
Go
13 lines
267 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
|
||
|
Close()
|
||
|
}
|