Documentation ¶
Index ¶
- Constants
- Variables
- func ClusterSubject(sdrType SDRType, deviceName string, cmd ClusterCmd) string
- func DataSubject(sdrType SDRType, deviceName string) string
- func DeviceNameFromKey(key string) string
- func KVStoreKey(sdrType SDRType, deviceName string) string
- func NewNATSConn(natsUrl string) (*nc.Conn, error)
- func NewNatsPublisher(natsUrl string) (message.Publisher, error)
- type ClusterCmd
- type Device
- type EdgeLogrus
- type FMDevice
- type IQDevice
- type SDRType
- type ServerLogrus
Constants ¶
View Source
const ( DataSubjectPrefix string = "specpipe.data" // stream subject IqDataSubjectPrefix string = "specpipe-iq.data" // stream subject ClusterSubjectPrefix string = "specpipe-cluster" // simple subject KVStoreBucket string = "specpipe" )
View Source
const OkMsg string = "ok"
Variables ¶
View Source
var (
TimestampHeader string = "ts"
)
Functions ¶
func ClusterSubject ¶
func ClusterSubject(sdrType SDRType, deviceName string, cmd ClusterCmd) string
func DataSubject ¶
func DeviceNameFromKey ¶
func KVStoreKey ¶
Types ¶
type ClusterCmd ¶
type ClusterCmd string
const ( HealthCheckCmd ClusterCmd = "health" WatchConfigCmd ClusterCmd = "watchcfg" )
type EdgeLogrus ¶
func NewEdgeLogrus ¶
func NewEdgeLogrus(level string) (EdgeLogrus, error)
type FMDevice ¶
type FMDevice struct { RegisterTs int64 `json:"register_ts"` SpecpipeVersion string `json:"specpipe_version"` Name string `json:"name"` Freq string `json:"freq"` SampleRate string `json:"sample_rate"` ResampleRate string `json:"resample_rate"` Latitude float32 `json:"latitude"` Longitude float32 `json:"longitude"` }
type IQDevice ¶
type IQDevice struct { RegisterTs int64 `json:"register_ts"` SpecpipeVersion string `json:"specpipe_version"` Name string `json:"name"` Freq string `json:"freq"` SampleRate string `json:"sample_rate"` Latitude float32 `json:"latitude"` Longitude float32 `json:"longitude"` Forward bool `json:"forward"` }
type ServerLogrus ¶
func NewServerLogrus ¶
func NewServerLogrus(level string) (ServerLogrus, error)
Click to show internal directories.
Click to hide internal directories.