udpmsg_pb

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2019 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package udpmsg_pb is a generated protocol buffer package.

It is generated from these files:

udpmsg.proto

It has these top-level messages:

UdpMessage

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthUdpmsg = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowUdpmsg   = fmt.Errorf("proto: integer overflow")
)
View Source
var UdpMessage_MessageType_name = map[int32]string{
	0: "PING",
	1: "PONG",
	2: "FINDNODE",
	3: "NEIGHBORS",
	4: "STALEADDRESS",
}
View Source
var UdpMessage_MessageType_value = map[string]int32{
	"PING":         0,
	"PONG":         1,
	"FINDNODE":     2,
	"NEIGHBORS":    3,
	"STALEADDRESS": 4,
}

Functions

This section is empty.

Types

type UdpMessage

type UdpMessage struct {
	MsgType          *UdpMessage_MessageType `protobuf:"varint,1,req,name=msgType,enum=udpmsg.pb.UdpMessage_MessageType" json:"msgType,omitempty"`
	Ping             *UdpMessage_Ping        `protobuf:"bytes,2,opt,name=ping" json:"ping,omitempty"`
	Pong             *UdpMessage_Pong        `protobuf:"bytes,3,opt,name=pong" json:"pong,omitempty"`
	FindNode         *UdpMessage_FindNode    `protobuf:"bytes,4,opt,name=findNode" json:"findNode,omitempty"`
	Neighbors        *UdpMessage_Neighbors   `protobuf:"bytes,5,opt,name=neighbors" json:"neighbors,omitempty"`
	XXX_unrecognized []byte                  `json:"-"`
}

func (*UdpMessage) Descriptor

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

func (*UdpMessage) GetFindNode

func (m *UdpMessage) GetFindNode() *UdpMessage_FindNode

func (*UdpMessage) GetMsgType

func (m *UdpMessage) GetMsgType() UdpMessage_MessageType

func (*UdpMessage) GetNeighbors

func (m *UdpMessage) GetNeighbors() *UdpMessage_Neighbors

func (*UdpMessage) GetPing

func (m *UdpMessage) GetPing() *UdpMessage_Ping

func (*UdpMessage) GetPong

func (m *UdpMessage) GetPong() *UdpMessage_Pong

func (*UdpMessage) Marshal

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

func (*UdpMessage) MarshalTo

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

func (*UdpMessage) ProtoMessage

func (*UdpMessage) ProtoMessage()

func (*UdpMessage) Reset

func (m *UdpMessage) Reset()

func (*UdpMessage) Size

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

func (*UdpMessage) String

func (m *UdpMessage) String() string

func (*UdpMessage) Unmarshal

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

type UdpMessage_FindNode

type UdpMessage_FindNode struct {
	From             *UdpMessage_Node           `protobuf:"bytes,1,req,name=From" json:"From,omitempty"`
	To               *UdpMessage_Node           `protobuf:"bytes,2,req,name=To" json:"To,omitempty"`
	MaskBits         *int32                     `protobuf:"varint,3,req,name=MaskBits" json:"MaskBits,omitempty"`
	FromSubNetId     []*UdpMessage_SubNetworkID `protobuf:"bytes,4,rep,name=FromSubNetId" json:"FromSubNetId,omitempty"`
	SubNetId         *UdpMessage_SubNetworkID   `protobuf:"bytes,5,req,name=SubNetId" json:"SubNetId,omitempty"`
	Target           []byte                     `protobuf:"bytes,6,req,name=Target" json:"Target,omitempty"`
	Id               *uint64                    `protobuf:"varint,7,req,name=Id" json:"Id,omitempty"`
	Expiration       *uint64                    `protobuf:"varint,8,opt,name=Expiration" json:"Expiration,omitempty"`
	Extra            []byte                     `protobuf:"bytes,9,opt,name=Extra" json:"Extra,omitempty"`
	XXX_unrecognized []byte                     `json:"-"`
}

func (*UdpMessage_FindNode) Descriptor

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

func (*UdpMessage_FindNode) GetExpiration

func (m *UdpMessage_FindNode) GetExpiration() uint64

func (*UdpMessage_FindNode) GetExtra

