message

package
v2.1.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2019 License: BSD-3-Clause Imports: 3 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package message is a generated protocol buffer package.

It is generated from these files:

common.proto
rpc.proto

It has these top-level messages:

Message
RpcMessage

Index

Constants

This section is empty.

Variables

View Source
var MsgPriority_name = map[int32]string{
	0: "PRIORITY0",
	1: "PRIORITY1",
	2: "PRIORITY2",
	3: "PRIORITY3",
	4: "PRIORITY4",
	5: "PRIORITY5",
	6: "PRIORITY6",
	7: "PRIORITY7",
	8: "PRIORITY8",
	9: "PRIORITY9",
}
View Source
var MsgPriority_value = map[string]int32{
	"PRIORITY0": 0,
	"PRIORITY1": 1,
	"PRIORITY2": 2,
	"PRIORITY3": 3,
	"PRIORITY4": 4,
	"PRIORITY5": 5,
	"PRIORITY6": 6,
	"PRIORITY7": 7,
	"PRIORITY8": 8,
	"PRIORITY9": 9,
}

Functions

This section is empty.

Types

type Message

type Message struct {
	MessageId string            `protobuf:"bytes,1,opt,name=MessageId" json:"MessageId,omitempty"`
	Priority  MsgPriority       `protobuf:"varint,2,opt,name=priority,enum=message.MsgPriority" json:"priority,omitempty"`
	Options   map[string]string `` /* 136-byte string literal not displayed */
	Body      []byte            `protobuf:"bytes,3,opt,name=Body,proto3" json:"Body,omitempty"`
}

func (*Message) Descriptor

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

func (*Message) GetBody

func (m *Message) GetBody() []byte

func (*Message) GetMessageId

func (m *Message) GetMessageId() string

func (*Message) GetOptions

func (m *Message) GetOptions() map[string]string

func (*Message) GetPriority

func (m *Message) GetPriority() MsgPriority

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) Reset

func (m *Message) Reset()

func (*Message) String

func (m *Message) String() string

type Meta

type Meta struct {
	MessageId string
	Src       string
	Priority  MsgPriority
	Options   map[string]string
}

func (*Meta) FormMessage

func (m *Meta) FormMessage(msg *Message)

type MsgPriority

type MsgPriority int32
const (
	MsgPriority_PRIORITY0 MsgPriority = 0
	MsgPriority_PRIORITY1 MsgPriority = 1
	MsgPriority_PRIORITY2 MsgPriority = 2
	MsgPriority_PRIORITY3 MsgPriority = 3
	MsgPriority_PRIORITY4 MsgPriority = 4
	MsgPriority_PRIORITY5 MsgPriority = 5
	MsgPriority_PRIORITY6 MsgPriority = 6
	MsgPriority_PRIORITY7 MsgPriority = 7
	MsgPriority_PRIORITY8 MsgPriority = 8
	MsgPriority_PRIORITY9 MsgPriority = 9
)

func (MsgPriority) EnumDescriptor

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

func (MsgPriority) String

func (x MsgPriority) String() string

type RpcMessage

type RpcMessage struct {
	MessageId string            `protobuf:"bytes,1,opt,name=MessageId" json:"MessageId,omitempty"`
	Code      uint32            `protobuf:"varint,2,opt,name=Code" json:"Code,omitempty"`
	Options   map[string]string `` /* 136-byte string literal not displayed */
	Body      []byte            `protobuf:"bytes,3,opt,name=Body,proto3" json:"Body,omitempty"`
}

func (*RpcMessage) Descriptor

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

func (*RpcMessage) GetBody

func (m *RpcMessage) GetBody() []byte

func (*RpcMessage) GetCode

func (m *RpcMessage) GetCode() uint32

func (*RpcMessage) GetMessageId

func (m *RpcMessage) GetMessageId() string

func (*RpcMessage) GetOptions

func (m *RpcMessage) GetOptions() map[string]string

func (*RpcMessage) ProtoMessage

func (*RpcMessage) ProtoMessage()

func (*RpcMessage) Reset

func (m *RpcMessage) Reset()

func (*RpcMessage) String

func (m *RpcMessage) String() string

Jump to

Keyboard shortcuts

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