Documentation
¶
Index ¶
- Variables
- type AudioDevice
- func (*AudioDevice) Descriptor() ([]byte, []int)deprecated
- func (x *AudioDevice) GetId() string
- func (x *AudioDevice) GetIsInput() bool
- func (x *AudioDevice) GetIsOutput() bool
- func (x *AudioDevice) GetName() string
- func (*AudioDevice) ProtoMessage()
- func (x *AudioDevice) ProtoReflect() protoreflect.Message
- func (x *AudioDevice) Reset()
- func (x *AudioDevice) String() string
- type AudioDeviceListRequest
- type AudioDeviceListResponse
- func (*AudioDeviceListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AudioDeviceListResponse) GetDevices() []*AudioDevice
- func (*AudioDeviceListResponse) ProtoMessage()
- func (x *AudioDeviceListResponse) ProtoReflect() protoreflect.Message
- func (x *AudioDeviceListResponse) Reset()
- func (x *AudioDeviceListResponse) String() string
- type AudioRouteChanged
- func (*AudioRouteChanged) Descriptor() ([]byte, []int)deprecated
- func (x *AudioRouteChanged) GetCurrentInputs() []*AudioDevice
- func (x *AudioRouteChanged) GetCurrentOutputs() []*AudioDevice
- func (*AudioRouteChanged) ProtoMessage()
- func (x *AudioRouteChanged) ProtoReflect() protoreflect.Message
- func (x *AudioRouteChanged) Reset()
- func (x *AudioRouteChanged) String() string
- type BatteryState
- func (*BatteryState) Descriptor() ([]byte, []int)deprecated
- func (x *BatteryState) GetCharging() bool
- func (x *BatteryState) GetPercent() float32
- func (x *BatteryState) GetTempDecic() int32
- func (*BatteryState) ProtoMessage()
- func (x *BatteryState) ProtoReflect() protoreflect.Message
- func (x *BatteryState) Reset()
- func (x *BatteryState) String() string
- type Error
- type ErrorCode
- type GpsFix
- func (*GpsFix) Descriptor() ([]byte, []int)deprecated
- func (x *GpsFix) GetAltM() float64
- func (x *GpsFix) GetCourseDeg() float64
- func (x *GpsFix) GetHdop() float64
- func (x *GpsFix) GetLat() float64
- func (x *GpsFix) GetLon() float64
- func (x *GpsFix) GetNumSats() uint32
- func (x *GpsFix) GetSource() GpsSource
- func (x *GpsFix) GetSpeedMps() float64
- func (x *GpsFix) GetTimeUnixMs() int64
- func (*GpsFix) ProtoMessage()
- func (x *GpsFix) ProtoReflect() protoreflect.Message
- func (x *GpsFix) Reset()
- func (x *GpsFix) String() string
- type GpsSource
- type Hello
- func (*Hello) Descriptor() ([]byte, []int)deprecated
- func (x *Hello) GetClientVersion() string
- func (x *Hello) GetSchemaVersion() uint32
- func (x *Hello) GetServerVersion() string
- func (*Hello) ProtoMessage()
- func (x *Hello) ProtoReflect() protoreflect.Message
- func (x *Hello) Reset()
- func (x *Hello) String() string
- type PlatformMessage
- func (*PlatformMessage) Descriptor() ([]byte, []int)deprecated
- func (x *PlatformMessage) GetAudioListReq() *AudioDeviceListRequest
- func (x *PlatformMessage) GetAudioListResp() *AudioDeviceListResponse
- func (x *PlatformMessage) GetAudioRouteChanged() *AudioRouteChanged
- func (x *PlatformMessage) GetBatteryState() *BatteryState
- func (x *PlatformMessage) GetBody() isPlatformMessage_Body
- func (x *PlatformMessage) GetError() *Error
- func (x *PlatformMessage) GetGpsFix() *GpsFix
- func (x *PlatformMessage) GetHello() *Hello
- func (x *PlatformMessage) GetPttAck() *PttAck
- func (x *PlatformMessage) GetPttKeyReq() *PttKeyRequest
- func (x *PlatformMessage) GetPttUnkeyReq() *PttUnkeyRequest
- func (x *PlatformMessage) GetUsbAttach() *UsbAttach
- func (x *PlatformMessage) GetUsbDetach() *UsbDetach
- func (x *PlatformMessage) GetUsbListReq() *UsbDeviceListRequest
- func (x *PlatformMessage) GetUsbListResp() *UsbDeviceListResponse
- func (x *PlatformMessage) GetUsbSelectReq() *UsbSelectRequest
- func (x *PlatformMessage) GetUsbSelectResp() *UsbSelectResponse
- func (*PlatformMessage) ProtoMessage()
- func (x *PlatformMessage) ProtoReflect() protoreflect.Message
- func (x *PlatformMessage) Reset()
- func (x *PlatformMessage) String() string
- type PlatformMessage_AudioListReq
- type PlatformMessage_AudioListResp
- type PlatformMessage_AudioRouteChanged
- type PlatformMessage_BatteryState
- type PlatformMessage_Error
- type PlatformMessage_GpsFix
- type PlatformMessage_Hello
- type PlatformMessage_PttAck
- type PlatformMessage_PttKeyReq
- type PlatformMessage_PttUnkeyReq
- type PlatformMessage_UsbAttach
- type PlatformMessage_UsbDetach
- type PlatformMessage_UsbListReq
- type PlatformMessage_UsbListResp
- type PlatformMessage_UsbSelectReq
- type PlatformMessage_UsbSelectResp
- type PttAck
- type PttKeyRequest
- func (*PttKeyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PttKeyRequest) GetHandleId() string
- func (x *PttKeyRequest) GetMethod() PttMethod
- func (*PttKeyRequest) ProtoMessage()
- func (x *PttKeyRequest) ProtoReflect() protoreflect.Message
- func (x *PttKeyRequest) Reset()
- func (x *PttKeyRequest) String() string
- type PttMethod
- type PttUnkeyRequest
- func (*PttUnkeyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PttUnkeyRequest) GetHandleId() string
- func (x *PttUnkeyRequest) GetMethod() PttMethod
- func (*PttUnkeyRequest) ProtoMessage()
- func (x *PttUnkeyRequest) ProtoReflect() protoreflect.Message
- func (x *PttUnkeyRequest) Reset()
- func (x *PttUnkeyRequest) String() string
- type UsbAttach
- type UsbClass
- type UsbDetach
- func (*UsbDetach) Descriptor() ([]byte, []int)deprecated
- func (x *UsbDetach) GetDevicePath() string
- func (x *UsbDetach) GetPid() uint32
- func (x *UsbDetach) GetVid() uint32
- func (*UsbDetach) ProtoMessage()
- func (x *UsbDetach) ProtoReflect() protoreflect.Message
- func (x *UsbDetach) Reset()
- func (x *UsbDetach) String() string
- type UsbDevice
- func (*UsbDevice) Descriptor() ([]byte, []int)deprecated
- func (x *UsbDevice) GetClasses() []UsbClass
- func (x *UsbDevice) GetDevicePath() string
- func (x *UsbDevice) GetManufacturer() string
- func (x *UsbDevice) GetPid() uint32
- func (x *UsbDevice) GetProduct() string
- func (x *UsbDevice) GetSerial() string
- func (x *UsbDevice) GetVid() uint32
- func (*UsbDevice) ProtoMessage()
- func (x *UsbDevice) ProtoReflect() protoreflect.Message
- func (x *UsbDevice) Reset()
- func (x *UsbDevice) String() string
- type UsbDeviceListRequest
- func (*UsbDeviceListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UsbDeviceListRequest) GetClassFilter() UsbClass
- func (*UsbDeviceListRequest) ProtoMessage()
- func (x *UsbDeviceListRequest) ProtoReflect() protoreflect.Message
- func (x *UsbDeviceListRequest) Reset()
- func (x *UsbDeviceListRequest) String() string
- type UsbDeviceListResponse
- func (*UsbDeviceListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UsbDeviceListResponse) GetDevices() []*UsbDevice
- func (*UsbDeviceListResponse) ProtoMessage()
- func (x *UsbDeviceListResponse) ProtoReflect() protoreflect.Message
- func (x *UsbDeviceListResponse) Reset()
- func (x *UsbDeviceListResponse) String() string
- type UsbSelectRequest
- func (*UsbSelectRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UsbSelectRequest) GetPid() uint32
- func (x *UsbSelectRequest) GetVid() uint32
- func (*UsbSelectRequest) ProtoMessage()
- func (x *UsbSelectRequest) ProtoReflect() protoreflect.Message
- func (x *UsbSelectRequest) Reset()
- func (x *UsbSelectRequest) String() string
- type UsbSelectResponse
- func (*UsbSelectResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UsbSelectResponse) GetErrorMessage() string
- func (x *UsbSelectResponse) GetGranted() bool
- func (x *UsbSelectResponse) GetHandleId() string
- func (*UsbSelectResponse) ProtoMessage()
- func (x *UsbSelectResponse) ProtoReflect() protoreflect.Message
- func (x *UsbSelectResponse) Reset()
- func (x *UsbSelectResponse) String() string
Constants ¶
This section is empty.
Variables ¶
var ( GpsSource_name = map[int32]string{ 0: "GPS_SOURCE_UNKNOWN", 1: "GPS_SOURCE_ANDROID_FUSED", 2: "GPS_SOURCE_ANDROID_GPS", 3: "GPS_SOURCE_ANDROID_NETWORK", } GpsSource_value = map[string]int32{ "GPS_SOURCE_UNKNOWN": 0, "GPS_SOURCE_ANDROID_FUSED": 1, "GPS_SOURCE_ANDROID_GPS": 2, "GPS_SOURCE_ANDROID_NETWORK": 3, } )
Enum value maps for GpsSource.
var ( UsbClass_name = map[int32]string{ 0: "USB_CLASS_UNKNOWN", 1: "USB_CLASS_AUDIO", 2: "USB_CLASS_HID", 3: "USB_CLASS_CDC_ACM", 4: "USB_CLASS_VENDOR", } UsbClass_value = map[string]int32{ "USB_CLASS_UNKNOWN": 0, "USB_CLASS_AUDIO": 1, "USB_CLASS_HID": 2, "USB_CLASS_CDC_ACM": 3, "USB_CLASS_VENDOR": 4, } )
Enum value maps for UsbClass.
var ( PttMethod_name = map[int32]string{ 0: "PTT_METHOD_UNKNOWN", 1: "PTT_METHOD_CP2102N_RTS", 2: "PTT_METHOD_CM108_HID", 3: "PTT_METHOD_AIOC_CDC_DTR", 4: "PTT_METHOD_VOX", } PttMethod_value = map[string]int32{ "PTT_METHOD_UNKNOWN": 0, "PTT_METHOD_CP2102N_RTS": 1, "PTT_METHOD_CM108_HID": 2, "PTT_METHOD_AIOC_CDC_DTR": 3, "PTT_METHOD_VOX": 4, } )
Enum value maps for PttMethod.
var ( ErrorCode_name = map[int32]string{ 0: "ERROR_UNKNOWN", 1: "ERROR_NOT_IMPLEMENTED", 2: "ERROR_SCHEMA_MISMATCH", 3: "ERROR_INVALID_ARGUMENT", 4: "ERROR_PERMISSION_DENIED", 5: "ERROR_NOT_FOUND", 6: "ERROR_INTERNAL", } ErrorCode_value = map[string]int32{ "ERROR_UNKNOWN": 0, "ERROR_NOT_IMPLEMENTED": 1, "ERROR_SCHEMA_MISMATCH": 2, "ERROR_INVALID_ARGUMENT": 3, "ERROR_PERMISSION_DENIED": 4, "ERROR_NOT_FOUND": 5, "ERROR_INTERNAL": 6, } )
Enum value maps for ErrorCode.
var File_platform_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type AudioDevice ¶
type AudioDevice struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
IsInput bool `protobuf:"varint,3,opt,name=is_input,json=isInput,proto3" json:"is_input,omitempty"`
IsOutput bool `protobuf:"varint,4,opt,name=is_output,json=isOutput,proto3" json:"is_output,omitempty"`
// contains filtered or unexported fields
}
func (*AudioDevice) Descriptor
deprecated
func (*AudioDevice) Descriptor() ([]byte, []int)
Deprecated: Use AudioDevice.ProtoReflect.Descriptor instead.
func (*AudioDevice) GetId ¶
func (x *AudioDevice) GetId() string
func (*AudioDevice) GetIsInput ¶
func (x *AudioDevice) GetIsInput() bool
func (*AudioDevice) GetIsOutput ¶
func (x *AudioDevice) GetIsOutput() bool
func (*AudioDevice) GetName ¶
func (x *AudioDevice) GetName() string
func (*AudioDevice) ProtoMessage ¶
func (*AudioDevice) ProtoMessage()
func (*AudioDevice) ProtoReflect ¶
func (x *AudioDevice) ProtoReflect() protoreflect.Message
func (*AudioDevice) Reset ¶
func (x *AudioDevice) Reset()
func (*AudioDevice) String ¶
func (x *AudioDevice) String() string
type AudioDeviceListRequest ¶
type AudioDeviceListRequest struct {
// contains filtered or unexported fields
}
func (*AudioDeviceListRequest) Descriptor
deprecated
func (*AudioDeviceListRequest) Descriptor() ([]byte, []int)
Deprecated: Use AudioDeviceListRequest.ProtoReflect.Descriptor instead.
func (*AudioDeviceListRequest) ProtoMessage ¶
func (*AudioDeviceListRequest) ProtoMessage()
func (*AudioDeviceListRequest) ProtoReflect ¶
func (x *AudioDeviceListRequest) ProtoReflect() protoreflect.Message
func (*AudioDeviceListRequest) Reset ¶
func (x *AudioDeviceListRequest) Reset()
func (*AudioDeviceListRequest) String ¶
func (x *AudioDeviceListRequest) String() string
type AudioDeviceListResponse ¶
type AudioDeviceListResponse struct {
Devices []*AudioDevice `protobuf:"bytes,1,rep,name=devices,proto3" json:"devices,omitempty"`
// contains filtered or unexported fields
}
func (*AudioDeviceListResponse) Descriptor
deprecated
func (*AudioDeviceListResponse) Descriptor() ([]byte, []int)
Deprecated: Use AudioDeviceListResponse.ProtoReflect.Descriptor instead.
func (*AudioDeviceListResponse) GetDevices ¶
func (x *AudioDeviceListResponse) GetDevices() []*AudioDevice
func (*AudioDeviceListResponse) ProtoMessage ¶
func (*AudioDeviceListResponse) ProtoMessage()
func (*AudioDeviceListResponse) ProtoReflect ¶
func (x *AudioDeviceListResponse) ProtoReflect() protoreflect.Message
func (*AudioDeviceListResponse) Reset ¶
func (x *AudioDeviceListResponse) Reset()
func (*AudioDeviceListResponse) String ¶
func (x *AudioDeviceListResponse) String() string
type AudioRouteChanged ¶
type AudioRouteChanged struct {
CurrentInputs []*AudioDevice `protobuf:"bytes,1,rep,name=current_inputs,json=currentInputs,proto3" json:"current_inputs,omitempty"`
CurrentOutputs []*AudioDevice `protobuf:"bytes,2,rep,name=current_outputs,json=currentOutputs,proto3" json:"current_outputs,omitempty"`
// contains filtered or unexported fields
}
func (*AudioRouteChanged) Descriptor
deprecated
func (*AudioRouteChanged) Descriptor() ([]byte, []int)
Deprecated: Use AudioRouteChanged.ProtoReflect.Descriptor instead.
func (*AudioRouteChanged) GetCurrentInputs ¶
func (x *AudioRouteChanged) GetCurrentInputs() []*AudioDevice
func (*AudioRouteChanged) GetCurrentOutputs ¶
func (x *AudioRouteChanged) GetCurrentOutputs() []*AudioDevice
func (*AudioRouteChanged) ProtoMessage ¶
func (*AudioRouteChanged) ProtoMessage()
func (*AudioRouteChanged) ProtoReflect ¶
func (x *AudioRouteChanged) ProtoReflect() protoreflect.Message
func (*AudioRouteChanged) Reset ¶
func (x *AudioRouteChanged) Reset()
func (*AudioRouteChanged) String ¶
func (x *AudioRouteChanged) String() string
type BatteryState ¶
type BatteryState struct {
Percent float32 `protobuf:"fixed32,1,opt,name=percent,proto3" json:"percent,omitempty"`
Charging bool `protobuf:"varint,2,opt,name=charging,proto3" json:"charging,omitempty"`
TempDecic int32 `protobuf:"varint,3,opt,name=temp_decic,json=tempDecic,proto3" json:"temp_decic,omitempty"` // tenths of a degree C
// contains filtered or unexported fields
}
func (*BatteryState) Descriptor
deprecated
func (*BatteryState) Descriptor() ([]byte, []int)
Deprecated: Use BatteryState.ProtoReflect.Descriptor instead.
func (*BatteryState) GetCharging ¶
func (x *BatteryState) GetCharging() bool
func (*BatteryState) GetPercent ¶
func (x *BatteryState) GetPercent() float32
func (*BatteryState) GetTempDecic ¶
func (x *BatteryState) GetTempDecic() int32
func (*BatteryState) ProtoMessage ¶
func (*BatteryState) ProtoMessage()
func (*BatteryState) ProtoReflect ¶
func (x *BatteryState) ProtoReflect() protoreflect.Message
func (*BatteryState) Reset ¶
func (x *BatteryState) Reset()
func (*BatteryState) String ¶
func (x *BatteryState) String() string
type Error ¶
type Error struct {
Code ErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=graywolf.platform.ErrorCode" json:"code,omitempty"`
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
func (*Error) Descriptor
deprecated
func (*Error) GetMessage ¶
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
func (*Error) ProtoReflect ¶
func (x *Error) ProtoReflect() protoreflect.Message
type ErrorCode ¶
type ErrorCode int32
const ( ErrorCode_ERROR_UNKNOWN ErrorCode = 0 ErrorCode_ERROR_NOT_IMPLEMENTED ErrorCode = 1 ErrorCode_ERROR_SCHEMA_MISMATCH ErrorCode = 2 ErrorCode_ERROR_INVALID_ARGUMENT ErrorCode = 3 ErrorCode_ERROR_PERMISSION_DENIED ErrorCode = 4 ErrorCode_ERROR_NOT_FOUND ErrorCode = 5 ErrorCode_ERROR_INTERNAL ErrorCode = 6 )
func (ErrorCode) Descriptor ¶
func (ErrorCode) Descriptor() protoreflect.EnumDescriptor
func (ErrorCode) EnumDescriptor
deprecated
func (ErrorCode) Number ¶
func (x ErrorCode) Number() protoreflect.EnumNumber
func (ErrorCode) Type ¶
func (ErrorCode) Type() protoreflect.EnumType
type GpsFix ¶
type GpsFix struct {
Lat float64 `protobuf:"fixed64,1,opt,name=lat,proto3" json:"lat,omitempty"`
Lon float64 `protobuf:"fixed64,2,opt,name=lon,proto3" json:"lon,omitempty"`
AltM float64 `protobuf:"fixed64,3,opt,name=alt_m,json=altM,proto3" json:"alt_m,omitempty"`
SpeedMps float64 `protobuf:"fixed64,4,opt,name=speed_mps,json=speedMps,proto3" json:"speed_mps,omitempty"`
CourseDeg float64 `protobuf:"fixed64,5,opt,name=course_deg,json=courseDeg,proto3" json:"course_deg,omitempty"`
TimeUnixMs int64 `protobuf:"varint,6,opt,name=time_unix_ms,json=timeUnixMs,proto3" json:"time_unix_ms,omitempty"`
Hdop float64 `protobuf:"fixed64,7,opt,name=hdop,proto3" json:"hdop,omitempty"`
NumSats uint32 `protobuf:"varint,8,opt,name=num_sats,json=numSats,proto3" json:"num_sats,omitempty"`
Source GpsSource `protobuf:"varint,9,opt,name=source,proto3,enum=graywolf.platform.GpsSource" json:"source,omitempty"`
// contains filtered or unexported fields
}
func (*GpsFix) Descriptor
deprecated
func (*GpsFix) GetCourseDeg ¶
func (*GpsFix) GetNumSats ¶
func (*GpsFix) GetSpeedMps ¶
func (*GpsFix) GetTimeUnixMs ¶
func (*GpsFix) ProtoMessage ¶
func (*GpsFix) ProtoMessage()
func (*GpsFix) ProtoReflect ¶
func (x *GpsFix) ProtoReflect() protoreflect.Message
type GpsSource ¶
type GpsSource int32
func (GpsSource) Descriptor ¶
func (GpsSource) Descriptor() protoreflect.EnumDescriptor
func (GpsSource) EnumDescriptor
deprecated
func (GpsSource) Number ¶
func (x GpsSource) Number() protoreflect.EnumNumber
func (GpsSource) Type ¶
func (GpsSource) Type() protoreflect.EnumType
type Hello ¶
type Hello struct {
SchemaVersion uint32 `protobuf:"varint,1,opt,name=schema_version,json=schemaVersion,proto3" json:"schema_version,omitempty"`
ClientVersion string `protobuf:"bytes,2,opt,name=client_version,json=clientVersion,proto3" json:"client_version,omitempty"`
ServerVersion string `protobuf:"bytes,3,opt,name=server_version,json=serverVersion,proto3" json:"server_version,omitempty"` // populated in the response only
// contains filtered or unexported fields
}
func (*Hello) Descriptor
deprecated
func (*Hello) GetClientVersion ¶
func (*Hello) GetSchemaVersion ¶
func (*Hello) GetServerVersion ¶
func (*Hello) ProtoMessage ¶
func (*Hello) ProtoMessage()
func (*Hello) ProtoReflect ¶
func (x *Hello) ProtoReflect() protoreflect.Message
type PlatformMessage ¶
type PlatformMessage struct {
// Types that are valid to be assigned to Body:
//
// *PlatformMessage_Hello
// *PlatformMessage_GpsFix
// *PlatformMessage_BatteryState
// *PlatformMessage_UsbAttach
// *PlatformMessage_UsbDetach
// *PlatformMessage_UsbListReq
// *PlatformMessage_UsbListResp
// *PlatformMessage_UsbSelectReq
// *PlatformMessage_UsbSelectResp
// *PlatformMessage_PttKeyReq
// *PlatformMessage_PttUnkeyReq
// *PlatformMessage_PttAck
// *PlatformMessage_AudioListReq
// *PlatformMessage_AudioListResp
// *PlatformMessage_AudioRouteChanged
// *PlatformMessage_Error
Body isPlatformMessage_Body `protobuf_oneof:"body"`
// contains filtered or unexported fields
}
Top-level envelope. Every message on the wire is a PlatformMessage. Wire framing (matches pkg/modembridge/framing.go):
[4 BE bytes length][serialized PlatformMessage bytes]
func (*PlatformMessage) Descriptor
deprecated
func (*PlatformMessage) Descriptor() ([]byte, []int)
Deprecated: Use PlatformMessage.ProtoReflect.Descriptor instead.
func (*PlatformMessage) GetAudioListReq ¶
func (x *PlatformMessage) GetAudioListReq() *AudioDeviceListRequest
func (*PlatformMessage) GetAudioListResp ¶
func (x *PlatformMessage) GetAudioListResp() *AudioDeviceListResponse
func (*PlatformMessage) GetAudioRouteChanged ¶
func (x *PlatformMessage) GetAudioRouteChanged() *AudioRouteChanged
func (*PlatformMessage) GetBatteryState ¶
func (x *PlatformMessage) GetBatteryState() *BatteryState
func (*PlatformMessage) GetBody ¶
func (x *PlatformMessage) GetBody() isPlatformMessage_Body
func (*PlatformMessage) GetError ¶
func (x *PlatformMessage) GetError() *Error
func (*PlatformMessage) GetGpsFix ¶
func (x *PlatformMessage) GetGpsFix() *GpsFix
func (*PlatformMessage) GetHello ¶
func (x *PlatformMessage) GetHello() *Hello
func (*PlatformMessage) GetPttAck ¶
func (x *PlatformMessage) GetPttAck() *PttAck
func (*PlatformMessage) GetPttKeyReq ¶
func (x *PlatformMessage) GetPttKeyReq() *PttKeyRequest
func (*PlatformMessage) GetPttUnkeyReq ¶
func (x *PlatformMessage) GetPttUnkeyReq() *PttUnkeyRequest
func (*PlatformMessage) GetUsbAttach ¶
func (x *PlatformMessage) GetUsbAttach() *UsbAttach
func (*PlatformMessage) GetUsbDetach ¶
func (x *PlatformMessage) GetUsbDetach() *UsbDetach
func (*PlatformMessage) GetUsbListReq ¶
func (x *PlatformMessage) GetUsbListReq() *UsbDeviceListRequest
func (*PlatformMessage) GetUsbListResp ¶
func (x *PlatformMessage) GetUsbListResp() *UsbDeviceListResponse
func (*PlatformMessage) GetUsbSelectReq ¶
func (x *PlatformMessage) GetUsbSelectReq() *UsbSelectRequest
func (*PlatformMessage) GetUsbSelectResp ¶
func (x *PlatformMessage) GetUsbSelectResp() *UsbSelectResponse
func (*PlatformMessage) ProtoMessage ¶
func (*PlatformMessage) ProtoMessage()
func (*PlatformMessage) ProtoReflect ¶
func (x *PlatformMessage) ProtoReflect() protoreflect.Message
func (*PlatformMessage) Reset ¶
func (x *PlatformMessage) Reset()
func (*PlatformMessage) String ¶
func (x *PlatformMessage) String() string
type PlatformMessage_AudioListReq ¶
type PlatformMessage_AudioListReq struct {
AudioListReq *AudioDeviceListRequest `protobuf:"bytes,13,opt,name=audio_list_req,json=audioListReq,proto3,oneof"`
}
type PlatformMessage_AudioListResp ¶
type PlatformMessage_AudioListResp struct {
AudioListResp *AudioDeviceListResponse `protobuf:"bytes,14,opt,name=audio_list_resp,json=audioListResp,proto3,oneof"`
}
type PlatformMessage_AudioRouteChanged ¶
type PlatformMessage_AudioRouteChanged struct {
AudioRouteChanged *AudioRouteChanged `protobuf:"bytes,15,opt,name=audio_route_changed,json=audioRouteChanged,proto3,oneof"`
}
type PlatformMessage_BatteryState ¶
type PlatformMessage_BatteryState struct {
BatteryState *BatteryState `protobuf:"bytes,3,opt,name=battery_state,json=batteryState,proto3,oneof"`
}
type PlatformMessage_Error ¶
type PlatformMessage_Error struct {
Error *Error `protobuf:"bytes,16,opt,name=error,proto3,oneof"`
}
type PlatformMessage_GpsFix ¶
type PlatformMessage_GpsFix struct {
GpsFix *GpsFix `protobuf:"bytes,2,opt,name=gps_fix,json=gpsFix,proto3,oneof"`
}
type PlatformMessage_Hello ¶
type PlatformMessage_Hello struct {
Hello *Hello `protobuf:"bytes,1,opt,name=hello,proto3,oneof"`
}
type PlatformMessage_PttAck ¶
type PlatformMessage_PttAck struct {
PttAck *PttAck `protobuf:"bytes,12,opt,name=ptt_ack,json=pttAck,proto3,oneof"`
}
type PlatformMessage_PttKeyReq ¶
type PlatformMessage_PttKeyReq struct {
PttKeyReq *PttKeyRequest `protobuf:"bytes,10,opt,name=ptt_key_req,json=pttKeyReq,proto3,oneof"`
}
type PlatformMessage_PttUnkeyReq ¶
type PlatformMessage_PttUnkeyReq struct {
PttUnkeyReq *PttUnkeyRequest `protobuf:"bytes,11,opt,name=ptt_unkey_req,json=pttUnkeyReq,proto3,oneof"`
}
type PlatformMessage_UsbAttach ¶
type PlatformMessage_UsbAttach struct {
UsbAttach *UsbAttach `protobuf:"bytes,4,opt,name=usb_attach,json=usbAttach,proto3,oneof"`
}
type PlatformMessage_UsbDetach ¶
type PlatformMessage_UsbDetach struct {
UsbDetach *UsbDetach `protobuf:"bytes,5,opt,name=usb_detach,json=usbDetach,proto3,oneof"`
}
type PlatformMessage_UsbListReq ¶
type PlatformMessage_UsbListReq struct {
UsbListReq *UsbDeviceListRequest `protobuf:"bytes,6,opt,name=usb_list_req,json=usbListReq,proto3,oneof"`
}
type PlatformMessage_UsbListResp ¶
type PlatformMessage_UsbListResp struct {
UsbListResp *UsbDeviceListResponse `protobuf:"bytes,7,opt,name=usb_list_resp,json=usbListResp,proto3,oneof"`
}
type PlatformMessage_UsbSelectReq ¶
type PlatformMessage_UsbSelectReq struct {
UsbSelectReq *UsbSelectRequest `protobuf:"bytes,8,opt,name=usb_select_req,json=usbSelectReq,proto3,oneof"`
}
type PlatformMessage_UsbSelectResp ¶
type PlatformMessage_UsbSelectResp struct {
UsbSelectResp *UsbSelectResponse `protobuf:"bytes,9,opt,name=usb_select_resp,json=usbSelectResp,proto3,oneof"`
}
type PttAck ¶
type PttAck struct {
Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
ErrorMessage string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
// contains filtered or unexported fields
}
func (*PttAck) Descriptor
deprecated
func (*PttAck) GetErrorMessage ¶
func (*PttAck) ProtoMessage ¶
func (*PttAck) ProtoMessage()
func (*PttAck) ProtoReflect ¶
func (x *PttAck) ProtoReflect() protoreflect.Message
type PttKeyRequest ¶
type PttKeyRequest struct {
Method PttMethod `protobuf:"varint,1,opt,name=method,proto3,enum=graywolf.platform.PttMethod" json:"method,omitempty"`
HandleId string `protobuf:"bytes,2,opt,name=handle_id,json=handleId,proto3" json:"handle_id,omitempty"`
// contains filtered or unexported fields
}
func (*PttKeyRequest) Descriptor
deprecated
func (*PttKeyRequest) Descriptor() ([]byte, []int)
Deprecated: Use PttKeyRequest.ProtoReflect.Descriptor instead.
func (*PttKeyRequest) GetHandleId ¶
func (x *PttKeyRequest) GetHandleId() string
func (*PttKeyRequest) GetMethod ¶
func (x *PttKeyRequest) GetMethod() PttMethod
func (*PttKeyRequest) ProtoMessage ¶
func (*PttKeyRequest) ProtoMessage()
func (*PttKeyRequest) ProtoReflect ¶
func (x *PttKeyRequest) ProtoReflect() protoreflect.Message
func (*PttKeyRequest) Reset ¶
func (x *PttKeyRequest) Reset()
func (*PttKeyRequest) String ¶
func (x *PttKeyRequest) String() string
type PttMethod ¶
type PttMethod int32
func (PttMethod) Descriptor ¶
func (PttMethod) Descriptor() protoreflect.EnumDescriptor
func (PttMethod) EnumDescriptor
deprecated
func (PttMethod) Number ¶
func (x PttMethod) Number() protoreflect.EnumNumber
func (PttMethod) Type ¶
func (PttMethod) Type() protoreflect.EnumType
type PttUnkeyRequest ¶
type PttUnkeyRequest struct {
Method PttMethod `protobuf:"varint,1,opt,name=method,proto3,enum=graywolf.platform.PttMethod" json:"method,omitempty"`
HandleId string `protobuf:"bytes,2,opt,name=handle_id,json=handleId,proto3" json:"handle_id,omitempty"`
// contains filtered or unexported fields
}
func (*PttUnkeyRequest) Descriptor
deprecated
func (*PttUnkeyRequest) Descriptor() ([]byte, []int)
Deprecated: Use PttUnkeyRequest.ProtoReflect.Descriptor instead.
func (*PttUnkeyRequest) GetHandleId ¶
func (x *PttUnkeyRequest) GetHandleId() string
func (*PttUnkeyRequest) GetMethod ¶
func (x *PttUnkeyRequest) GetMethod() PttMethod
func (*PttUnkeyRequest) ProtoMessage ¶
func (*PttUnkeyRequest) ProtoMessage()
func (*PttUnkeyRequest) ProtoReflect ¶
func (x *PttUnkeyRequest) ProtoReflect() protoreflect.Message
func (*PttUnkeyRequest) Reset ¶
func (x *PttUnkeyRequest) Reset()
func (*PttUnkeyRequest) String ¶
func (x *PttUnkeyRequest) String() string
type UsbAttach ¶
type UsbAttach struct {
Device *UsbDevice `protobuf:"bytes,1,opt,name=device,proto3" json:"device,omitempty"`
// contains filtered or unexported fields
}
func (*UsbAttach) Descriptor
deprecated
func (*UsbAttach) ProtoMessage ¶
func (*UsbAttach) ProtoMessage()
func (*UsbAttach) ProtoReflect ¶
func (x *UsbAttach) ProtoReflect() protoreflect.Message
type UsbClass ¶
type UsbClass int32
func (UsbClass) Descriptor ¶
func (UsbClass) Descriptor() protoreflect.EnumDescriptor
func (UsbClass) EnumDescriptor
deprecated
func (UsbClass) Number ¶
func (x UsbClass) Number() protoreflect.EnumNumber
func (UsbClass) Type ¶
func (UsbClass) Type() protoreflect.EnumType
type UsbDetach ¶
type UsbDetach struct {
Vid uint32 `protobuf:"varint,1,opt,name=vid,proto3" json:"vid,omitempty"`
Pid uint32 `protobuf:"varint,2,opt,name=pid,proto3" json:"pid,omitempty"`
DevicePath string `protobuf:"bytes,3,opt,name=device_path,json=devicePath,proto3" json:"device_path,omitempty"`
// contains filtered or unexported fields
}
func (*UsbDetach) Descriptor
deprecated
func (*UsbDetach) GetDevicePath ¶
func (*UsbDetach) ProtoMessage ¶
func (*UsbDetach) ProtoMessage()
func (*UsbDetach) ProtoReflect ¶
func (x *UsbDetach) ProtoReflect() protoreflect.Message
type UsbDevice ¶
type UsbDevice struct {
Vid uint32 `protobuf:"varint,1,opt,name=vid,proto3" json:"vid,omitempty"`
Pid uint32 `protobuf:"varint,2,opt,name=pid,proto3" json:"pid,omitempty"`
Product string `protobuf:"bytes,3,opt,name=product,proto3" json:"product,omitempty"`
Manufacturer string `protobuf:"bytes,4,opt,name=manufacturer,proto3" json:"manufacturer,omitempty"`
Serial string `protobuf:"bytes,5,opt,name=serial,proto3" json:"serial,omitempty"`
Classes []UsbClass `protobuf:"varint,6,rep,packed,name=classes,proto3,enum=graywolf.platform.UsbClass" json:"classes,omitempty"`
DevicePath string `protobuf:"bytes,7,opt,name=device_path,json=devicePath,proto3" json:"device_path,omitempty"`
// contains filtered or unexported fields
}
func (*UsbDevice) Descriptor
deprecated
func (*UsbDevice) GetClasses ¶
func (*UsbDevice) GetDevicePath ¶
func (*UsbDevice) GetManufacturer ¶
func (*UsbDevice) GetProduct ¶
func (*UsbDevice) ProtoMessage ¶
func (*UsbDevice) ProtoMessage()
func (*UsbDevice) ProtoReflect ¶
func (x *UsbDevice) ProtoReflect() protoreflect.Message
type UsbDeviceListRequest ¶
type UsbDeviceListRequest struct {
ClassFilter UsbClass `` // UNKNOWN = no filter
/* 127-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*UsbDeviceListRequest) Descriptor
deprecated
func (*UsbDeviceListRequest) Descriptor() ([]byte, []int)
Deprecated: Use UsbDeviceListRequest.ProtoReflect.Descriptor instead.
func (*UsbDeviceListRequest) GetClassFilter ¶
func (x *UsbDeviceListRequest) GetClassFilter() UsbClass
func (*UsbDeviceListRequest) ProtoMessage ¶
func (*UsbDeviceListRequest) ProtoMessage()
func (*UsbDeviceListRequest) ProtoReflect ¶
func (x *UsbDeviceListRequest) ProtoReflect() protoreflect.Message
func (*UsbDeviceListRequest) Reset ¶
func (x *UsbDeviceListRequest) Reset()
func (*UsbDeviceListRequest) String ¶
func (x *UsbDeviceListRequest) String() string
type UsbDeviceListResponse ¶
type UsbDeviceListResponse struct {
Devices []*UsbDevice `protobuf:"bytes,1,rep,name=devices,proto3" json:"devices,omitempty"`
// contains filtered or unexported fields
}
func (*UsbDeviceListResponse) Descriptor
deprecated
func (*UsbDeviceListResponse) Descriptor() ([]byte, []int)
Deprecated: Use UsbDeviceListResponse.ProtoReflect.Descriptor instead.
func (*UsbDeviceListResponse) GetDevices ¶
func (x *UsbDeviceListResponse) GetDevices() []*UsbDevice
func (*UsbDeviceListResponse) ProtoMessage ¶
func (*UsbDeviceListResponse) ProtoMessage()
func (*UsbDeviceListResponse) ProtoReflect ¶
func (x *UsbDeviceListResponse) ProtoReflect() protoreflect.Message
func (*UsbDeviceListResponse) Reset ¶
func (x *UsbDeviceListResponse) Reset()
func (*UsbDeviceListResponse) String ¶
func (x *UsbDeviceListResponse) String() string
type UsbSelectRequest ¶
type UsbSelectRequest struct {
Vid uint32 `protobuf:"varint,1,opt,name=vid,proto3" json:"vid,omitempty"`
Pid uint32 `protobuf:"varint,2,opt,name=pid,proto3" json:"pid,omitempty"`
// contains filtered or unexported fields
}
func (*UsbSelectRequest) Descriptor
deprecated
func (*UsbSelectRequest) Descriptor() ([]byte, []int)
Deprecated: Use UsbSelectRequest.ProtoReflect.Descriptor instead.
func (*UsbSelectRequest) GetPid ¶
func (x *UsbSelectRequest) GetPid() uint32
func (*UsbSelectRequest) GetVid ¶
func (x *UsbSelectRequest) GetVid() uint32
func (*UsbSelectRequest) ProtoMessage ¶
func (*UsbSelectRequest) ProtoMessage()
func (*UsbSelectRequest) ProtoReflect ¶
func (x *UsbSelectRequest) ProtoReflect() protoreflect.Message
func (*UsbSelectRequest) Reset ¶
func (x *UsbSelectRequest) Reset()
func (*UsbSelectRequest) String ¶
func (x *UsbSelectRequest) String() string
type UsbSelectResponse ¶
type UsbSelectResponse struct {
Granted bool `protobuf:"varint,1,opt,name=granted,proto3" json:"granted,omitempty"`
HandleId string `protobuf:"bytes,2,opt,name=handle_id,json=handleId,proto3" json:"handle_id,omitempty"` // opaque token used in subsequent PTT requests
ErrorMessage string `protobuf:"bytes,3,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
// contains filtered or unexported fields
}
func (*UsbSelectResponse) Descriptor
deprecated
func (*UsbSelectResponse) Descriptor() ([]byte, []int)
Deprecated: Use UsbSelectResponse.ProtoReflect.Descriptor instead.
func (*UsbSelectResponse) GetErrorMessage ¶
func (x *UsbSelectResponse) GetErrorMessage() string
func (*UsbSelectResponse) GetGranted ¶
func (x *UsbSelectResponse) GetGranted() bool
func (*UsbSelectResponse) GetHandleId ¶
func (x *UsbSelectResponse) GetHandleId() string
func (*UsbSelectResponse) ProtoMessage ¶
func (*UsbSelectResponse) ProtoMessage()
func (*UsbSelectResponse) ProtoReflect ¶
func (x *UsbSelectResponse) ProtoReflect() protoreflect.Message
func (*UsbSelectResponse) Reset ¶
func (x *UsbSelectResponse) Reset()
func (*UsbSelectResponse) String ¶
func (x *UsbSelectResponse) String() string