func (m *UdpMessage_FindNode) GetExtra() []byte

func (*UdpMessage_FindNode) GetFrom

func (m *UdpMessage_FindNode) GetFrom() *UdpMessage_Node

func (*UdpMessage_FindNode) GetFromSubNetId

func (m *UdpMessage_FindNode) GetFromSubNetId() []*UdpMessage_SubNetworkID

func (*UdpMessage_FindNode) GetId

func (m *UdpMessage_FindNode) GetId() uint64

func (*UdpMessage_FindNode) GetMaskBits

func (m *UdpMessage_FindNode) GetMaskBits() int32

func (*UdpMessage_FindNode) GetSubNetId

func (m *UdpMessage_FindNode) GetSubNetId() *UdpMessage_SubNetworkID

func (*UdpMessage_FindNode) GetTarget

func (m *UdpMessage_FindNode) GetTarget() []byte

func (*UdpMessage_FindNode) GetTo

func (*UdpMessage_FindNode) Marshal

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

func (*UdpMessage_FindNode) MarshalTo

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

func (*UdpMessage_FindNode) ProtoMessage

func (*UdpMessage_FindNode) ProtoMessage()

func (*UdpMessage_FindNode) Reset

func (m *UdpMessage_FindNode) Reset()

func (*UdpMessage_FindNode) Size

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

func (*UdpMessage_FindNode) String

func (m *UdpMessage_FindNode) String() string

func (*UdpMessage_FindNode) Unmarshal

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

type UdpMessage_MessageType

type UdpMessage_MessageType int32
const (
	UdpMessage_PING         UdpMessage_MessageType = 0
	UdpMessage_PONG         UdpMessage_MessageType = 1
	UdpMessage_FINDNODE     UdpMessage_MessageType = 2
	UdpMessage_NEIGHBORS    UdpMessage_MessageType = 3
	UdpMessage_STALEADDRESS UdpMessage_MessageType = 4
)

func (UdpMessage_MessageType) Enum

func (UdpMessage_MessageType) EnumDescriptor

func (UdpMessage_MessageType) EnumDescriptor() ([]byte, []int)

func (UdpMessage_MessageType) String

func (x UdpMessage_MessageType) String() string

func (*UdpMessage_MessageType) UnmarshalJSON

func (x *UdpMessage_MessageType) UnmarshalJSON(data []byte) error

type UdpMessage_Neighbors

type UdpMessage_Neighbors struct {
	From             *UdpMessage_Node           `protobuf:"bytes,1,req,name=From" json:"From,omitempty"`
	To               *UdpMessage_Node           `protobuf:"bytes,2,req,name=To" json:"To,omitempty"`
	FromSubNetId     []*UdpMessage_SubNetworkID `protobuf:"bytes,3,rep,name=FromSubNetId" json:"FromSubNetId,omitempty"`
	SubNetId         *UdpMessage_SubNetworkID   `protobuf:"bytes,5,req,name=SubNetId" json:"SubNetId,omitempty"`
	Nodes            []*UdpMessage_Node         `protobuf:"bytes,6,rep,name=Nodes" json:"Nodes,omitempty"`
	Id               *uint64                    `protobuf:"varint,4,req,name=Id" json:"Id,omitempty"`
	Expiration       *uint64                    `protobuf:"varint,7,opt,name=Expiration" json:"Expiration,omitempty"`
	Extra            []byte                     `protobuf:"bytes,8,opt,name=Extra" json:"Extra,omitempty"`
	XXX_unrecognized []byte                     `json:"-"`
}

func (*UdpMessage_Neighbors) Descriptor

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

func (*UdpMessage_Neighbors) GetExpiration

func (m *UdpMessage_Neighbors) GetExpiration() uint64

func (*UdpMessage_Neighbors) GetExtra

func (m *UdpMessage_Neighbors) GetExtra() []byte

func (*UdpMessage_Neighbors) GetFrom

func (m *UdpMessage_Neighbors) GetFrom() *UdpMessage_Node

func (*UdpMessage_Neighbors) GetFromSubNetId

func (m *UdpMessage_Neighbors) GetFromSubNetId() []*UdpMessage_SubNetworkID

