Documentation ¶
Index ¶
- Constants
- Variables
- func GenProtocolVersion(version VersionData) uint64
- func IsSettingPossible(setting uint32) bool
- func ParseCmdGetSettingBody(data []uint8)
- func ParseCmdPingBody(data []uint8) int64
- func ParseCmdSetSettingBody(data []uint8) (setting uint32, args []uint32)
- func RegisterRadioServerServer(s *grpc.Server, srv RadioServerServer)
- func SettingAffectsGlobal(setting uint32) bool
- type ByeReturn
- func (*ByeReturn) Descriptor() ([]byte, []int)
- func (m *ByeReturn) GetMessage() string
- func (*ByeReturn) ProtoMessage()
- func (m *ByeReturn) Reset()
- func (m *ByeReturn) String() string
- func (m *ByeReturn) XXX_DiscardUnknown()
- func (m *ByeReturn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ByeReturn) XXX_Merge(src proto.Message)
- func (m *ByeReturn) XXX_Size() int
- func (m *ByeReturn) XXX_Unmarshal(b []byte) error
- type ChannelConfig
- func (*ChannelConfig) Descriptor() ([]byte, []int)
- func (m *ChannelConfig) GetCenterFrequency() uint32
- func (m *ChannelConfig) GetDecimationStage() uint32
- func (m *ChannelConfig) GetLoginInfo() *LoginData
- func (*ChannelConfig) ProtoMessage()
- func (m *ChannelConfig) Reset()
- func (m *ChannelConfig) String() string
- func (m *ChannelConfig) XXX_DiscardUnknown()
- func (m *ChannelConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ChannelConfig) XXX_Merge(src proto.Message)
- func (m *ChannelConfig) XXX_Size() int
- func (m *ChannelConfig) XXX_Unmarshal(b []byte) error
- type ChannelType
- type ClientSync
- type DeviceInfo
- func (*DeviceInfo) Descriptor() ([]byte, []int)
- func (m *DeviceInfo) GetADCResolution() uint32
- func (m *DeviceInfo) GetDeviceName() string
- func (m *DeviceInfo) GetDeviceSerial() string
- func (m *DeviceInfo) GetDeviceType() DeviceType
- func (m *DeviceInfo) GetMaximumDecimation() uint32
- func (m *DeviceInfo) GetMaximumFrequency() uint32
- func (m *DeviceInfo) GetMaximumGain() uint32
- func (m *DeviceInfo) GetMaximumSampleRate() uint32
- func (m *DeviceInfo) GetMinimumFrequency() uint32
- func (*DeviceInfo) ProtoMessage()
- func (m *DeviceInfo) Reset()
- func (m *DeviceInfo) String() string
- func (m *DeviceInfo) XXX_DiscardUnknown()
- func (m *DeviceInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *DeviceInfo) XXX_Merge(src proto.Message)
- func (m *DeviceInfo) XXX_Size() int
- func (m *DeviceInfo) XXX_Unmarshal(b []byte) error
- type DeviceType
- type Empty
- func (*Empty) Descriptor() ([]byte, []int)
- func (*Empty) ProtoMessage()
- func (m *Empty) Reset()
- func (m *Empty) String() string
- func (m *Empty) XXX_DiscardUnknown()
- func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Empty) XXX_Merge(src proto.Message)
- func (m *Empty) XXX_Size() int
- func (m *Empty) XXX_Unmarshal(b []byte) error
- type HelloData
- func (*HelloData) Descriptor() ([]byte, []int)
- func (m *HelloData) GetApplication() string
- func (m *HelloData) GetName() string
- func (m *HelloData) GetPassword() string
- func (m *HelloData) GetUsername() string
- func (*HelloData) ProtoMessage()
- func (m *HelloData) Reset()
- func (m *HelloData) String() string
- func (m *HelloData) XXX_DiscardUnknown()
- func (m *HelloData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *HelloData) XXX_Merge(src proto.Message)
- func (m *HelloData) XXX_Size() int
- func (m *HelloData) XXX_Unmarshal(b []byte) error
- type HelloReturn
- func (*HelloReturn) Descriptor() ([]byte, []int)
- func (m *HelloReturn) GetLogin() *LoginData
- func (m *HelloReturn) GetStatus() StatusType
- func (*HelloReturn) ProtoMessage()
- func (m *HelloReturn) Reset()
- func (m *HelloReturn) String() string
- func (m *HelloReturn) XXX_DiscardUnknown()
- func (m *HelloReturn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *HelloReturn) XXX_Merge(src proto.Message)
- func (m *HelloReturn) XXX_Size() int
- func (m *HelloReturn) XXX_Unmarshal(b []byte) error
- type IQData
- func (*IQData) Descriptor() ([]byte, []int)
- func (m *IQData) GetComplexSamples() []complex64
- func (m *IQData) GetError() string
- func (m *IQData) GetSamples() []float32
- func (m *IQData) GetStatus() StatusType
- func (m *IQData) GetTimestamp() uint64
- func (m *IQData) GetType() ChannelType
- func (*IQData) ProtoMessage()
- func (m *IQData) Reset()
- func (m *IQData) String() string
- func (m *IQData) XXX_DiscardUnknown()
- func (m *IQData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *IQData) XXX_Merge(src proto.Message)
- func (m *IQData) XXX_Size() int
- func (m *IQData) XXX_Unmarshal(b []byte) error
- type LoginData
- func (*LoginData) Descriptor() ([]byte, []int)
- func (m *LoginData) GetToken() string
- func (*LoginData) ProtoMessage()
- func (m *LoginData) Reset()
- func (m *LoginData) String() string
- func (m *LoginData) XXX_DiscardUnknown()
- func (m *LoginData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *LoginData) XXX_Merge(src proto.Message)
- func (m *LoginData) XXX_Size() int
- func (m *LoginData) XXX_Unmarshal(b []byte) error
- type MeData
- func (*MeData) Descriptor() ([]byte, []int)
- func (m *MeData) GetAddress() string
- func (m *MeData) GetApplication() string
- func (m *MeData) GetControlAllowed() bool
- func (m *MeData) GetName() string
- func (m *MeData) GetUsername() string
- func (*MeData) ProtoMessage()
- func (m *MeData) Reset()
- func (m *MeData) String() string
- func (m *MeData) XXX_DiscardUnknown()
- func (m *MeData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *MeData) XXX_Merge(src proto.Message)
- func (m *MeData) XXX_Size() int
- func (m *MeData) XXX_Unmarshal(b []byte) error
- type MessageHeader
- type PingData
- func (*PingData) Descriptor() ([]byte, []int)
- func (m *PingData) GetTimestamp() uint64
- func (m *PingData) GetToken() string
- func (*PingData) ProtoMessage()
- func (m *PingData) Reset()
- func (m *PingData) String() string
- func (m *PingData) XXX_DiscardUnknown()
- func (m *PingData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PingData) XXX_Merge(src proto.Message)
- func (m *PingData) XXX_Size() int
- func (m *PingData) XXX_Unmarshal(b []byte) error
- type PingPacket
- type RadioServerClient
- type RadioServerServer
- type RadioServer_IQClient
- type RadioServer_IQServer
- type RadioServer_SmartIQClient
- type RadioServer_SmartIQServer
- type ReadSettingPacket
- type ServerInfoData
- func (*ServerInfoData) Descriptor() ([]byte, []int)
- func (m *ServerInfoData) GetControlAllowed() bool
- func (m *ServerInfoData) GetDeviceInfo() *DeviceInfo
- func (m *ServerInfoData) GetMaximumIQCenterFrequency() uint32
- func (m *ServerInfoData) GetMaximumSmartFrequency() uint32
- func (m *ServerInfoData) GetMinimumIQCenterFrequency() uint32
- func (m *ServerInfoData) GetMinimumSmartFrequency() uint32
- func (m *ServerInfoData) GetServerCenterFrequency() uint32
- func (m *ServerInfoData) GetVersion() *VersionData
- func (*ServerInfoData) ProtoMessage()
- func (m *ServerInfoData) Reset()
- func (m *ServerInfoData) String() string
- func (m *ServerInfoData) XXX_DiscardUnknown()
- func (m *ServerInfoData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ServerInfoData) XXX_Merge(src proto.Message)
- func (m *ServerInfoData) XXX_Size() int
- func (m *ServerInfoData) XXX_Unmarshal(b []byte) error
- type StatusType
- type VersionData
- func (v *VersionData) AsString() string
- func (*VersionData) Descriptor() ([]byte, []int)
- func (m *VersionData) GetHash() uint32
- func (m *VersionData) GetMajor() uint32
- func (m *VersionData) GetMinor() uint32
- func (*VersionData) ProtoMessage()
- func (m *VersionData) Reset()
- func (m *VersionData) String() string
- func (v *VersionData) ToUint64() uint64
- func (m *VersionData) XXX_DiscardUnknown()
- func (m *VersionData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *VersionData) XXX_Merge(src proto.Message)
- func (m *VersionData) XXX_Size() int
- func (m *VersionData) XXX_Unmarshal(b []byte) error
Constants ¶
View Source
const ( GettingHeader = iota ReadingData )
region Internal States
View Source
const ( Invalid = iota OK Error )
View Source
const ( DeviceInvalid = iota DeviceTestSignal DeviceAirspyOne DeviceAirspyHf DeviceRtlsdr DeviceLimeSDRUSB DeviceLimeSDRMini DeviceSpyServer DeviceHackRF )
DeviceIds IDs
View Source
const ( TypeNone = iota TypeDeviceInfo TypeClientSync TypePong TypeReadSetting TypeIQ TypeSmartIQ TypeCombined TypeCommand )
View Source
const ( CmdHello = 0 CmdGetSetting = 1 CmdSetSetting = 2 CmdPing = 3 )
View Source
const ( SettingStreamingMode = iota SettingStreamingEnabled SettingGains SettingIqFrequency SettingIqDecimation SettingDigitalGain SettingSmartFrequency SettingSmartDecimation )
View Source
const ( DeviceInvalidName = "Invalid Device" DeviceTestSignalName = "Test Signal Generator" DeviceAirspyOneName = "Airspy Mini / R2" DeviceAirspyHFName = "Airspy HF / HF+" DeviceRtlsdrName = "RTLSDR" DeviceLimeSDRUSBName = "LimeSDR USB" DeviceLimeSDRMiniName = "LimeSDR Mini" DeviceHackRFName = "HackRF" DeviceSpyserverName = "SpyServer" )
DeviceNames names of the device
View Source
const DefaultPort = 4050
View Source
const MaxMessageBodySize = 1 << 20
Variables ¶
View Source
var ChannelType_name = map[int32]string{
0: "IQ",
1: "SmartIQ",
}
View Source
var ChannelType_value = map[string]int32{
"IQ": 0,
"SmartIQ": 1,
}
View Source
var CurrentProtocolVersion = VersionData{
Major: 0,
Minor: 1,
Hash: 0,
}
View Source
var DeviceName = map[uint32]string{ DeviceInvalid: DeviceInvalidName, DeviceTestSignal: DeviceTestSignalName, DeviceAirspyOne: DeviceAirspyOneName, DeviceAirspyHf: DeviceAirspyHFName, DeviceRtlsdr: DeviceRtlsdrName, DeviceLimeSDRUSB: DeviceLimeSDRUSBName, DeviceLimeSDRMini: DeviceLimeSDRMiniName, DeviceHackRF: DeviceHackRFName, DeviceSpyServer: DeviceSpyserverName, }
DeviceName list of device names by their ids
View Source
var DeviceType_name = map[int32]string{
0: "DeviceInvalid",
1: "DeviceTestSignal",
2: "DeviceAirspyOne",
3: "DeviceAirspyHf",
4: "DeviceRtlsdr",
5: "DeviceLimeSDRUSB",
6: "DeviceLimeSDRMini",
7: "DeviceSpyServer",
8: "DeviceHackRF",
}
View Source
var DeviceType_value = map[string]int32{
"DeviceInvalid": 0,
"DeviceTestSignal": 1,
"DeviceAirspyOne": 2,
"DeviceAirspyHf": 3,
"DeviceRtlsdr": 4,
"DeviceLimeSDRUSB": 5,
"DeviceLimeSDRMini": 6,
"DeviceSpyServer": 7,
"DeviceHackRF": 8,
}
View Source
var GlobalAffectedSettings = []uint32{ SettingGains, }
View Source
var MessageHeaderSize = uint32(binary.Size(MessageHeader{}))
View Source
var PossibleSettings = []uint32{ SettingStreamingMode, SettingStreamingEnabled, SettingGains, SettingDigitalGain, SettingIqFrequency, SettingIqDecimation, SettingSmartFrequency, SettingSmartDecimation, }
View Source
var SettingNames = map[uint32]string{ SettingStreamingMode: "Streaming Mode", SettingStreamingEnabled: "Streaming Enabled", SettingGains: "Gain", SettingDigitalGain: "Digital Gain", SettingIqFrequency: "IQ Frequency", SettingIqDecimation: "IQ Decimation", SettingSmartFrequency: "Smart Frequency", SettingSmartDecimation: "Smart Decimation", }
SettingNames list of device names by their ids
View Source
var StatusType_name = map[int32]string{
0: "Invalid",
1: "OK",
2: "Error",
}
View Source
var StatusType_value = map[string]int32{
"Invalid": 0,
"OK": 1,
"Error": 2,
}
Functions ¶
func GenProtocolVersion ¶
func GenProtocolVersion(version VersionData) uint64
func IsSettingPossible ¶
func ParseCmdGetSettingBody ¶
func ParseCmdGetSettingBody(data []uint8)
func ParseCmdPingBody ¶
func ParseCmdSetSettingBody ¶
func RegisterRadioServerServer ¶
func RegisterRadioServerServer(s *grpc.Server, srv RadioServerServer)
func SettingAffectsGlobal ¶
Types ¶
type ByeReturn ¶
type ByeReturn struct { Message string `protobuf:"bytes,1,opt,name=Message,proto3" json:"Message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ByeReturn) Descriptor ¶
func (*ByeReturn) GetMessage ¶
func (*ByeReturn) ProtoMessage ¶
func (*ByeReturn) ProtoMessage()
func (*ByeReturn) XXX_DiscardUnknown ¶
func (m *ByeReturn) XXX_DiscardUnknown()
func (*ByeReturn) XXX_Marshal ¶
func (*ByeReturn) XXX_Unmarshal ¶
type ChannelConfig ¶
type ChannelConfig struct { LoginInfo *LoginData `protobuf:"bytes,1,opt,name=LoginInfo,proto3" json:"LoginInfo,omitempty"` CenterFrequency uint32 `protobuf:"varint,2,opt,name=CenterFrequency,proto3" json:"CenterFrequency,omitempty"` DecimationStage uint32 `protobuf:"varint,3,opt,name=DecimationStage,proto3" json:"DecimationStage,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ChannelConfig) Descriptor ¶
func (*ChannelConfig) Descriptor() ([]byte, []int)
func (*ChannelConfig) GetCenterFrequency ¶
func (m *ChannelConfig) GetCenterFrequency() uint32
func (*ChannelConfig) GetDecimationStage ¶
func (m *ChannelConfig) GetDecimationStage() uint32
func (*ChannelConfig) GetLoginInfo ¶
func (m *ChannelConfig) GetLoginInfo() *LoginData
func (*ChannelConfig) ProtoMessage ¶
func (*ChannelConfig) ProtoMessage()
func (*ChannelConfig) Reset ¶
func (m *ChannelConfig) Reset()
func (*ChannelConfig) String ¶
func (m *ChannelConfig) String() string
func (*ChannelConfig) XXX_DiscardUnknown ¶
func (m *ChannelConfig) XXX_DiscardUnknown()
func (*ChannelConfig) XXX_Marshal ¶
func (m *ChannelConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChannelConfig) XXX_Merge ¶
func (dst *ChannelConfig) XXX_Merge(src proto.Message)
func (*ChannelConfig) XXX_Size ¶
func (m *ChannelConfig) XXX_Size() int
func (*ChannelConfig) XXX_Unmarshal ¶
func (m *ChannelConfig) XXX_Unmarshal(b []byte) error
type ChannelType ¶
type ChannelType int32
const ( ChannelType_IQ ChannelType = 0 ChannelType_SmartIQ ChannelType = 1 )
func (ChannelType) EnumDescriptor ¶
func (ChannelType) EnumDescriptor() ([]byte, []int)
func (ChannelType) String ¶
func (x ChannelType) String() string
type ClientSync ¶
type DeviceInfo ¶
type DeviceInfo struct { DeviceType DeviceType `protobuf:"varint,1,opt,name=DeviceType,proto3,enum=protocol.DeviceType" json:"DeviceType,omitempty"` DeviceSerial string `protobuf:"bytes,2,opt,name=DeviceSerial,proto3" json:"DeviceSerial,omitempty"` DeviceName string `protobuf:"bytes,3,opt,name=DeviceName,proto3" json:"DeviceName,omitempty"` MaximumSampleRate uint32 `protobuf:"varint,4,opt,name=MaximumSampleRate,proto3" json:"MaximumSampleRate,omitempty"` MaximumGain uint32 `protobuf:"varint,5,opt,name=MaximumGain,proto3" json:"MaximumGain,omitempty"` MaximumDecimation uint32 `protobuf:"varint,6,opt,name=MaximumDecimation,proto3" json:"MaximumDecimation,omitempty"` MinimumFrequency uint32 `protobuf:"varint,7,opt,name=MinimumFrequency,proto3" json:"MinimumFrequency,omitempty"` MaximumFrequency uint32 `protobuf:"varint,8,opt,name=MaximumFrequency,proto3" json:"MaximumFrequency,omitempty"` ADCResolution uint32 `protobuf:"varint,9,opt,name=ADCResolution,proto3" json:"ADCResolution,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DeviceInfo) Descriptor ¶
func (*DeviceInfo) Descriptor() ([]byte, []int)
func (*DeviceInfo) GetADCResolution ¶
func (m *DeviceInfo) GetADCResolution() uint32
func (*DeviceInfo) GetDeviceName ¶
func (m *DeviceInfo) GetDeviceName() string
func (*DeviceInfo) GetDeviceSerial ¶
func (m *DeviceInfo) GetDeviceSerial() string
func (*DeviceInfo) GetDeviceType ¶
func (m *DeviceInfo) GetDeviceType() DeviceType
func (*DeviceInfo) GetMaximumDecimation ¶
func (m *DeviceInfo) GetMaximumDecimation() uint32
func (*DeviceInfo) GetMaximumFrequency ¶
func (m *DeviceInfo) GetMaximumFrequency() uint32
func (*DeviceInfo) GetMaximumGain ¶
func (m *DeviceInfo) GetMaximumGain() uint32
func (*DeviceInfo) GetMaximumSampleRate ¶
func (m *DeviceInfo) GetMaximumSampleRate() uint32
func (*DeviceInfo) GetMinimumFrequency ¶
func (m *DeviceInfo) GetMinimumFrequency() uint32
func (*DeviceInfo) ProtoMessage ¶
func (*DeviceInfo) ProtoMessage()
func (*DeviceInfo) Reset ¶
func (m *DeviceInfo) Reset()
func (*DeviceInfo) String ¶
func (m *DeviceInfo) String() string
func (*DeviceInfo) XXX_DiscardUnknown ¶
func (m *DeviceInfo) XXX_DiscardUnknown()
func (*DeviceInfo) XXX_Marshal ¶
func (m *DeviceInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeviceInfo) XXX_Merge ¶
func (dst *DeviceInfo) XXX_Merge(src proto.Message)
func (*DeviceInfo) XXX_Size ¶
func (m *DeviceInfo) XXX_Size() int
func (*DeviceInfo) XXX_Unmarshal ¶
func (m *DeviceInfo) XXX_Unmarshal(b []byte) error
type DeviceType ¶
type DeviceType int32
const ( DeviceType_DeviceInvalid DeviceType = 0 DeviceType_DeviceTestSignal DeviceType = 1 DeviceType_DeviceAirspyOne DeviceType = 2 DeviceType_DeviceAirspyHf DeviceType = 3 DeviceType_DeviceRtlsdr DeviceType = 4 DeviceType_DeviceLimeSDRUSB DeviceType = 5 DeviceType_DeviceLimeSDRMini DeviceType = 6 DeviceType_DeviceSpyServer DeviceType = 7 DeviceType_DeviceHackRF DeviceType = 8 )
func (DeviceType) EnumDescriptor ¶
func (DeviceType) EnumDescriptor() ([]byte, []int)
func (DeviceType) String ¶
func (x DeviceType) String() string
type Empty ¶
type Empty struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Empty) Descriptor ¶
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) XXX_DiscardUnknown ¶
func (m *Empty) XXX_DiscardUnknown()
func (*Empty) XXX_Marshal ¶
func (*Empty) XXX_Unmarshal ¶
type HelloData ¶
type HelloData struct { Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` Application string `protobuf:"bytes,2,opt,name=Application,proto3" json:"Application,omitempty"` Username string `protobuf:"bytes,3,opt,name=Username,proto3" json:"Username,omitempty"` Password string `protobuf:"bytes,4,opt,name=Password,proto3" json:"Password,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*HelloData) Descriptor ¶
func (*HelloData) GetApplication ¶
func (*HelloData) GetPassword ¶
func (*HelloData) GetUsername ¶
func (*HelloData) ProtoMessage ¶
func (*HelloData) ProtoMessage()
func (*HelloData) XXX_DiscardUnknown ¶
func (m *HelloData) XXX_DiscardUnknown()
func (*HelloData) XXX_Marshal ¶
func (*HelloData) XXX_Unmarshal ¶
type HelloReturn ¶
type HelloReturn struct { Status StatusType `protobuf:"varint,1,opt,name=Status,proto3,enum=protocol.StatusType" json:"Status,omitempty"` Login *LoginData `protobuf:"bytes,2,opt,name=Login,proto3" json:"Login,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*HelloReturn) Descriptor ¶
func (*HelloReturn) Descriptor() ([]byte, []int)
func (*HelloReturn) GetLogin ¶
func (m *HelloReturn) GetLogin() *LoginData
func (*HelloReturn) GetStatus ¶
func (m *HelloReturn) GetStatus() StatusType
func (*HelloReturn) ProtoMessage ¶
func (*HelloReturn) ProtoMessage()
func (*HelloReturn) Reset ¶
func (m *HelloReturn) Reset()
func (*HelloReturn) String ¶
func (m *HelloReturn) String() string
func (*HelloReturn) XXX_DiscardUnknown ¶
func (m *HelloReturn) XXX_DiscardUnknown()
func (*HelloReturn) XXX_Marshal ¶
func (m *HelloReturn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HelloReturn) XXX_Merge ¶
func (dst *HelloReturn) XXX_Merge(src proto.Message)
func (*HelloReturn) XXX_Size ¶
func (m *HelloReturn) XXX_Size() int
func (*HelloReturn) XXX_Unmarshal ¶
func (m *HelloReturn) XXX_Unmarshal(b []byte) error
type IQData ¶
type IQData struct { Timestamp uint64 `protobuf:"varint,1,opt,name=Timestamp,proto3" json:"Timestamp,omitempty"` Status StatusType `protobuf:"varint,2,opt,name=status,proto3,enum=protocol.StatusType" json:"status,omitempty"` Error string `protobuf:"bytes,3,opt,name=Error,proto3" json:"Error,omitempty"` Type ChannelType `protobuf:"varint,4,opt,name=Type,proto3,enum=protocol.ChannelType" json:"Type,omitempty"` Samples []float32 `protobuf:"fixed32,5,rep,packed,name=Samples,proto3" json:"Samples,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func MakeIQData ¶
func MakeIQData(channelType ChannelType, samples []complex64) *IQData
func MakeIQDataWithPool ¶
func MakeIQDataWithPool(channelType ChannelType, samples []complex64, pool sync.Pool) *IQData
func (*IQData) Descriptor ¶
func (*IQData) GetComplexSamples ¶
func (*IQData) GetSamples ¶
func (*IQData) GetStatus ¶
func (m *IQData) GetStatus() StatusType
func (*IQData) GetTimestamp ¶
func (*IQData) GetType ¶
func (m *IQData) GetType() ChannelType
func (*IQData) ProtoMessage ¶
func (*IQData) ProtoMessage()
func (*IQData) XXX_DiscardUnknown ¶
func (m *IQData) XXX_DiscardUnknown()
func (*IQData) XXX_Marshal ¶
func (*IQData) XXX_Unmarshal ¶
type LoginData ¶
type LoginData struct { Token string `protobuf:"bytes,1,opt,name=Token,proto3" json:"Token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LoginData) Descriptor ¶
func (*LoginData) ProtoMessage ¶
func (*LoginData) ProtoMessage()
func (*LoginData) XXX_DiscardUnknown ¶
func (m *LoginData) XXX_DiscardUnknown()
func (*LoginData) XXX_Marshal ¶
func (*LoginData) XXX_Unmarshal ¶
type MeData ¶
type MeData struct { Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` Application string `protobuf:"bytes,2,opt,name=Application,proto3" json:"Application,omitempty"` Username string `protobuf:"bytes,3,opt,name=Username,proto3" json:"Username,omitempty"` Address string `protobuf:"bytes,4,opt,name=Address,proto3" json:"Address,omitempty"` ControlAllowed bool `protobuf:"varint,5,opt,name=ControlAllowed,proto3" json:"ControlAllowed,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MeData) Descriptor ¶
func (*MeData) GetAddress ¶
func (*MeData) GetApplication ¶
func (*MeData) GetControlAllowed ¶
func (*MeData) GetUsername ¶
func (*MeData) ProtoMessage ¶
func (*MeData) ProtoMessage()
func (*MeData) XXX_DiscardUnknown ¶
func (m *MeData) XXX_DiscardUnknown()
func (*MeData) XXX_Marshal ¶
func (*MeData) XXX_Unmarshal ¶
type MessageHeader ¶
type PingData ¶
type PingData struct { Timestamp uint64 `protobuf:"varint,1,opt,name=Timestamp,proto3" json:"Timestamp,omitempty"` Token string `protobuf:"bytes,2,opt,name=Token,proto3" json:"Token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PingData) Descriptor ¶
func (*PingData) GetTimestamp ¶
func (*PingData) ProtoMessage ¶
func (*PingData) ProtoMessage()
func (*PingData) XXX_DiscardUnknown ¶
func (m *PingData) XXX_DiscardUnknown()
func (*PingData) XXX_Marshal ¶
func (*PingData) XXX_Unmarshal ¶
type PingPacket ¶
type PingPacket struct {
Timestamp int64
}
type RadioServerClient ¶
type RadioServerClient interface { Me(ctx context.Context, in *LoginData, opts ...grpc.CallOption) (*MeData, error) Hello(ctx context.Context, in *HelloData, opts ...grpc.CallOption) (*HelloReturn, error) Bye(ctx context.Context, in *LoginData, opts ...grpc.CallOption) (*ByeReturn, error) ServerInfo(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ServerInfoData, error) SmartIQ(ctx context.Context, in *ChannelConfig, opts ...grpc.CallOption) (RadioServer_SmartIQClient, error) IQ(ctx context.Context, in *ChannelConfig, opts ...grpc.CallOption) (RadioServer_IQClient, error) Ping(ctx context.Context, in *PingData, opts ...grpc.CallOption) (*PingData, error) }
RadioServerClient is the client API for RadioServer service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewRadioServerClient ¶
func NewRadioServerClient(cc *grpc.ClientConn) RadioServerClient
type RadioServerServer ¶
type RadioServerServer interface { Me(context.Context, *LoginData) (*MeData, error) Hello(context.Context, *HelloData) (*HelloReturn, error) Bye(context.Context, *LoginData) (*ByeReturn, error) ServerInfo(context.Context, *Empty) (*ServerInfoData, error) SmartIQ(*ChannelConfig, RadioServer_SmartIQServer) error IQ(*ChannelConfig, RadioServer_IQServer) error Ping(context.Context, *PingData) (*PingData, error) }
RadioServerServer is the server API for RadioServer service.
type RadioServer_IQClient ¶
type RadioServer_IQClient interface { Recv() (*IQData, error) grpc.ClientStream }
type RadioServer_IQServer ¶
type RadioServer_IQServer interface { Send(*IQData) error grpc.ServerStream }
type RadioServer_SmartIQClient ¶
type RadioServer_SmartIQClient interface { Recv() (*IQData, error) grpc.ClientStream }
type RadioServer_SmartIQServer ¶
type RadioServer_SmartIQServer interface { Send(*IQData) error grpc.ServerStream }
type ReadSettingPacket ¶
type ServerInfoData ¶
type ServerInfoData struct { ControlAllowed bool `protobuf:"varint,1,opt,name=ControlAllowed,proto3" json:"ControlAllowed,omitempty"` ServerCenterFrequency uint32 `protobuf:"varint,2,opt,name=ServerCenterFrequency,proto3" json:"ServerCenterFrequency,omitempty"` MinimumIQCenterFrequency uint32 `protobuf:"varint,3,opt,name=MinimumIQCenterFrequency,proto3" json:"MinimumIQCenterFrequency,omitempty"` MaximumIQCenterFrequency uint32 `protobuf:"varint,4,opt,name=MaximumIQCenterFrequency,proto3" json:"MaximumIQCenterFrequency,omitempty"` MinimumSmartFrequency uint32 `protobuf:"varint,5,opt,name=MinimumSmartFrequency,proto3" json:"MinimumSmartFrequency,omitempty"` MaximumSmartFrequency uint32 `protobuf:"varint,6,opt,name=MaximumSmartFrequency,proto3" json:"MaximumSmartFrequency,omitempty"` DeviceInfo *DeviceInfo `protobuf:"bytes,7,opt,name=deviceInfo,proto3" json:"deviceInfo,omitempty"` Version *VersionData `protobuf:"bytes,8,opt,name=version,proto3" json:"version,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ServerInfoData) Descriptor ¶
func (*ServerInfoData) Descriptor() ([]byte, []int)
func (*ServerInfoData) GetControlAllowed ¶
func (m *ServerInfoData) GetControlAllowed() bool
func (*ServerInfoData) GetDeviceInfo ¶
func (m *ServerInfoData) GetDeviceInfo() *DeviceInfo
func (*ServerInfoData) GetMaximumIQCenterFrequency ¶
func (m *ServerInfoData) GetMaximumIQCenterFrequency() uint32
func (*ServerInfoData) GetMaximumSmartFrequency ¶
func (m *ServerInfoData) GetMaximumSmartFrequency() uint32
func (*ServerInfoData) GetMinimumIQCenterFrequency ¶
func (m *ServerInfoData) GetMinimumIQCenterFrequency() uint32
func (*ServerInfoData) GetMinimumSmartFrequency ¶
func (m *ServerInfoData) GetMinimumSmartFrequency() uint32
func (*ServerInfoData) GetServerCenterFrequency ¶
func (m *ServerInfoData) GetServerCenterFrequency() uint32
func (*ServerInfoData) GetVersion ¶
func (m *ServerInfoData) GetVersion() *VersionData
func (*ServerInfoData) ProtoMessage ¶
func (*ServerInfoData) ProtoMessage()
func (*ServerInfoData) Reset ¶
func (m *ServerInfoData) Reset()
func (*ServerInfoData) String ¶
func (m *ServerInfoData) String() string
func (*ServerInfoData) XXX_DiscardUnknown ¶
func (m *ServerInfoData) XXX_DiscardUnknown()
func (*ServerInfoData) XXX_Marshal ¶
func (m *ServerInfoData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ServerInfoData) XXX_Merge ¶
func (dst *ServerInfoData) XXX_Merge(src proto.Message)
func (*ServerInfoData) XXX_Size ¶
func (m *ServerInfoData) XXX_Size() int
func (*ServerInfoData) XXX_Unmarshal ¶
func (m *ServerInfoData) XXX_Unmarshal(b []byte) error
type StatusType ¶
type StatusType int32
const ( StatusType_Invalid StatusType = 0 StatusType_OK StatusType = 1 StatusType_Error StatusType = 2 )
func (StatusType) EnumDescriptor ¶
func (StatusType) EnumDescriptor() ([]byte, []int)
func (StatusType) String ¶
func (x StatusType) String() string
type VersionData ¶
type VersionData struct { Major uint32 `protobuf:"varint,1,opt,name=Major,proto3" json:"Major,omitempty"` Minor uint32 `protobuf:"varint,2,opt,name=Minor,proto3" json:"Minor,omitempty"` Hash uint32 `protobuf:"varint,3,opt,name=Hash,proto3" json:"Hash,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func ParseCmdHelloBody ¶
func ParseCmdHelloBody(data []uint8) (VersionData, string)
func SplitProtocolVersion ¶
func SplitProtocolVersion(protocol uint64) VersionData
func (*VersionData) AsString ¶
func (v *VersionData) AsString() string
func (*VersionData) Descriptor ¶
func (*VersionData) Descriptor() ([]byte, []int)
func (*VersionData) GetHash ¶
func (m *VersionData) GetHash() uint32
func (*VersionData) GetMajor ¶
func (m *VersionData) GetMajor() uint32
func (*VersionData) GetMinor ¶
func (m *VersionData) GetMinor() uint32
func (*VersionData) ProtoMessage ¶
func (*VersionData) ProtoMessage()
func (*VersionData) Reset ¶
func (m *VersionData) Reset()
func (*VersionData) String ¶
func (m *VersionData) String() string
func (*VersionData) ToUint64 ¶
func (v *VersionData) ToUint64() uint64
func (*VersionData) XXX_DiscardUnknown ¶
func (m *VersionData) XXX_DiscardUnknown()
func (*VersionData) XXX_Marshal ¶
func (m *VersionData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*VersionData) XXX_Merge ¶
func (dst *VersionData) XXX_Merge(src proto.Message)
func (*VersionData) XXX_Size ¶
func (m *VersionData) XXX_Size() int
func (*VersionData) XXX_Unmarshal ¶
func (m *VersionData) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.