Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Packet ¶
type Packet struct {
Payload []byte
VmId int32
Kind PacketKind
}
func (*Packet) CommandResponseUnmarshal ¶
func (p *Packet) CommandResponseUnmarshal() *vender_api.Response
func (*Packet) MessageFromRobotseUnmarshal ¶
func (p *Packet) MessageFromRobotseUnmarshal() *vender_api.FromRoboMessage
type PacketKind ¶
type PacketKind uint8
const ( PacketInvalid PacketKind = iota PacketConnect PacketState PacketTelemetry PacketCommand PacketCommandReply PacketCommandAccepted FromRoboPacketCommandDone FromRobo )
func (PacketKind) String ¶
func (i PacketKind) String() string
type Teler ¶
type Teler interface {
Init(context.Context, *log2.Log, tele_config.Config) error
Close() error
Addrs() []string
Chan() <-chan Packet
CommandTx(vmid int32, c *vender_api.Command)
SendCommand(vmid int32, c *vender_api.Command)
SendToRobo(vmid int32, m *vender_api.ToRoboMessage)
}
Click to show internal directories.
Click to hide internal directories.