func (*UdpMessage_Neighbors) GetId

func (m *UdpMessage_Neighbors) GetId() uint64

func (*UdpMessage_Neighbors) GetNodes

func (m *UdpMessage_Neighbors) GetNodes() []*UdpMessage_Node

func (*UdpMessage_Neighbors) GetSubNetId

func (*UdpMessage_Neighbors) GetTo

func (*UdpMessage_Neighbors) Marshal

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

func (*UdpMessage_Neighbors) MarshalTo

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

func (*UdpMessage_Neighbors) ProtoMessage

func (*UdpMessage_Neighbors) ProtoMessage()

func (*UdpMessage_Neighbors) Reset

func (m *UdpMessage_Neighbors) Reset()

func (*UdpMessage_Neighbors) Size

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

func (*UdpMessage_Neighbors) String

func (m *UdpMessage_Neighbors) String() string

func (*UdpMessage_Neighbors) Unmarshal

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

type UdpMessage_Node

type UdpMessage_Node struct {
	IP               []byte  `protobuf:"bytes,1,req,name=IP" json:"IP,omitempty"`
	UDP              *uint32 `protobuf:"varint,2,req,name=UDP" json:"UDP,omitempty"`
	TCP              *uint32 `protobuf:"varint,3,req,name=TCP" json:"TCP,omitempty"`
	NodeId           []byte  `protobuf:"bytes,4,req,name=NodeId" json:"NodeId,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*UdpMessage_Node) Descriptor

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

func (*UdpMessage_Node) GetIP

func (m *UdpMessage_Node) GetIP() []byte

func (*UdpMessage_Node) GetNodeId

func (m *UdpMessage_Node) GetNodeId() []byte

func (*UdpMessage_Node) GetTCP

func (m *UdpMessage_Node) GetTCP() uint32

func (*UdpMessage_Node) GetUDP

func (m *UdpMessage_Node) GetUDP() uint32

func (*UdpMessage_Node) Marshal

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

func (*UdpMessage_Node) MarshalTo

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

func (*UdpMessage_Node) ProtoMessage

func (*UdpMessage_Node) ProtoMessage()

func (*UdpMessage_Node) Reset

func (m *UdpMessage_Node) Reset()

func (*UdpMessage_Node) Size

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

func (*UdpMessage_Node) String

func (m *UdpMessage_Node) String() string

func (*UdpMessage_Node) Unmarshal

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

type UdpMessage_Ping

type UdpMessage_Ping struct {
	From             *UdpMessage_Node           `protobuf:"bytes,1,req,name=From" json:"From,omitempty"`
	To               *UdpMessage_Node           `protobuf:"bytes,2,req,name=To" json:"To,omitempty"`
	FromSubNetId     []*UdpMessage_SubNetworkID `protobuf:"bytes,3,rep,name=FromSubNetId" json:"FromSubNetId,omitempty"`
	SubNetId         *UdpMessage_SubNetworkID   `protobuf:"bytes,4,req,name=SubNetId" json:"SubNetId,omitempty"`
	Id               *uint64                    `protobuf:"varint,5,req,name=Id" json:"Id,omitempty"`
	Expiration       *uint64                    `protobuf:"varint,6,opt,name=Expiration" json:"Expiration,omitempty"`
	Extra            []byte                     `protobuf:"bytes,7,opt,name=Extra" json:"Extra,omitempty"`
	XXX_unrecognized []byte                     `json:"-"`
}

func (*UdpMessage_Ping) Descriptor

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

func (*UdpMessage_Ping) GetExpiration

func (m *UdpMessage_Ping) GetExpiration() uint64

func (*UdpMessage_Ping) GetExtra

func (m *UdpMessage_Ping) GetExtra() []byte

func (*UdpMessage_Ping) GetFrom

func (m *UdpMessage_Ping) GetFrom() *UdpMessage_Node

func (*UdpMessage_Ping) GetFromSubNetId

func (m *UdpMessage_Ping) GetFromSubNetId() []*UdpMessage_SubNetworkID

func (*UdpMessage_Ping) GetId

func (m *UdpMessage_Ping) GetId() uint64

func (*UdpMessage_Ping) GetSubNetId

func (m *UdpMessage_Ping) GetSubNetId() *UdpMessage_SubNetworkID

func (*UdpMessage_Ping) GetTo

func (m *UdpMessage_Ping) GetTo() *UdpMessage_Node

func (*UdpMessage_Ping) Marshal

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

func (*UdpMessage_Ping) MarshalTo

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

func (*UdpMessage_Ping) ProtoMessage

func (*UdpMessage_Ping) ProtoMessage()

func (*UdpMessage_Ping) Reset

func (m *UdpMessage_Ping) Reset()

func (*UdpMessage_Ping) Size

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

func (*UdpMessage_Ping) String

func (m *UdpMessage_Ping) String() string

func (*UdpMessage_Ping) Unmarshal

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

type UdpMessage_Pong

type UdpMessage_Pong struct {
	From             *UdpMessage_Node           `protobuf:"bytes,1,req,name=From" json:"From,omitempty"`
	To               *UdpMessage_Node           `protobuf:"bytes,2,req,name=To" json:"To,omitempty"`
	FromSubNetId     []*UdpMessage_SubNetworkID `protobuf:"bytes,3,rep,name=FromSubNetId" json:"FromSubNetId,omitempty"`
	SubNetId         *UdpMessage_SubNetworkID   `protobuf:"bytes,4,req,name=SubNetId" json:"SubNetId,omitempty"`
	Id               *uint64                    `protobuf:"varint,5,req,name=Id" json:"Id,omitempty"`
	Expiration       *uint64                    `protobuf:"varint,6,opt,name=Expiration" json:"Expiration,omitempty"`
	Extra            []byte                     `protobuf:"bytes,7,opt,name=Extra" json:"Extra,omitempty"`
	XXX_unrecognized []byte                     `json:"-"`
}

func (*UdpMessage_Pong) Descriptor

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

func (*UdpMessage_Pong) GetExpiration

func (m *UdpMessage_Pong) GetExpiration() uint64

func (*UdpMessage_Pong) GetExtra

func (m *UdpMessage_Pong) GetExtra() []byte

func (*UdpMessage_Pong) GetFrom

func (m *UdpMessage_Pong) GetFrom() *UdpMessage_Node

func (*UdpMessage_Pong) GetFromSubNetId

func (m *UdpMessage_Pong) GetFromSubNetId() []*UdpMessage_SubNetworkID

func (*UdpMessage_Pong) GetId

func (m *UdpMessage_Pong) GetId() uint64

func (*UdpMessage_Pong) GetSubNetId

func (m *UdpMessage_Pong) GetSubNetId() *UdpMessage_SubNetworkID

func (*UdpMessage_Pong) GetTo

func (m *UdpMessage_Pong) GetTo() *UdpMessage_Node

func (*UdpMessage_Pong) Marshal

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

func (*UdpMessage_Pong) MarshalTo

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

func (*UdpMessage_Pong) ProtoMessage

func (*UdpMessage_Pong) ProtoMessage()

func (*UdpMessage_Pong) Reset

func (m *UdpMessage_Pong) Reset()

func (*UdpMessage_Pong) Size

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

func (*UdpMessage_Pong) String

func (m *UdpMessage_Pong) String() string

func (*UdpMessage_Pong) Unmarshal

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

type UdpMessage_SubNetworkID

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

func (*UdpMessage_SubNetworkID) Descriptor

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

func (*UdpMessage_SubNetworkID) GetId

func (m *UdpMessage_SubNetworkID) GetId() []byte

func (*UdpMessage_SubNetworkID) Marshal

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

func (*UdpMessage_SubNetworkID) MarshalTo

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

func (*UdpMessage_SubNetworkID) ProtoMessage

func (*UdpMessage_SubNetworkID) ProtoMessage()

func (*UdpMessage_SubNetworkID) Reset

func (m *UdpMessage_SubNetworkID) Reset()

func (*UdpMessage_SubNetworkID) Size

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

func (*UdpMessage_SubNetworkID) String

func (m *UdpMessage_SubNetworkID) String() string

func (*UdpMessage_SubNetworkID) Unmarshal

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

Jump to

Keyboard shortcuts

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