Documentation ¶
Index ¶
- type DBAssumedCoverageHistory
- type DBAssumedGatewayCoverageHistory
- type DBAssumedUnverifiedCoverage
- type DBCoverageHistory
- type DBMappingAuthToken
- type DBMappingDiscoveryReceiptRecord
- type DBMappingDownlinkReceiptRecord
- type DBMappingRecord
- type DBUnverifiedMappingGatewayRecord
- type DBUnverifiedMappingRecord
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBAssumedCoverageHistory ¶
type DBAssumedCoverageHistory struct { // Res 8 cell of the location of the coverage Location h3light.DatabaseCell // Date this coverage was (assumed to be) present based on the measurements Date time.Time }
func NewDBAssumedCoverageHistory ¶
func NewDBAssumedCoverageHistory(m *types.AssumedCoverageHistory) *DBAssumedCoverageHistory
func (*DBAssumedCoverageHistory) AssumedCoverageHistory ¶
func (e *DBAssumedCoverageHistory) AssumedCoverageHistory() *types.AssumedCoverageHistory
func (*DBAssumedCoverageHistory) Entity ¶
func (e *DBAssumedCoverageHistory) Entity() string
func (*DBAssumedCoverageHistory) Key ¶
func (e *DBAssumedCoverageHistory) Key() string
type DBAssumedGatewayCoverageHistory ¶
type DBAssumedGatewayCoverageHistory struct { // Res 8 cell of the location of the coverage Location h3light.DatabaseCell // Date this coverage was (assumed to be) present based on the measurements Date time.Time // ID of the gateway that provides this coverage GatewayID string // The number of (res10) coverage records this gateway actually has within this (res8) cell NumCoverage int Share int }
func NewDBAssumedGatewayCoverageHistory ¶
func NewDBAssumedGatewayCoverageHistory(location h3light.Cell, date time.Time, m *types.AssumedGatewayCoverageHistory) *DBAssumedGatewayCoverageHistory
func (*DBAssumedGatewayCoverageHistory) AssumedGatewayCoverageHistory ¶
func (e *DBAssumedGatewayCoverageHistory) AssumedGatewayCoverageHistory() *types.AssumedGatewayCoverageHistory
func (*DBAssumedGatewayCoverageHistory) Entity ¶
func (e *DBAssumedGatewayCoverageHistory) Entity() string
func (*DBAssumedGatewayCoverageHistory) Key ¶
func (e *DBAssumedGatewayCoverageHistory) Key() string
type DBAssumedUnverifiedCoverage ¶
type DBAssumedUnverifiedCoverage struct { // Res 8 cell of the location of the coverage Location h3light.DatabaseCell // When was this unverified assumed coverage last updated LatestUpdate time.Time }
func NewDBAssumedUnverifiedCoverage ¶
func NewDBAssumedUnverifiedCoverage(m *types.AssumedUnverifiedCoverage) *DBAssumedUnverifiedCoverage
func (*DBAssumedUnverifiedCoverage) AssumedUnverifiedCoverage ¶
func (e *DBAssumedUnverifiedCoverage) AssumedUnverifiedCoverage() *types.AssumedUnverifiedCoverage
func (*DBAssumedUnverifiedCoverage) Entity ¶
func (e *DBAssumedUnverifiedCoverage) Entity() string
func (*DBAssumedUnverifiedCoverage) Key ¶
func (e *DBAssumedUnverifiedCoverage) Key() string
type DBCoverageHistory ¶
type DBCoverageHistory struct { // Res 10 cell of the location of the coverage Location h3light.DatabaseCell // Date this coverage was (assumed to be) present based on the measurements Date time.Time // ID of the gateway that provides this coverage GatewayID string // ID of the gateway that provides this coverage GatewayLocation h3light.DatabaseCell // FrequencyPlan FrequencyPlan frequency_plan.BandName // ID of the mapper that mapped this coverage MapperID string // ID of the mapping record that was used to base this coverage on MappingID string // time of the mapping record that was used to base this coverage on MappingTime time.Time // The RSSI (signal strength) of coverage at this location RSSI int }
func NewDBCoverageHistory ¶
func NewDBCoverageHistory(m *types.CoverageHistory) *DBCoverageHistory
func (*DBCoverageHistory) CoverageHistory ¶
func (e *DBCoverageHistory) CoverageHistory() *types.CoverageHistory
func (*DBCoverageHistory) Entity ¶
func (e *DBCoverageHistory) Entity() string
func (*DBCoverageHistory) Key ¶
func (e *DBCoverageHistory) Key() string
type DBMappingAuthToken ¶
func (*DBMappingAuthToken) Entity ¶
func (e *DBMappingAuthToken) Entity() string
func (*DBMappingAuthToken) Key ¶
func (e *DBMappingAuthToken) Key() string
type DBMappingDiscoveryReceiptRecord ¶
type DBMappingDiscoveryReceiptRecord struct { MappingID string Frequency int `datastore:",noindex"` Rssi int `datastore:",noindex"` Snr float64 `datastore:",noindex"` SpreadingFactor int `datastore:",noindex"` Bandwidth int `datastore:",noindex"` CodeRate string `datastore:",noindex"` Phy []byte `datastore:",noindex"` ReceivedTime time.Time GatewayTime time.Time GatewaySignature []byte `datastore:",noindex"` GatewayID string GatewayLocation *h3light.DatabaseCell MapperID string ServiceValidation types.MappingRecordValidation }
func NewDBMappingDiscoveryReceiptRecord ¶
func NewDBMappingDiscoveryReceiptRecord(mappingID types.ID, record *types.MappingDiscoveryReceiptRecord) *DBMappingDiscoveryReceiptRecord
func (*DBMappingDiscoveryReceiptRecord) DiscoveryReceiptRecord ¶
func (e *DBMappingDiscoveryReceiptRecord) DiscoveryReceiptRecord() *types.MappingDiscoveryReceiptRecord
func (*DBMappingDiscoveryReceiptRecord) Entity ¶
func (e *DBMappingDiscoveryReceiptRecord) Entity() string
func (*DBMappingDiscoveryReceiptRecord) Key ¶
func (e *DBMappingDiscoveryReceiptRecord) Key() string
type DBMappingDownlinkReceiptRecord ¶
type DBMappingDownlinkReceiptRecord struct { MappingID string Frequency int `datastore:",noindex"` Rssi int `datastore:",noindex"` Snr float64 `datastore:",noindex"` SpreadingFactor int `datastore:",noindex"` Bandwidth int `datastore:",noindex"` CodeRate string `datastore:",noindex"` Phy []byte `datastore:",noindex"` ReceivedTime time.Time GatewayTime time.Time GatewaySignature []byte `datastore:",noindex"` GatewayID string MapperID string ServiceValidation types.MappingRecordValidation }
func NewDBMappingDownlinkReceiptRecord ¶
func NewDBMappingDownlinkReceiptRecord(mappingID types.ID, record *types.MappingDownlinkReceiptRecord) *DBMappingDownlinkReceiptRecord
func (*DBMappingDownlinkReceiptRecord) DownlinkReceiptRecord ¶
func (e *DBMappingDownlinkReceiptRecord) DownlinkReceiptRecord() *types.MappingDownlinkReceiptRecord
func (*DBMappingDownlinkReceiptRecord) Entity ¶
func (e *DBMappingDownlinkReceiptRecord) Entity() string
func (*DBMappingDownlinkReceiptRecord) Key ¶
func (e *DBMappingDownlinkReceiptRecord) Key() string
type DBMappingRecord ¶
type DBMappingRecord struct { ID string DiscoveryPhy []byte `datastore:",noindex"` DownlinkPhy []byte `datastore:",noindex"` MeasuredRssi *int MeasuredSnr *int FrequencyPlan string ChallengedGatewayID *string ChallengedGatewayLocation *h3light.DatabaseCell ChallengedTime *time.Time MapperID string MapperLocation h3light.DatabaseCell MapperLat float64 MapperLon float64 MapperHeight float64 MapperOsnmaAge int MapperSpoofing int MapperTow int MapperBattery int MapperVersion int MapperStatus int ReceivedTime time.Time ServiceValidation types.MappingRecordValidation }
func NewDBMappingRecord ¶
func NewDBMappingRecord(mappingRecord *types.MappingRecord) *DBMappingRecord
func (*DBMappingRecord) Entity ¶
func (e *DBMappingRecord) Entity() string
func (*DBMappingRecord) Key ¶
func (e *DBMappingRecord) Key() string
func (*DBMappingRecord) MappingRecord ¶
func (e *DBMappingRecord) MappingRecord() *types.MappingRecord
type DBUnverifiedMappingGatewayRecord ¶
type DBUnverifiedMappingGatewayRecord struct { MappingID string GatewayID string GatewayLocation *h3light.DatabaseCell GatewayTime time.Time Rssi int Snr float64 }
func NewDBUnverifiedGatewayMappingRecord ¶
func NewDBUnverifiedGatewayMappingRecord(m *types.UnverifiedMappingGatewayRecord) (*DBUnverifiedMappingGatewayRecord, error)
func (*DBUnverifiedMappingGatewayRecord) Entity ¶
func (e *DBUnverifiedMappingGatewayRecord) Entity() string
func (*DBUnverifiedMappingGatewayRecord) Key ¶
func (e *DBUnverifiedMappingGatewayRecord) Key() string
func (*DBUnverifiedMappingGatewayRecord) UnverifiedMappingGatewayRecord ¶
func (e *DBUnverifiedMappingGatewayRecord) UnverifiedMappingGatewayRecord() *types.UnverifiedMappingGatewayRecord
type DBUnverifiedMappingRecord ¶
type DBUnverifiedMappingRecord struct { ID string MapperID string MapperLocation h3light.DatabaseCell MapperLat float64 MapperLon float64 MapperAccuracy float64 MapperHeight float64 BestGatewayID *string BestGatewayLocation *h3light.DatabaseCell BestGatewayRssi *int BestGatewaySnr *float64 Frequency int SpreadingFactor int Bandwidth int CodeRate string ReceivedTime time.Time }
func NewDBUnverifiedMappingRecord ¶
func NewDBUnverifiedMappingRecord(m *types.UnverifiedMappingRecord) (*DBUnverifiedMappingRecord, error)
func (*DBUnverifiedMappingRecord) Entity ¶
func (e *DBUnverifiedMappingRecord) Entity() string
func (*DBUnverifiedMappingRecord) Key ¶
func (e *DBUnverifiedMappingRecord) Key() string
func (*DBUnverifiedMappingRecord) UnverifiedMappingRecord ¶
func (e *DBUnverifiedMappingRecord) UnverifiedMappingRecord() *types.UnverifiedMappingRecord
Source Files ¶
Click to show internal directories.
Click to hide internal directories.