protobuf

package
v0.5.1-alpha-dev Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

This section is empty.

Types

type NodeData

type NodeData struct {
	PublicKey     []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	WebsocketPort uint32 `protobuf:"varint,2,opt,name=websocket_port,json=websocketPort,proto3" json:"websocket_port,omitempty"`
	JsonRpcPort   uint32 `protobuf:"varint,3,opt,name=json_rpc_port,json=jsonRpcPort,proto3" json:"json_rpc_port,omitempty"`
}

func NewPopulatedNodeData

func NewPopulatedNodeData(r randyNode, easy bool) *NodeData

func (*NodeData) Descriptor

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

func (*NodeData) Equal

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

func (*NodeData) GetJsonRpcPort

func (m *NodeData) GetJsonRpcPort() uint32

func (*NodeData) GetPublicKey

func (m *NodeData) GetPublicKey() []byte

func (*NodeData) GetWebsocketPort

func (m *NodeData) GetWebsocketPort() uint32

func (*NodeData) GoString

func (this *NodeData) GoString() string

func (*NodeData) Marshal

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

func (*NodeData) MarshalTo

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

func (*NodeData) ProtoMessage

func (*NodeData) ProtoMessage()

func (*NodeData) Reset

func (m *NodeData) Reset()

func (*NodeData) Size

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

func (*NodeData) String

func (this *NodeData) String() string

func (*NodeData) Unmarshal

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

func (*NodeData) XXX_DiscardUnknown

func (m *NodeData) XXX_DiscardUnknown()

func (*NodeData) XXX_Marshal

func (m *NodeData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NodeData) XXX_Merge

func (dst *NodeData) XXX_Merge(src proto.Message)

func (*NodeData) XXX_Size

func (m *NodeData) XXX_Size() int

func (*NodeData) XXX_Unmarshal

func (m *NodeData) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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