netpb

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2018 License: LGPL-3.0 Imports: 5 Imported by: 1

Documentation

Overview

Package netpb is a generated protocol buffer package.

It is generated from these files:

message.proto

It has these top-level messages:

Hello
OK
Peers
PeerInfo

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hello

type Hello struct {
	NodeId        string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
	ClientVersion string `protobuf:"bytes,2,opt,name=client_version,json=clientVersion,proto3" json:"client_version,omitempty"`
}

func HelloMessageFromProto added in v1.0.0

func HelloMessageFromProto(data []byte) (*Hello, error)

HelloMessageFromProto parse the data into Hello message

func (*Hello) Descriptor

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

func (*Hello) GetClientVersion

func (m *Hello) GetClientVersion() string

func (*Hello) GetNodeId

func (m *Hello) GetNodeId() string

func (*Hello) ProtoMessage

func (*Hello) ProtoMessage()

func (*Hello) Reset

func (m *Hello) Reset()

func (*Hello) String

func (m *Hello) String() string

type OK added in v1.0.0

type OK struct {
	NodeId        string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
	ClientVersion string `protobuf:"bytes,2,opt,name=client_version,json=clientVersion,proto3" json:"client_version,omitempty"`
}

func OKMessageFromProto added in v1.0.0

func OKMessageFromProto(data []byte) (*OK, error)

OKMessageFromProto parse the data into OK message

func (*OK) Descriptor added in v1.0.0

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

func (*OK) GetClientVersion added in v1.0.0

func (m *OK) GetClientVersion() string

func (*OK) GetNodeId added in v1.0.0

func (m *OK) GetNodeId() string

func (*OK) ProtoMessage added in v1.0.0

func (*OK) ProtoMessage()

func (*OK) Reset added in v1.0.0

func (m *OK) Reset()

func (*OK) String added in v1.0.0

func (m *OK) String() string

type PeerInfo

type PeerInfo struct {
	Id    string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Addrs []string `protobuf:"bytes,2,rep,name=addrs" json:"addrs,omitempty"`
}

func (*PeerInfo) Descriptor

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

func (*PeerInfo) GetAddrs

func (m *PeerInfo) GetAddrs() []string

func (*PeerInfo) GetId

func (m *PeerInfo) GetId() string

func (*PeerInfo) ProtoMessage

func (*PeerInfo) ProtoMessage()

func (*PeerInfo) Reset

func (m *PeerInfo) Reset()

func (*PeerInfo) String

func (m *PeerInfo) String() string

type Peers

type Peers struct {
	Peers []*PeerInfo `protobuf:"bytes,1,rep,name=peers" json:"peers,omitempty"`
}

func (*Peers) Descriptor

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

func (*Peers) GetPeers

func (m *Peers) GetPeers() []*PeerInfo

func (*Peers) ProtoMessage

func (*Peers) ProtoMessage()

func (*Peers) Reset

func (m *Peers) Reset()

func (*Peers) String

func (m *Peers) String() string

Jump to

Keyboard shortcuts

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