test

package
v0.12.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

README

Doing some protobuf tests here.
Using gogoprotobuf.

Documentation

Overview

Package test is a generated protocol buffer package.

It is generated from these files:

test.proto

It has these top-level messages:

ResultStatus
NodeInfo
PubKey
PubKeyEd25519

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthTest = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTest   = fmt.Errorf("proto: integer overflow")
)

Functions

This section is empty.

Types

type NodeInfo

type NodeInfo struct {
	PubKey     *PubKey  `protobuf:"bytes,1,req,name=pubKey" json:"pubKey,omitempty"`
	Moniker    string   `protobuf:"bytes,2,req,name=moniker" json:"moniker"`
	Network    string   `protobuf:"bytes,3,req,name=network" json:"network"`
	RemoteAddr string   `protobuf:"bytes,4,req,name=remoteAddr" json:"remoteAddr"`
	ListenAddr string   `protobuf:"bytes,5,req,name=listenAddr" json:"listenAddr"`
	Version    string   `protobuf:"bytes,6,req,name=version" json:"version"`
	Other      []string `protobuf:"bytes,7,rep,name=other" json:"other,omitempty"`
}

func (*NodeInfo) Equal

func (this *NodeInfo) Equal(that interface{}) bool

func (*NodeInfo) GetListenAddr

func (m *NodeInfo) GetListenAddr() string

func (*NodeInfo) GetMoniker

func (m *NodeInfo) GetMoniker() string

func (*NodeInfo) GetNetwork

func (m *NodeInfo) GetNetwork() string

func (*NodeInfo) GetOther

func (m *NodeInfo) GetOther() []string

func (*NodeInfo) GetPubKey

func (m *NodeInfo) GetPubKey() *PubKey

func (*NodeInfo) GetRemoteAddr

func (m *NodeInfo) GetRemoteAddr() string

func (*NodeInfo) GetVersion

func (m *NodeInfo) GetVersion() string

func (*NodeInfo) GoString

func (this *NodeInfo) GoString() string

func (*NodeInfo) Marshal

func (m *NodeInfo) Marshal() (data []byte, err error)

func (*NodeInfo) MarshalTo

func (m *NodeInfo) MarshalTo(data []byte) (int, error)

func (*NodeInfo) ProtoMessage

func (*NodeInfo) ProtoMessage()

func (*NodeInfo) Reset

func (m *NodeInfo) Reset()

func (*NodeInfo) Size

func (m *NodeInfo) Size() (n int)

func (*NodeInfo) String

func (this *NodeInfo) String() string

func (*NodeInfo) Unmarshal

func (m *NodeInfo) Unmarshal(data []byte) error

type PubKey

type PubKey struct {
	Ed25519 *PubKeyEd25519 `protobuf:"bytes,1,opt,name=ed25519" json:"ed25519,omitempty"`
}

func (*PubKey) Equal

func (this *PubKey) Equal(that interface{}) bool

func (*PubKey) GetEd25519

func (m *PubKey) GetEd25519() *PubKeyEd25519

func (*PubKey) GoString

func (this *PubKey) GoString() string

func (*PubKey) Marshal

func (m *PubKey) Marshal() (data []byte, err error)

func (*PubKey) MarshalTo

func (m *PubKey) MarshalTo(data []byte) (int, error)

func (*PubKey) ProtoMessage

func (*PubKey) ProtoMessage()

func (*PubKey) Reset

func (m *PubKey) Reset()

func (*PubKey) Size

func (m *PubKey) Size() (n int)

func (*PubKey) String

func (this *PubKey) String() string

func (*PubKey) Unmarshal

func (m *PubKey) Unmarshal(data []byte) error

type PubKeyEd25519

type PubKeyEd25519 struct {
	Bytes []byte `protobuf:"bytes,1,req,name=bytes" json:"bytes"`
}

func (*PubKeyEd25519) Equal

func (this *PubKeyEd25519) Equal(that interface{}) bool

func (*PubKeyEd25519) GetBytes

func (m *PubKeyEd25519) GetBytes() []byte

func (*PubKeyEd25519) GoString

func (this *PubKeyEd25519) GoString() string

func (*PubKeyEd25519) Marshal

func (m *PubKeyEd25519) Marshal() (data []byte, err error)

func (*PubKeyEd25519) MarshalTo

func (m *PubKeyEd25519) MarshalTo(data []byte) (int, error)

func (*PubKeyEd25519) ProtoMessage

func (*PubKeyEd25519) ProtoMessage()

func (*PubKeyEd25519) Reset

func (m *PubKeyEd25519) Reset()

func (*PubKeyEd25519) Size

func (m *PubKeyEd25519) Size() (n int)

func (*PubKeyEd25519) String

func (this *PubKeyEd25519) String() string

func (*PubKeyEd25519) Unmarshal

func (m *PubKeyEd25519) Unmarshal(data []byte) error

type ResultStatus

type ResultStatus struct {
	NodeInfo          *NodeInfo `protobuf:"bytes,1,opt,name=nodeInfo" json:"nodeInfo,omitempty"`
	PubKey            *PubKey   `protobuf:"bytes,2,req,name=pubKey" json:"pubKey,omitempty"`
	LatestBlockHash   []byte    `protobuf:"bytes,3,req,name=latestBlockHash" json:"latestBlockHash"`
	LatestBlockHeight int64     `protobuf:"varint,4,req,name=latestBlockHeight" json:"latestBlockHeight"`
	LatestBlocktime   int64     `protobuf:"varint,5,req,name=latestBlocktime" json:"latestBlocktime"`
}

func (*ResultStatus) Equal

func (this *ResultStatus) Equal(that interface{}) bool

func (*ResultStatus) GetLatestBlockHash

func (m *ResultStatus) GetLatestBlockHash() []byte

func (*ResultStatus) GetLatestBlockHeight

func (m *ResultStatus) GetLatestBlockHeight() int64

func (*ResultStatus) GetLatestBlocktime

func (m *ResultStatus) GetLatestBlocktime() int64

func (*ResultStatus) GetNodeInfo

func (m *ResultStatus) GetNodeInfo() *NodeInfo

func (*ResultStatus) GetPubKey

func (m *ResultStatus) GetPubKey() *PubKey

func (*ResultStatus) GoString

func (this *ResultStatus) GoString() string

func (*ResultStatus) Marshal

func (m *ResultStatus) Marshal() (data []byte, err error)

func (*ResultStatus) MarshalTo

func (m *ResultStatus) MarshalTo(data []byte) (int, error)

func (*ResultStatus) ProtoMessage

func (*ResultStatus) ProtoMessage()

func (*ResultStatus) Reset

func (m *ResultStatus) Reset()

func (*ResultStatus) Size

func (m *ResultStatus) Size() (n int)

func (*ResultStatus) String

func (this *ResultStatus) String() string

func (*ResultStatus) Unmarshal

func (m *ResultStatus) Unmarshal(data []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL