mux_pb

package
v0.0.0-...-e4696f9 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2014 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package mux_pb is a generated protocol buffer package.

It is generated from these files:

mux.proto

It has these top-level messages:

PBProtocolMessage

Index

Constants

This section is empty.

Variables

View Source
var ProtocolID_name = map[int32]string{
	0: "Test",
	1: "Identify",
	2: "Routing",
	3: "Exchange",
	4: "Diagnostic",
}
View Source
var ProtocolID_value = map[string]int32{
	"Test":       0,
	"Identify":   1,
	"Routing":    2,
	"Exchange":   3,
	"Diagnostic": 4,
}

Functions

This section is empty.

Types

type PBProtocolMessage

type PBProtocolMessage struct {
	ProtocolID       *ProtocolID `protobuf:"varint,1,req,enum=mux.pb.ProtocolID" json:"ProtocolID,omitempty"`
	Data             []byte      `protobuf:"bytes,2,req" json:"Data,omitempty"`
	XXX_unrecognized []byte      `json:"-"`
}

func (*PBProtocolMessage) GetData

func (m *PBProtocolMessage) GetData() []byte

func (*PBProtocolMessage) GetProtocolID

func (m *PBProtocolMessage) GetProtocolID() ProtocolID

func (*PBProtocolMessage) ProtoMessage

func (*PBProtocolMessage) ProtoMessage()

func (*PBProtocolMessage) Reset

func (m *PBProtocolMessage) Reset()

func (*PBProtocolMessage) String

func (m *PBProtocolMessage) String() string

type ProtocolID

type ProtocolID int32
const (
	ProtocolID_Test       ProtocolID = 0
	ProtocolID_Identify   ProtocolID = 1
	ProtocolID_Routing    ProtocolID = 2
	ProtocolID_Exchange   ProtocolID = 3
	ProtocolID_Diagnostic ProtocolID = 4
)

func (ProtocolID) Enum

func (x ProtocolID) Enum() *ProtocolID

func (ProtocolID) String

func (x ProtocolID) String() string

func (*ProtocolID) UnmarshalJSON

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

Jump to

Keyboard shortcuts

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