protocol

package
v0.0.0-...-1731d0d Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 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_OneofWrappers

func (*Envelope) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers 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"`
	PublicAddrs          []string `protobuf:"bytes,2,rep,name=PublicAddrs,proto3" json:"PublicAddrs,omitempty"`
	IP                   string   `protobuf:"bytes,4,opt,name=IP,proto3" json:"IP,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*MessagePing) Descriptor

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

func (*MessagePing) GetIP

func (m *MessagePing) GetIP() string

func (*MessagePing) GetPublicAddrs

func (m *MessagePing) GetPublicAddrs() []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