model

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package model 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

View Source
var Packet_Type_name = map[int32]string{
	0: "NEW",
	1: "ACCEPT",
	2: "DATA",
	3: "CLOSE",
}
View Source
var Packet_Type_value = map[string]int32{
	"NEW":    0,
	"ACCEPT": 1,
	"DATA":   2,
	"CLOSE":  3,
}

Functions

This section is empty.

Types

type Packet

type Packet struct {
	Type    Packet_Type `protobuf:"varint,1,opt,name=type,enum=model.Packet_Type" json:"type,omitempty"`
	Payload []byte      `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
}

func (*Packet) Descriptor

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

func (*Packet) MarshalBinary

func (p *Packet) MarshalBinary() ([]byte, error)

func (*Packet) ProtoMessage

func (*Packet) ProtoMessage()

func (*Packet) Reset

func (m *Packet) Reset()

func (*Packet) String

func (m *Packet) String() string

func (*Packet) UnmarshalBinary

func (p *Packet) UnmarshalBinary(data []byte) error

type Packet_Type

type Packet_Type int32
const (
	Packet_NEW    Packet_Type = 0
	Packet_ACCEPT Packet_Type = 1
	Packet_DATA   Packet_Type = 2
	Packet_CLOSE  Packet_Type = 3
)

func (Packet_Type) EnumDescriptor

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

func (Packet_Type) String

func (x Packet_Type) String() string

Jump to

Keyboard shortcuts

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