Documentation ¶
Overview ¶
Package rpic_messages is a generated protocol buffer package.
It is generated from these files:
messages.proto
It has these top-level messages:
CtlMessage ImgMessage ClientInfoMessage ClientCommand
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CtlMessage_CtlType_name = map[int32]string{
0: "STOP",
1: "VEHICLE",
2: "CAMERA",
}
View Source
var CtlMessage_CtlType_value = map[string]int32{
"STOP": 0,
"VEHICLE": 1,
"CAMERA": 2,
}
View Source
var CtlMessage_Direction_name = map[int32]string{
0: "X",
1: "Y",
}
View Source
var CtlMessage_Direction_value = map[string]int32{
"X": 0,
"Y": 1,
}
Functions ¶
func EncodeCtlMessage ¶
func EncodeCtlMessage(msg *CtlMessage) ([]byte, error)
func EncodeImgMessage ¶
func EncodeImgMessage(msg *ImgMessage) ([]byte, error)
Types ¶
type ClientCommand ¶
type ClientCommand struct {
Command string `protobuf:"bytes,1,opt,name=command" json:"command,omitempty"`
}
func (*ClientCommand) Descriptor ¶
func (*ClientCommand) Descriptor() ([]byte, []int)
func (*ClientCommand) GetCommand ¶
func (m *ClientCommand) GetCommand() string
func (*ClientCommand) ProtoMessage ¶
func (*ClientCommand) ProtoMessage()
func (*ClientCommand) Reset ¶
func (m *ClientCommand) Reset()
func (*ClientCommand) String ¶
func (m *ClientCommand) String() string
type ClientInfoMessage ¶
type ClientInfoMessage struct {
ClientInfo string `protobuf:"bytes,1,opt,name=clientInfo" json:"clientInfo,omitempty"`
}
func (*ClientInfoMessage) Descriptor ¶
func (*ClientInfoMessage) Descriptor() ([]byte, []int)
func (*ClientInfoMessage) GetClientInfo ¶
func (m *ClientInfoMessage) GetClientInfo() string
func (*ClientInfoMessage) ProtoMessage ¶
func (*ClientInfoMessage) ProtoMessage()
func (*ClientInfoMessage) Reset ¶
func (m *ClientInfoMessage) Reset()
func (*ClientInfoMessage) String ¶
func (m *ClientInfoMessage) String() string
type CtlMessage ¶
type CtlMessage struct { Value int32 `protobuf:"varint,1,opt,name=value" json:"value,omitempty"` Direction CtlMessage_Direction `protobuf:"varint,2,opt,name=direction,enum=rpic_messages.CtlMessage_Direction" json:"direction,omitempty"` CtlType CtlMessage_CtlType `protobuf:"varint,3,opt,name=ctl_type,json=ctlType,enum=rpic_messages.CtlMessage_CtlType" json:"ctl_type,omitempty"` }
func DecodeCtlMessage ¶
func DecodeCtlMessage(data []byte, len int) (*CtlMessage, error)
func NewCtlMessage ¶
func NewCtlMessage(direction CtlMessage_Direction, ctltype CtlMessage_CtlType) *CtlMessage
func (*CtlMessage) Descriptor ¶
func (*CtlMessage) Descriptor() ([]byte, []int)
func (*CtlMessage) GetCtlType ¶
func (m *CtlMessage) GetCtlType() CtlMessage_CtlType
func (*CtlMessage) GetDirection ¶
func (m *CtlMessage) GetDirection() CtlMessage_Direction
func (*CtlMessage) GetValue ¶
func (m *CtlMessage) GetValue() int32
func (*CtlMessage) ProtoMessage ¶
func (*CtlMessage) ProtoMessage()
func (*CtlMessage) Reset ¶
func (m *CtlMessage) Reset()
func (*CtlMessage) String ¶
func (m *CtlMessage) String() string
type CtlMessage_CtlType ¶
type CtlMessage_CtlType int32
const ( CtlMessage_STOP CtlMessage_CtlType = 0 CtlMessage_VEHICLE CtlMessage_CtlType = 1 CtlMessage_CAMERA CtlMessage_CtlType = 2 )
func (CtlMessage_CtlType) EnumDescriptor ¶
func (CtlMessage_CtlType) EnumDescriptor() ([]byte, []int)
func (CtlMessage_CtlType) String ¶
func (x CtlMessage_CtlType) String() string
type CtlMessage_Direction ¶
type CtlMessage_Direction int32
const ( CtlMessage_X CtlMessage_Direction = 0 CtlMessage_Y CtlMessage_Direction = 1 )
func (CtlMessage_Direction) EnumDescriptor ¶
func (CtlMessage_Direction) EnumDescriptor() ([]byte, []int)
func (CtlMessage_Direction) String ¶
func (x CtlMessage_Direction) String() string
type ImgMessage ¶
type ImgMessage struct { Time *google_protobuf.Timestamp `protobuf:"bytes,1,opt,name=time" json:"time,omitempty"` Value string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"` }
func DecodeImgMessage ¶
func DecodeImgMessage(data []byte, len int) (*ImgMessage, error)
func NewImageMessage ¶
func NewImageMessage(image64 string) *ImgMessage
func (*ImgMessage) Descriptor ¶
func (*ImgMessage) Descriptor() ([]byte, []int)
func (*ImgMessage) GetTime ¶
func (m *ImgMessage) GetTime() *google_protobuf.Timestamp
func (*ImgMessage) GetValue ¶
func (m *ImgMessage) GetValue() string
func (*ImgMessage) ProtoMessage ¶
func (*ImgMessage) ProtoMessage()
func (*ImgMessage) Reset ¶
func (m *ImgMessage) Reset()
func (*ImgMessage) String ¶
func (m *ImgMessage) String() string
type RpicMessage ¶
type RpicMessage struct {
Wrapped interface{}
}
Click to show internal directories.
Click to hide internal directories.