Documentation ¶
Index ¶
- Variables
- func New(db db.DBType) http.Handler
- type Blob
- func (p Blob) Bytes() []byte
- func (p Blob) Clone() Blob
- func (p *Blob) Equal(that interface{}) bool
- func (p *Blob) EqualBlob(that Blob) bool
- func (p Blob) Marshal() ([]byte, error)
- func (p Blob) MarshalTo(data []byte) (n int, err error)
- func (p *Blob) Release()
- func (p *Blob) Size() int
- func (p *Blob) Unmarshal(data []byte) error
- type ChatMsg
- func (*ChatMsg) Descriptor() ([]byte, []int)
- func (this *ChatMsg) Equal(that interface{}) bool
- func (m *ChatMsg) GetMessage() string
- func (m *ChatMsg) GetTimestamp() int64
- func (m *ChatMsg) GetUsername() string
- func (this *ChatMsg) GoString() string
- func (m *ChatMsg) Marshal() (dAtA []byte, err error)
- func (m *ChatMsg) MarshalTo(dAtA []byte) (int, error)
- func (m *ChatMsg) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ChatMsg) ProtoMessage()
- func (m *ChatMsg) Reset()
- func (m *ChatMsg) Size() (n int)
- func (this *ChatMsg) String() string
- func (m *ChatMsg) Unmarshal(dAtA []byte) error
- func (m *ChatMsg) XXX_DiscardUnknown()
- func (m *ChatMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChatMsg) XXX_Merge(src proto.Message)
- func (m *ChatMsg) XXX_Size() int
- func (m *ChatMsg) XXX_Unmarshal(b []byte) error
- type EventMsg
- func (*EventMsg) Descriptor() ([]byte, []int)
- func (this *EventMsg) Equal(that interface{}) bool
- func (m *EventMsg) GetData() []float32
- func (m *EventMsg) GetFlags() []uint64
- func (m *EventMsg) GetId() uint64
- func (this *EventMsg) GoString() string
- func (m *EventMsg) Marshal() (dAtA []byte, err error)
- func (m *EventMsg) MarshalTo(dAtA []byte) (int, error)
- func (m *EventMsg) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventMsg) ProtoMessage()
- func (m *EventMsg) Reset()
- func (m *EventMsg) Size() (n int)
- func (this *EventMsg) String() string
- func (m *EventMsg) Unmarshal(dAtA []byte) error
- func (m *EventMsg) XXX_DiscardUnknown()
- func (m *EventMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventMsg) XXX_Merge(src proto.Message)
- func (m *EventMsg) XXX_Size() int
- func (m *EventMsg) XXX_Unmarshal(b []byte) error
- type Operator
- func (*Operator) Descriptor() ([]byte, []int)
- func (this *Operator) Equal(that interface{}) bool
- func (m *Operator) GetEvents() []EventMsg
- func (m *Operator) GetOWD() int64
- func (m *Operator) GetStream() []StreamMsg
- func (m *Operator) GetTimestamp() int64
- func (this *Operator) GoString() string
- func (m *Operator) Marshal() (dAtA []byte, err error)
- func (m *Operator) MarshalTo(dAtA []byte) (int, error)
- func (m *Operator) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Operator) ProtoMessage()
- func (m *Operator) Reset()
- func (m *Operator) Size() (n int)
- func (this *Operator) String() string
- func (m *Operator) Unmarshal(dAtA []byte) error
- func (m *Operator) XXX_DiscardUnknown()
- func (m *Operator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Operator) XXX_Merge(src proto.Message)
- func (m *Operator) XXX_Size() int
- func (m *Operator) XXX_Unmarshal(b []byte) error
- type Robot
- func (*Robot) Descriptor() ([]byte, []int)
- func (this *Robot) Equal(that interface{}) bool
- func (m *Robot) GetRobot() RobotMsg
- func (m *Robot) GetStatus() StatusMsg
- func (m *Robot) GetStream() []StreamMsg
- func (m *Robot) GetTimestamp() int64
- func (this *Robot) GoString() string
- func (m *Robot) Marshal() (dAtA []byte, err error)
- func (m *Robot) MarshalTo(dAtA []byte) (int, error)
- func (m *Robot) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Robot) ProtoMessage()
- func (m *Robot) Reset()
- func (m *Robot) Size() (n int)
- func (this *Robot) String() string
- func (m *Robot) Unmarshal(dAtA []byte) error
- func (m *Robot) XXX_DiscardUnknown()
- func (m *Robot) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Robot) XXX_Merge(src proto.Message)
- func (m *Robot) XXX_Size() int
- func (m *Robot) XXX_Unmarshal(b []byte) error
- type RobotMsg
- func (*RobotMsg) Descriptor() ([]byte, []int)
- func (this *RobotMsg) Equal(that interface{}) bool
- func (m *RobotMsg) GetCapabilities() []RobotMsg_Capability
- func (m *RobotMsg) GetDescription() string
- func (m *RobotMsg) GetId() string
- func (m *RobotMsg) GetName() string
- func (this *RobotMsg) GoString() string
- func (m *RobotMsg) Marshal() (dAtA []byte, err error)
- func (m *RobotMsg) MarshalTo(dAtA []byte) (int, error)
- func (m *RobotMsg) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RobotMsg) ProtoMessage()
- func (m *RobotMsg) Reset()
- func (m *RobotMsg) Size() (n int)
- func (this *RobotMsg) String() string
- func (m *RobotMsg) Unmarshal(dAtA []byte) error
- func (m *RobotMsg) XXX_DiscardUnknown()
- func (m *RobotMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RobotMsg) XXX_Merge(src proto.Message)
- func (m *RobotMsg) XXX_Size() int
- func (m *RobotMsg) XXX_Unmarshal(b []byte) error
- type RobotMsg_Capability
- func (*RobotMsg_Capability) Descriptor() ([]byte, []int)
- func (this *RobotMsg_Capability) Equal(that interface{}) bool
- func (m *RobotMsg_Capability) GetDescription() string
- func (m *RobotMsg_Capability) GetId() int64
- func (m *RobotMsg_Capability) GetName() string
- func (this *RobotMsg_Capability) GoString() string
- func (m *RobotMsg_Capability) Marshal() (dAtA []byte, err error)
- func (m *RobotMsg_Capability) MarshalTo(dAtA []byte) (int, error)
- func (m *RobotMsg_Capability) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RobotMsg_Capability) ProtoMessage()
- func (m *RobotMsg_Capability) Reset()
- func (m *RobotMsg_Capability) Size() (n int)
- func (this *RobotMsg_Capability) String() string
- func (m *RobotMsg_Capability) Unmarshal(dAtA []byte) error
- func (m *RobotMsg_Capability) XXX_DiscardUnknown()
- func (m *RobotMsg_Capability) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RobotMsg_Capability) XXX_Merge(src proto.Message)
- func (m *RobotMsg_Capability) XXX_Size() int
- func (m *RobotMsg_Capability) XXX_Unmarshal(b []byte) error
- type StatusMsg
- func (*StatusMsg) Descriptor() ([]byte, []int)
- func (this *StatusMsg) Equal(that interface{}) bool
- func (m *StatusMsg) GetBattery() float32
- func (m *StatusMsg) GetHealth() float32
- func (m *StatusMsg) GetJitter() int64
- func (m *StatusMsg) GetOWD() int64
- func (m *StatusMsg) GetRTT() int64
- func (this *StatusMsg) GoString() string
- func (m *StatusMsg) Marshal() (dAtA []byte, err error)
- func (m *StatusMsg) MarshalTo(dAtA []byte) (int, error)
- func (m *StatusMsg) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*StatusMsg) ProtoMessage()
- func (m *StatusMsg) Reset()
- func (m *StatusMsg) Size() (n int)
- func (this *StatusMsg) String() string
- func (m *StatusMsg) Unmarshal(dAtA []byte) error
- func (m *StatusMsg) XXX_DiscardUnknown()
- func (m *StatusMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StatusMsg) XXX_Merge(src proto.Message)
- func (m *StatusMsg) XXX_Size() int
- func (m *StatusMsg) XXX_Unmarshal(b []byte) error
- type StreamMsg
- func (*StreamMsg) Descriptor() ([]byte, []int)
- func (this *StreamMsg) Equal(that interface{}) bool
- func (m *StreamMsg) GetType() StreamType
- func (this *StreamMsg) GoString() string
- func (m *StreamMsg) Marshal() (dAtA []byte, err error)
- func (m *StreamMsg) MarshalTo(dAtA []byte) (int, error)
- func (m *StreamMsg) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*StreamMsg) ProtoMessage()
- func (m *StreamMsg) Reset()
- func (m *StreamMsg) Size() (n int)
- func (this *StreamMsg) String() string
- func (m *StreamMsg) Unmarshal(dAtA []byte) error
- func (m *StreamMsg) XXX_DiscardUnknown()
- func (m *StreamMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StreamMsg) XXX_Merge(src proto.Message)
- func (m *StreamMsg) XXX_Size() int
- func (m *StreamMsg) XXX_Unmarshal(b []byte) error
- type StreamType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthSchema = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowSchema = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupSchema = fmt.Errorf("proto: unexpected end of group") )
View Source
var StreamType_name = map[int32]string{
0: "NONE",
1: "VIDEO_RAW",
2: "VIDEO_PNG",
3: "VIDEO_JPG",
4: "VIDEO_H264",
5: "VIDEO_H265",
16: "FEATURES_DNN",
17: "FEATURES_CV",
32: "AUDIO_PCM",
33: "AUDIO_MP3",
34: "AUDIO_OGG",
64: "SENSORS_RAW",
}
View Source
var StreamType_value = map[string]int32{
"NONE": 0,
"VIDEO_RAW": 1,
"VIDEO_PNG": 2,
"VIDEO_JPG": 3,
"VIDEO_H264": 4,
"VIDEO_H265": 5,
"FEATURES_DNN": 16,
"FEATURES_CV": 17,
"AUDIO_PCM": 32,
"AUDIO_MP3": 33,
"AUDIO_OGG": 34,
"SENSORS_RAW": 64,
}
Functions ¶
Types ¶
type ChatMsg ¶
type ChatMsg struct { Timestamp int64 `protobuf:"varint,1,opt,name=Timestamp,proto3" json:"Timestamp,omitempty"` Username string `protobuf:"bytes,2,opt,name=Username,proto3" json:"Username,omitempty"` Message string `protobuf:"bytes,3,opt,name=Message,proto3" json:"Message,omitempty"` }
func NewPopulatedChatMsg ¶
func (*ChatMsg) Descriptor ¶
func (*ChatMsg) GetMessage ¶
func (*ChatMsg) GetTimestamp ¶
func (*ChatMsg) GetUsername ¶
func (*ChatMsg) MarshalToSizedBuffer ¶
func (*ChatMsg) ProtoMessage ¶
func (*ChatMsg) ProtoMessage()
func (*ChatMsg) XXX_DiscardUnknown ¶
func (m *ChatMsg) XXX_DiscardUnknown()
func (*ChatMsg) XXX_Marshal ¶
func (*ChatMsg) XXX_Unmarshal ¶
type EventMsg ¶
type EventMsg struct { Id uint64 `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"` Flags []uint64 `protobuf:"varint,2,rep,packed,name=Flags,proto3" json:"Flags,omitempty"` Data []float32 `protobuf:"fixed32,3,rep,packed,name=Data,proto3" json:"Data,omitempty"` }
func NewPopulatedEventMsg ¶
func (*EventMsg) Descriptor ¶
func (*EventMsg) MarshalToSizedBuffer ¶
func (*EventMsg) ProtoMessage ¶
func (*EventMsg) ProtoMessage()
func (*EventMsg) XXX_DiscardUnknown ¶
func (m *EventMsg) XXX_DiscardUnknown()
func (*EventMsg) XXX_Marshal ¶
func (*EventMsg) XXX_Unmarshal ¶
type Operator ¶
type Operator struct { Timestamp int64 `protobuf:"varint,1,opt,name=Timestamp,proto3" json:"Timestamp,omitempty"` OWD int64 `protobuf:"varint,2,opt,name=OWD,proto3" json:"OWD,omitempty"` Stream []StreamMsg `protobuf:"bytes,3,rep,name=Stream,proto3" json:"Stream"` Events []EventMsg `protobuf:"bytes,5,rep,name=Events,proto3" json:"Events"` }
Message coming from either the Governor or Operator
func NewPopulatedOperator ¶
func (*Operator) Descriptor ¶
func (*Operator) GetTimestamp ¶
func (*Operator) MarshalToSizedBuffer ¶
func (*Operator) ProtoMessage ¶
func (*Operator) ProtoMessage()
func (*Operator) XXX_DiscardUnknown ¶
func (m *Operator) XXX_DiscardUnknown()
func (*Operator) XXX_Marshal ¶
func (*Operator) XXX_Unmarshal ¶
type Robot ¶
type Robot struct { Timestamp int64 `protobuf:"varint,1,opt,name=Timestamp,proto3" json:"Timestamp,omitempty"` Robot RobotMsg `protobuf:"bytes,2,opt,name=Robot,proto3" json:"Robot"` Status StatusMsg `protobuf:"bytes,3,opt,name=Status,proto3" json:"Status"` Stream []StreamMsg `protobuf:"bytes,4,rep,name=Stream,proto3" json:"Stream"` }
Message coming from the robot
func NewPopulatedRobot ¶
func (*Robot) Descriptor ¶
func (*Robot) GetTimestamp ¶
func (*Robot) ProtoMessage ¶
func (*Robot) ProtoMessage()
func (*Robot) XXX_DiscardUnknown ¶
func (m *Robot) XXX_DiscardUnknown()
func (*Robot) XXX_Marshal ¶
func (*Robot) XXX_Unmarshal ¶
type RobotMsg ¶
type RobotMsg struct { Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"` Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"` Description string `protobuf:"bytes,3,opt,name=Description,proto3" json:"Description,omitempty"` Capabilities []RobotMsg_Capability `protobuf:"bytes,4,rep,name=Capabilities,proto3" json:"Capabilities"` }
func NewPopulatedRobotMsg ¶
func (*RobotMsg) Descriptor ¶
func (*RobotMsg) GetCapabilities ¶
func (m *RobotMsg) GetCapabilities() []RobotMsg_Capability
func (*RobotMsg) GetDescription ¶
func (*RobotMsg) MarshalToSizedBuffer ¶
func (*RobotMsg) ProtoMessage ¶
func (*RobotMsg) ProtoMessage()
func (*RobotMsg) XXX_DiscardUnknown ¶
func (m *RobotMsg) XXX_DiscardUnknown()
func (*RobotMsg) XXX_Marshal ¶
func (*RobotMsg) XXX_Unmarshal ¶
type RobotMsg_Capability ¶
type RobotMsg_Capability struct { // NOTE: // Negative Id refers to stream types: // streamType: abs(Id) // Positive Id refers to Event types. Id int64 `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"` Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"` Description string `protobuf:"bytes,3,opt,name=Description,proto3" json:"Description,omitempty"` }
func NewPopulatedRobotMsg_Capability ¶
func NewPopulatedRobotMsg_Capability(r randySchema, easy bool) *RobotMsg_Capability
func (*RobotMsg_Capability) Descriptor ¶
func (*RobotMsg_Capability) Descriptor() ([]byte, []int)
func (*RobotMsg_Capability) Equal ¶
func (this *RobotMsg_Capability) Equal(that interface{}) bool
func (*RobotMsg_Capability) GetDescription ¶
func (m *RobotMsg_Capability) GetDescription() string
func (*RobotMsg_Capability) GetId ¶
func (m *RobotMsg_Capability) GetId() int64
func (*RobotMsg_Capability) GetName ¶
func (m *RobotMsg_Capability) GetName() string
func (*RobotMsg_Capability) GoString ¶
func (this *RobotMsg_Capability) GoString() string
func (*RobotMsg_Capability) Marshal ¶
func (m *RobotMsg_Capability) Marshal() (dAtA []byte, err error)
func (*RobotMsg_Capability) MarshalTo ¶
func (m *RobotMsg_Capability) MarshalTo(dAtA []byte) (int, error)
func (*RobotMsg_Capability) MarshalToSizedBuffer ¶
func (m *RobotMsg_Capability) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RobotMsg_Capability) ProtoMessage ¶
func (*RobotMsg_Capability) ProtoMessage()
func (*RobotMsg_Capability) Reset ¶
func (m *RobotMsg_Capability) Reset()
func (*RobotMsg_Capability) Size ¶
func (m *RobotMsg_Capability) Size() (n int)
func (*RobotMsg_Capability) String ¶
func (this *RobotMsg_Capability) String() string
func (*RobotMsg_Capability) Unmarshal ¶
func (m *RobotMsg_Capability) Unmarshal(dAtA []byte) error
func (*RobotMsg_Capability) XXX_DiscardUnknown ¶
func (m *RobotMsg_Capability) XXX_DiscardUnknown()
func (*RobotMsg_Capability) XXX_Marshal ¶
func (m *RobotMsg_Capability) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RobotMsg_Capability) XXX_Merge ¶
func (m *RobotMsg_Capability) XXX_Merge(src proto.Message)
func (*RobotMsg_Capability) XXX_Size ¶
func (m *RobotMsg_Capability) XXX_Size() int
func (*RobotMsg_Capability) XXX_Unmarshal ¶
func (m *RobotMsg_Capability) XXX_Unmarshal(b []byte) error
type StatusMsg ¶
type StatusMsg struct { OWD int64 `protobuf:"varint,1,opt,name=OWD,proto3" json:"OWD,omitempty"` RTT int64 `protobuf:"varint,2,opt,name=RTT,proto3" json:"RTT,omitempty"` Jitter int64 `protobuf:"varint,3,opt,name=Jitter,proto3" json:"Jitter,omitempty"` Battery float32 `protobuf:"fixed32,4,opt,name=Battery,proto3" json:"Battery,omitempty"` Health float32 `protobuf:"fixed32,5,opt,name=Health,proto3" json:"Health,omitempty"` }
func NewPopulatedStatusMsg ¶
func (*StatusMsg) Descriptor ¶
func (*StatusMsg) GetBattery ¶
func (*StatusMsg) MarshalToSizedBuffer ¶
func (*StatusMsg) ProtoMessage ¶
func (*StatusMsg) ProtoMessage()
func (*StatusMsg) XXX_DiscardUnknown ¶
func (m *StatusMsg) XXX_DiscardUnknown()
func (*StatusMsg) XXX_Marshal ¶
func (*StatusMsg) XXX_Unmarshal ¶
type StreamMsg ¶
type StreamMsg struct { Type StreamType `protobuf:"varint,1,opt,name=Type,proto3,enum=rpc.StreamType" json:"Type,omitempty"` Data Blob `protobuf:"bytes,2,opt,name=Data,proto3,customtype=Blob" json:"Data"` }
func NewPopulatedStreamMsg ¶
func (*StreamMsg) Descriptor ¶
func (*StreamMsg) GetType ¶
func (m *StreamMsg) GetType() StreamType
func (*StreamMsg) MarshalToSizedBuffer ¶
func (*StreamMsg) ProtoMessage ¶
func (*StreamMsg) ProtoMessage()
func (*StreamMsg) XXX_DiscardUnknown ¶
func (m *StreamMsg) XXX_DiscardUnknown()
func (*StreamMsg) XXX_Marshal ¶
func (*StreamMsg) XXX_Unmarshal ¶
type StreamType ¶
type StreamType int32
const ( StreamType_NONE StreamType = 0 StreamType_VIDEO_RAW StreamType = 1 StreamType_VIDEO_PNG StreamType = 2 StreamType_VIDEO_JPG StreamType = 3 StreamType_VIDEO_H264 StreamType = 4 StreamType_VIDEO_H265 StreamType = 5 StreamType_FEATURES_DNN StreamType = 16 StreamType_FEATURES_CV StreamType = 17 StreamType_AUDIO_PCM StreamType = 32 StreamType_AUDIO_MP3 StreamType = 33 StreamType_AUDIO_OGG StreamType = 34 StreamType_SENSORS_RAW StreamType = 64 )
func (StreamType) EnumDescriptor ¶
func (StreamType) EnumDescriptor() ([]byte, []int)
func (StreamType) String ¶
func (x StreamType) String() string
Click to show internal directories.
Click to hide internal directories.