neoneo-go/pkg/network/peer.go

18 lines
387 B
Go
Raw Normal View History

2018-01-26 18:04:13 +00:00
package network
import (
"github.com/CityOfZion/neo-go/pkg/network/payload"
2018-02-01 18:54:23 +00:00
"github.com/CityOfZion/neo-go/pkg/util"
2018-01-26 18:04:13 +00:00
)
// A Peer is the local representation of a remote peer.
// It's an interface that may be backed by any concrete
// transport.
type Peer interface {
Version() *payload.Version
Endpoint() util.Endpoint
Send(*Message)
Done() chan struct{}
Disconnect(err error)
}