Documentation ¶
Index ¶
- Variables
- func CaptureAudio(ctx context.Context, config *FmConfig, publisher message.Publisher, ...) error
- func CaptureIQ(ctx context.Context, config *IqConfig, publisher message.Publisher, ...) error
- func DeregisterDevice(ctx context.Context, kv jetstream.KeyValue, sdrType common.SDRType, ...) error
- func ForwardIQ(ctx context.Context, config *ForwardConfig, logger common.EdgeLogrus, ...) error
- func RegisterDevice(ctx context.Context, conn *nats.Conn, kv jetstream.KeyValue, ...) (*nats.Subscription, error)
- func WatchDevice(ctx context.Context, conn *nats.Conn, kv jetstream.KeyValue, ...) (*nats.Subscription, chan common.Device, error)
- type Config
- type DeviceConfig
- type FmConfig
- type ForwardConfig
- type GrpcConfig
- type IqConfig
- type LoggingConfig
- type NatsConfig
- type RtlsdrFmConfig
- type RtlsdrIqConfig
- type RtlsdrRpcConfig
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func CaptureAudio ¶
func DeregisterDevice ¶
func ForwardIQ ¶ added in v0.2.0
func ForwardIQ(ctx context.Context, config *ForwardConfig, logger common.EdgeLogrus, conn *grpc.ClientConn) error
func RegisterDevice ¶
Types ¶
type Config ¶
type Config struct { Fm *FmConfig `mapstructure:"fm"` Iq *IqConfig `mapstructure:"iq"` Forward *ForwardConfig `mapstructure:"forward"` }
type DeviceConfig ¶
type FmConfig ¶
type FmConfig struct { Device *DeviceConfig `mapstructure:"device"` Rtlsdr *RtlsdrFmConfig `mapstructure:"rtlsdr"` Nats *NatsConfig `mapstructure:"nats"` Logging *LoggingConfig `mapstructure:"logging"` }
func NewFmConfig ¶
type ForwardConfig ¶ added in v0.2.0
type ForwardConfig struct { Device *DeviceConfig `mapstructure:"device"` Rtlsdr *RtlsdrIqConfig `mapstructure:"rtlsdr"` Grpc *GrpcConfig `mapstructure:"grpc"` Nats *NatsConfig `mapstructure:"nats"` Logging *LoggingConfig `mapstructure:"logging"` }
func NewForwardConfig ¶ added in v0.2.0
func NewForwardConfig() (*ForwardConfig, error)
type GrpcConfig ¶ added in v0.2.0
type GrpcConfig struct {
Target string
}
type IqConfig ¶
type IqConfig struct { Device *DeviceConfig `mapstructure:"device"` Rtlsdr *RtlsdrIqConfig `mapstructure:"rtlsdr"` Nats *NatsConfig `mapstructure:"nats"` Logging *LoggingConfig `mapstructure:"logging"` }
func NewIqConfig ¶
type LoggingConfig ¶
type LoggingConfig struct {
Level string
}
type NatsConfig ¶
type RtlsdrFmConfig ¶
type RtlsdrFmConfig struct { Freq string SampleRate string ResampleRate string Rpc *RtlsdrRpcConfig `mapstructure:"rpc"` }
type RtlsdrIqConfig ¶
type RtlsdrIqConfig struct { Freq string SampleRate string Rpc *RtlsdrRpcConfig `mapstructure:"rpc"` }
type RtlsdrRpcConfig ¶
Click to show internal directories.
Click to hide internal directories.