neoneo-go/pkg/network/peer.go
Anthony De Meulemeester ab2568cc51
Fixed some networking issues (#68)
* Faster persist timer

* fixed networking issues.
2018-04-13 12:14:08 +02:00

15 lines
298 B
Go

package network
import (
"github.com/CityOfZion/neo-go/pkg/network/payload"
"github.com/CityOfZion/neo-go/pkg/util"
)
type Peer interface {
Endpoint() util.Endpoint
Disconnect(error)
WriteMsg(msg *Message) error
Done() chan error
Version() *payload.Version
SetVersion(*payload.Version)
}