protocol

package
v0.0.0-...-8c1276b Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Envelope

type Envelope struct {
	// Types that are valid to be assigned to Type:
	//	*Envelope_Ping
	//	*Envelope_Packet
	Type                 isEnvelope_Type `protobuf_oneof:"type"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*Envelope) Descriptor

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

func (*Envelope) GetPacket

func (m *Envelope) GetPacket() *MessagePacket

func (*Envelope) GetPing

func (m *Envelope) GetPing() *MessagePing

func (*Envelope) GetType

func (m *Envelope) GetType() isEnvelope_Type

func (*Envelope) ProtoMessage

func (*Envelope) ProtoMessage()

func (*Envelope) Reset

func (m *Envelope) Reset()

func (*Envelope) String

func (m *Envelope) String() string

func (*Envelope) XXX_DiscardUnknown

func (m *Envelope) XXX_DiscardUnknown()

func (*Envelope) XXX_Marshal

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

func (*Envelope) XXX_Merge

func (m *Envelope) XXX_Merge(src proto.Message)

func (*Envelope) XXX_OneofFuncs

func (*Envelope) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*Envelope) XXX_Size

func (m *Envelope) XXX_Size() int

func (*Envelope) XXX_Unmarshal

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

type Envelope_Packet

type Envelope_Packet struct {
	Packet *MessagePacket `protobuf:"bytes,2,opt,name=packet,proto3,oneof"`
}

type Envelope_Ping

type Envelope_Ping struct {
	Ping *MessagePing `protobuf:"bytes,1,opt,name=ping,proto3,oneof"`
}

type MessagePacket

type MessagePacket struct {
	Payload              []byte   `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*MessagePacket) Descriptor

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

func (*MessagePacket) GetPayload

func (m *MessagePacket) GetPayload() []byte

func (*MessagePacket) ProtoMessage

func (*MessagePacket) ProtoMessage()

func (*MessagePacket) Reset

func (m *MessagePacket) Reset()

func (*MessagePacket) String

func (m *MessagePacket) String() string

func (*MessagePacket) XXX_DiscardUnknown

func (m *MessagePacket) XXX_DiscardUnknown()

func (*MessagePacket) XXX_Marshal

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

func (*MessagePacket) XXX_Merge

func (m *MessagePacket) XXX_Merge(src proto.Message)

func (*MessagePacket) XXX_Size

func (m *MessagePacket) XXX_Size() int

func (*MessagePacket) XXX_Unmarshal

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

type MessagePing

type MessagePing struct {
	Timestamp            int64    `protobuf:"varint,1,opt,name=Timestamp,proto3" json:"Timestamp,omitempty"`
	LocalAddr            string   `protobuf:"bytes,2,opt,name=LocalAddr,proto3" json:"LocalAddr,omitempty"`
	LocalPrivateAddr     string   `protobuf:"bytes,3,opt,name=LocalPrivateAddr,proto3" json:"LocalPrivateAddr,omitempty"`
	IP                   string   `protobuf:"bytes,4,opt,name=IP,proto3" json:"IP,omitempty"`
	DC                   string   `protobuf:"bytes,5,opt,name=DC,proto3" json:"DC,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*MessagePing) Descriptor

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

func (*MessagePing) GetDC

func (m *MessagePing) GetDC() string

func (*MessagePing) GetIP

func (m *MessagePing) GetIP() string

func (*MessagePing) GetLocalAddr

func (m *MessagePing) GetLocalAddr() string

func (*MessagePing) GetLocalPrivateAddr

func (m *MessagePing) GetLocalPrivateAddr() string

func (*MessagePing) GetTimestamp

func (m *MessagePing) GetTimestamp() int64

func (*MessagePing) ProtoMessage

func (*MessagePing) ProtoMessage()

func (*MessagePing) Reset

func (m *MessagePing) Reset()

func (*MessagePing) String

func (m *MessagePing) String() string

func (*MessagePing) XXX_DiscardUnknown

func (m *MessagePing) XXX_DiscardUnknown()

func (*MessagePing) XXX_Marshal

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

func (*MessagePing) XXX_Merge

func (m *MessagePing) XXX_Merge(src proto.Message)

func (*MessagePing) XXX_Size

func (m *MessagePing) XXX_Size() int

func (*MessagePing) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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