mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-25 03:56:34 +00:00
a9b9c9226d
Fixes things like: * exported type/method/function X should have comment or be unexported * comment on exported type/method/function X should be of the form "X ..." (with optional leading article) Refs. #213.
16 lines
356 B
Go
16 lines
356 B
Go
package network
|
|
|
|
import (
|
|
"github.com/CityOfZion/neo-go/pkg/network/payload"
|
|
"github.com/CityOfZion/neo-go/pkg/util"
|
|
)
|
|
|
|
// Peer represents a network node neo-go is connected to.
|
|
type Peer interface {
|
|
Endpoint() util.Endpoint
|
|
Disconnect(error)
|
|
WriteMsg(msg *Message) error
|
|
Done() chan error
|
|
Version() *payload.Version
|
|
SetVersion(*payload.Version)
|
|
}
|