Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBGateway ¶
type DBGateway struct { // ID is the ThingsIX compressed public key for this gateway ID string ContractAddress string Version int Owner string AntennaGain *float32 FrequencyPlan *frequency_plan.BandName Location *h3light.DatabaseCell Altitude *int }
func NewDBGateway ¶
type DBGatewayEvent ¶
type DBGatewayEvent struct { ContractAddress string BlockNumber int TransactionIndex int LogIndex int Block string Transaction string Type types.GatewayEventType ID string Version int NewOwner *string `datastore:",omitempty"` OldOwner *string `datastore:",omitempty"` NewLocation *h3light.DatabaseCell `datastore:",omitempty"` OldLocation *h3light.DatabaseCell `datastore:",omitempty"` NewAltitude *int `datastore:",omitempty"` OldAltitude *int `datastore:",omitempty"` NewFrequencyPlan *frequency_plan.BandName `datastore:",omitempty"` OldFrequencyPlan *frequency_plan.BandName `datastore:",omitempty"` NewAntennaGain *float32 `datastore:",omitempty"` OldAntennaGain *float32 `datastore:",omitempty"` Time time.Time }
func NewDBGatewayEvent ¶
func NewDBGatewayEvent(event *types.GatewayEvent) *DBGatewayEvent
func (*DBGatewayEvent) Entity ¶
func (e *DBGatewayEvent) Entity() string
func (*DBGatewayEvent) GatewayEvent ¶
func (e *DBGatewayEvent) GatewayEvent() *types.GatewayEvent
func (*DBGatewayEvent) Key ¶
func (e *DBGatewayEvent) Key() string
type DBGatewayHistory ¶
type DBGatewayHistory struct { // ID is the ThingsIX compressed public key for this gateway ID string ContractAddress string Version int Owner *string `datastore:",omitempty"` AntennaGain *float32 `datastore:",omitempty"` FrequencyPlan *frequency_plan.BandName `datastore:",omitempty"` Location *h3light.DatabaseCell `datastore:",omitempty"` Altitude *int `datastore:",omitempty"` Time time.Time BlockNumber int Block string Transaction string }
func NewDBGatewayHistory ¶
func NewDBGatewayHistory(history *types.GatewayHistory) *DBGatewayHistory
func (*DBGatewayHistory) Entity ¶
func (e *DBGatewayHistory) Entity() string
func (*DBGatewayHistory) GatewayHistory ¶
func (e *DBGatewayHistory) GatewayHistory() *types.GatewayHistory
func (*DBGatewayHistory) Key ¶
func (e *DBGatewayHistory) Key() string
type DBGatewayOnboard ¶
type DBGatewayOnboard struct { GatewayID string Owner string Signature string Version int LocalID string Onboarder string CreatedAt time.Time }
func NewDBGatewayOnboard ¶
func (*DBGatewayOnboard) Entity ¶
func (e *DBGatewayOnboard) Entity() string
func (DBGatewayOnboard) GatewayOnboard ¶
func (e DBGatewayOnboard) GatewayOnboard() *GatewayOnboard
func (*DBGatewayOnboard) Key ¶
func (e *DBGatewayOnboard) Key() string
type DBPendingGatewayEvent ¶
type DBPendingGatewayEvent DBGatewayEvent
func NewDBPendingGatewayEvent ¶
func NewDBPendingGatewayEvent(event *types.GatewayEvent) *DBPendingGatewayEvent
func (*DBPendingGatewayEvent) Entity ¶
func (e *DBPendingGatewayEvent) Entity() string
func (*DBPendingGatewayEvent) GatewayEvent ¶
func (e *DBPendingGatewayEvent) GatewayEvent() *types.GatewayEvent
func (*DBPendingGatewayEvent) Key ¶
func (e *DBPendingGatewayEvent) Key() string
Click to show internal directories.
Click to hide internal directories.