neoneo-go/pkg/rpc/response/result/version.go

16 lines
387 B
Go
Raw Normal View History

package result
2020-10-14 13:52:49 +00:00
import "github.com/nspcc-dev/neo-go/pkg/config/netmode"
type (
// Version model used for reporting server version
// info.
Version struct {
2020-10-14 13:52:49 +00:00
Magic netmode.Magic `json:"magic"`
TCPPort uint16 `json:"tcpport"`
WSPort uint16 `json:"wsport,omitempty"`
Nonce uint32 `json:"nonce"`
UserAgent string `json:"useragent"`
}
)