models

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SNR_UNIT                 = "dB"
	RSRQ_UNIT                = "dB"
	RSRP_UNIT                = "dBm"
	RSSI_UNIT                = "dBm"
	SNR_LOWER_BOUND  float64 = -20
	SNR_UPPER_BOUND  float64 = 20
	RSRP_LOWER_BOUND float64 = -115
	RSRP_UPPER_BOUND float64 = -80
	RSRQ_LOWER_BOUND float64 = -20
	RSRQ_UPPER_BOUND float64 = -10
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ApnCfg

type ApnCfg struct {
	OID             int    `json:"oid"`
	Enable          int    `json:"Enable"`
	APN             string `json:"APN"`
	ServiceType     string `json:"X_ALU_COM_ServiceType"`
	ConnectionState int    `json:"X_ALU_COM_ConnectionState"`
	IPV4            string `json:"X_ALU_COM_IPAddressV4"`
	IPV6            string `json:"X_ALU_COM_IPAddressV6"`
}

type Cell5GStat

type Cell5GStat struct {
	SNRCurrent               float64 `json:"SNRCurrent"`
	RSRPCurrent              float64 `json:"RSRPCurrent"`
	RSRPStrengthIndexCurrent float64 `json:"RSRPStrengthIndexCurrent"`
	PhysicalCellID           string  `json:"PhysicalCellID"`
	RSRQCurrent              float64 `json:"RSRQCurrent"`
	DownlinkNRARFCN          float64 `json:"Downlink_NR_ARFCN"`
	SignalStrengthLevel      float64 `json:"SignalStrengthLevel"`
	Band                     string  `json:"Band"`
}

func (*Cell5GStat) Band64 added in v0.0.5

func (c *Cell5GStat) Band64() float64

func (*Cell5GStat) ID added in v0.0.5

func (c *Cell5GStat) ID() float64

func (*Cell5GStat) RSRPQuality added in v0.0.3

func (c *Cell5GStat) RSRPQuality(min float64, max float64) float64

func (*Cell5GStat) RSRQQuality added in v0.0.3

func (c *Cell5GStat) RSRQQuality(min float64, max float64) float64

func (*Cell5GStat) SNRQuality added in v0.0.3

func (c *Cell5GStat) SNRQuality(min float64, max float64) float64

type Cell5GStats

type Cell5GStats struct {
	Stat *Cell5GStat `json:"stat"`
}

type CellCA4GDLStat

type CellCA4GDLStat struct {
	PhysicalCellID int    `json:"PhysicalCellID"`
	ScellBand      string `json:"ScellBand"`
	ScellChannel   int    `json:"ScellChannel"`
}

type CellCA4GDLStat0

type CellCA4GDLStat0 struct {
	Ca4GDL0 *CellCA4GDLStat `json:"0"`
}

type CellCAStats

type CellCAStats struct {
	DLCarrierAggregationNumberOfEntries int              `json:"X_ALU_COM_DLCarrierAggregationNumberOfEntries"`
	ULCarrierAggregationNumberOfEntries int              `json:"X_ALU_COM_ULCarrierAggregationNumberOfEntries"`
	Ca4GDL                              *CellCA4GDLStat0 `json:"ca4GDL"`
}

type CellLTEStat

type CellLTEStat struct {
	RSSICurrent              float64 `json:"RSSICurrent"`
	SNRCurrent               float64 `json:"SNRCurrent"`
	RSRPCurrent              float64 `json:"RSRPCurrent"`
	RSRPStrengthIndexCurrent float64 `json:"RSRPStrengthIndexCurrent"`
	PhysicalCellID           string  `json:"PhysicalCellID"`
	RSRQCurrent              float64 `json:"RSRQCurrent"`
	DownlinkEarfcn           float64 `json:"DownlinkEarfcn"`
	SignalStrengthLevel      float64 `json:"SignalStrengthLevel"`
	Band                     string  `json:"Band"`
}

func (*CellLTEStat) Band64 added in v0.0.5

func (c *CellLTEStat) Band64() float64

func (*CellLTEStat) ID added in v0.0.5

func (c *CellLTEStat) ID() float64

func (*CellLTEStat) RSRPQuality added in v0.0.3

func (c *CellLTEStat) RSRPQuality(min float64, max float64) float64

func (*CellLTEStat) RSRQQuality added in v0.0.3

func (c *CellLTEStat) RSRQQuality(min float64, max float64) float64

func (*CellLTEStat) SNRQuality added in v0.0.3

func (c *CellLTEStat) SNRQuality(min float64, max float64) float64

type CellLTEStats

type CellLTEStats struct {
	Stat *CellLTEStat `json:"stat"`
}

type CellularStats

type CellularStats struct {
	BytesReceived int
	BytesSent     int
}

type ConnectionStatus

type ConnectionStatus struct {
	ConnectionStatus int `json:"ConnectionStatus"`
}

type EthernetStats

type EthernetStats struct {
	Enable int                `json:"Enable"`
	Status string             `json:"Status"`
	Stat   *EthernetStatsStat `json:"stat"`
}

type EthernetStatsStat

type EthernetStatsStat struct {
	BytesSent       int `json:"BytesSent"`
	BytesReceived   int `json:"BytesReceived"`
	PacketsSent     int `json:"PacketsSent"`
	PacketsReceived int `json:"PacketsReceived"`
}

type FastmileRadioStatus

type FastmileRadioStatus struct {
	ConnectionStatus []*ConnectionStatus `json:"connection_status"`
	ApCfg            []*ApnCfg           `json:"apn_cfg"`
	CellularStats    []*CellularStats    `json:"cellular_stats"`
	EthernetStats    []*EthernetStats    `json:"ethernet_stats"`
	CellCAStats      []*CellCAStats      `json:"cell_CA_stats_cfg"`
	Cell5GStats      []*Cell5GStats      `json:"cell_5G_stats_cfg"`
	CellLTEStats     []*CellLTEStats     `json:"cell_LTE_stats_cfg"`
}

type FastmileReturn added in v0.0.3

type FastmileReturn struct {
	Error error
	Body  *FastmileRadioStatus
}

func (*FastmileReturn) BytesRecv added in v0.0.5

func (f *FastmileReturn) BytesRecv() float64

func (*FastmileReturn) BytesSent added in v0.0.5

func (f *FastmileReturn) BytesSent() float64

func (*FastmileReturn) Stat5G added in v0.0.5

func (f *FastmileReturn) Stat5G() *Cell5GStat

Stat5G returns the attached 5G stats

func (*FastmileReturn) StatCellular added in v0.0.5

func (f *FastmileReturn) StatCellular() *CellularStats

StatCellular returns the attached Cellular stats

func (*FastmileReturn) StatEthernet added in v0.0.5

func (f *FastmileReturn) StatEthernet() *EthernetStats

func (*FastmileReturn) StatLTE added in v0.0.5

func (f *FastmileReturn) StatLTE() *CellLTEStat

StatLTE returns the attached LTE stats

func (*FastmileReturn) Status added in v0.0.5

func (f *FastmileReturn) Status() float64

type PingReport added in v0.0.3

type PingReport struct {
	Hostname        string
	PacketsSent     int
	PacketLoss      float64
	AvgResponseTime time.Duration
}

type PingReportReturn added in v0.0.3

type PingReportReturn struct {
	Error error
	Body  *PingReport
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL