neo-go/pkg/network/peer.go

18 lines
321 B
Go
Raw Normal View History

2018-01-26 18:04:13 +00:00
package network
import (
"net"
"github.com/CityOfZion/neo-go/pkg/network/payload"
2018-01-26 18:04:13 +00:00
)
// Peer represents a network node neo-go is connected to.
type Peer interface {
NetAddr() *net.TCPAddr
Disconnect(error)
WriteMsg(msg *Message) error
Done() chan error
Version() *payload.Version
SetVersion(*payload.Version)
}