packet

package
v0.0.0-...-55054b2 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package packet is a generated protocol buffer package.

It is generated from these files:

packet.proto

It has these top-level messages:

Packet

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Write

func Write(writer io.Writer, packetType uint64, packet proto.Message) error

Types

type Packet

type Packet struct {
	// Type
	Type uint64 `protobuf:"varint,1,opt,name=type,proto3" json:"type,omitempty"`
	// Any the inside packet
	Message *google_protobuf.Any `protobuf:"bytes,3,opt,name=message" json:"message,omitempty"`
}
var (
	NilPacket Packet
)

func Read

func Read(reader io.Reader) (Packet, error)

func (*Packet) Descriptor

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

func (*Packet) GetMessage

func (m *Packet) GetMessage() *google_protobuf.Any

func (*Packet) GetType

func (m *Packet) GetType() uint64

func (*Packet) ProtoMessage

func (*Packet) ProtoMessage()

func (*Packet) Reset

func (m *Packet) Reset()

func (*Packet) String

func (m *Packet) String() string

Jump to

Keyboard shortcuts

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