mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-11 15:30:07 +00:00
30 lines
540 B
Go
30 lines
540 B
Go
|
package payload
|
||
|
|
||
|
import (
|
||
|
"io"
|
||
|
|
||
|
"github.com/CityOfZion/neo-go/pkg/wire/command"
|
||
|
)
|
||
|
|
||
|
// No payload
|
||
|
type GetAddrMessage struct{}
|
||
|
|
||
|
func NewGetAddrMessage() (*GetAddrMessage, error) {
|
||
|
return &GetAddrMessage{}, nil
|
||
|
}
|
||
|
|
||
|
// Implements Messager interface
|
||
|
func (v *GetAddrMessage) DecodePayload(r io.Reader) error {
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// Implements messager interface
|
||
|
func (v *GetAddrMessage) EncodePayload(w io.Writer) error {
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// Implements messager interface
|
||
|
func (v *GetAddrMessage) Command() command.Type {
|
||
|
return command.GetAddr
|
||
|
}
|