test

package
v0.25.1-br34 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2018 License: Apache-2.0 Imports: 4 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
ID
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 ID added in v0.19.0

type ID struct {
	Id               *string `protobuf:"bytes,1,req,name=id" json:"id,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*ID) Descriptor added in v0.19.0

func (*ID) Descriptor() ([]byte, []int)

func (*ID) GetId added in v0.19.0

func (m *ID) GetId() string

func (*ID) Marshal added in v0.19.0

func (m *ID) Marshal() (dAtA []byte, err error)

func (*ID) MarshalTo added in v0.19.0

func (m *ID) MarshalTo(dAtA []byte) (int, error)

func (*ID) ProtoMessage added in v0.19.0

func (*ID) ProtoMessage()

func (*ID) Reset added in v0.19.0

func (m *ID) Reset()

func (*ID) Size added in v0.19.0

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

func (*ID) String added in v0.19.0

func (m *ID) String() string

func (*ID) Unmarshal added in v0.19.0

func (m *ID) Unmarshal(dAtA []byte) error

type NodeInfo

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

func (*NodeInfo) Descriptor added in v0.19.0

func (*NodeInfo) Descriptor() ([]byte, []int)

func (*NodeInfo) GetId added in v0.19.0

func (m *NodeInfo) GetId() *ID

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) GetRemoteAddr

func (m *NodeInfo) GetRemoteAddr() string

func (*NodeInfo) GetVersion

func (m *NodeInfo) GetVersion() 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 (m *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"`
	XXX_unrecognized []byte         `json:"-"`
}

func (*PubKey) Descriptor added in v0.19.0

func (*PubKey) Descriptor() ([]byte, []int)

func (*PubKey) GetEd25519

func (m *PubKey) GetEd25519() *PubKeyEd25519

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 (m *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,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

func (*PubKeyEd25519) Descriptor added in v0.19.0

func (*PubKeyEd25519) Descriptor() ([]byte, []int)

func (*PubKeyEd25519) GetBytes

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

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 (m *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,omitempty"`
	LatestBlockHeight *int64    `protobuf:"varint,4,req,name=latestBlockHeight" json:"latestBlockHeight,omitempty"`
	LatestBlocktime   *int64    `protobuf:"varint,5,req,name=latestBlocktime" json:"latestBlocktime,omitempty"`
	XXX_unrecognized  []byte    `json:"-"`
}

func (*ResultStatus) Descriptor added in v0.19.0

func (*ResultStatus) Descriptor() ([]byte, []int)

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) 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 (m *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