forked from TrueCloudLab/neoneo-go
4023661cf1
* added headersOp for safely processing headers * Better handling of protocol messages. * housekeeping + cleanup tests * Added more blockchain logic + unit tests * fixed unreachable error. * added structured logging for all (node) components. * added relay flag + bumped version
16 lines
364 B
Go
16 lines
364 B
Go
package network
|
|
|
|
import (
|
|
"github.com/CityOfZion/neo-go/pkg/network/payload"
|
|
"github.com/CityOfZion/neo-go/pkg/util"
|
|
)
|
|
|
|
// 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{}
|
|
}
|