Documentation
¶
Index ¶
- type App
- type ClientToken
- type Entities
- type EntityFunc
- type Flowerbed
- type Git
- type Image
- type IntroSpectTokenResult
- type LoginCallback
- type LoginRequest
- type LoginResp
- type Logout
- type MqttData
- type MqttDataPayload
- type MqttDecodedPayload
- type MqttIdentifier
- type MqttIdentifierApplicationID
- type MqttIdentifierDeviceID
- type MqttLocation
- type MqttNetworkIDs
- type MqttPayload
- type MqttRxMetadata
- type MqttRxMetadataGatewayIDs
- type MqttRxMetadataPacketBroker
- type MqttUplinkMessage
- type MqttUplinkSettings
- type MqttUplinkSettingsDataRate
- type MqttUplinkSettingsLora
- type MqttVersionIDs
- type MqttVisibility
- type Region
- type RegisterUser
- type Role
- type Sensor
- type SensorData
- type SensorStatus
- type Server
- type Tree
- type TreeCluster
- type TreeClusterCreate
- type TreeClusterUpdate
- type TreeCreate
- type TreeImport
- type TreeSoilCondition
- type TreeUpdate
- type User
- type Vehicle
- type WateringStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientToken ¶
type EntityFunc ¶
type EntityFunc[T Entities] func(*T)
type IntroSpectTokenResult ¶
type LoginCallback ¶
type LoginRequest ¶
type MqttData ¶
type MqttData struct { Name string Time *time.Time Identifiers []MqttIdentifier Data MqttDataPayload CorrelationIDs []string Origin string Context map[string]string Visibility MqttVisibility UniqueID string }
type MqttDataPayload ¶
type MqttDataPayload struct { Type string EndDeviceIDs MqttIdentifierDeviceID CorrelationIDs []string ReceivedAt *time.Time UplinkMessage MqttUplinkMessage }
type MqttDecodedPayload ¶
type MqttIdentifier ¶
type MqttIdentifier struct {
DeviceIDs MqttIdentifierDeviceID
}
type MqttIdentifierApplicationID ¶
type MqttIdentifierApplicationID struct {
ApplicationID string
}
type MqttIdentifierDeviceID ¶
type MqttIdentifierDeviceID struct { DeviceID string ApplicationIDs MqttIdentifierApplicationID DevEUI string JoinEUI string DevAddr string }
type MqttLocation ¶
type MqttNetworkIDs ¶
type MqttPayload ¶
type MqttPayload struct { EndDeviceIDs MqttIdentifierDeviceID CorrelationIDs []string ReceivedAt *time.Time UplinkMessage MqttUplinkMessage }
func (*MqttPayload) GetBattery ¶
func (m *MqttPayload) GetBattery() float64
func (*MqttPayload) GetHumidity ¶
func (m *MqttPayload) GetHumidity() int
type MqttRxMetadata ¶
type MqttRxMetadata struct { GatewayIDs MqttRxMetadataGatewayIDs PacketBroker MqttRxMetadataPacketBroker Time *time.Time Rssi int ChannelRssi int Snr float64 FrequencyOffset string Location MqttLocation UplinkToken string ReceivedAt *time.Time }
type MqttRxMetadataGatewayIDs ¶
type MqttRxMetadataGatewayIDs struct {
GatewayID string
}
type MqttUplinkMessage ¶
type MqttUplinkMessage struct { SessionKeyID string FPort int Fcnt int FRMPayload string DecodedPayload MqttDecodedPayload RxMetadata []MqttRxMetadata Settings MqttUplinkSettings ReceivedAt *time.Time Confirmed bool ConsumedAirtime string VersionIDs MqttVersionIDs NetworkIDs MqttNetworkIDs }
type MqttUplinkSettings ¶
type MqttUplinkSettings struct { DataRate MqttUplinkSettingsDataRate Frequency string }
type MqttUplinkSettingsDataRate ¶
type MqttUplinkSettingsDataRate struct {
Lora MqttUplinkSettingsLora
}
type MqttUplinkSettingsLora ¶
type MqttVersionIDs ¶
type MqttVisibility ¶
type MqttVisibility struct {
Rights []string
}
type RegisterUser ¶
type Sensor ¶
type Sensor struct { ID int32 CreatedAt time.Time UpdatedAt time.Time Status SensorStatus Data []*SensorData }
type SensorData ¶
type SensorStatus ¶
type SensorStatus string
const ( SensorStatusOnline SensorStatus = "online" SensorStatusOffline SensorStatus = "offline" SensorStatusUnknown SensorStatus = "unknown" )
type TreeCluster ¶
type TreeCluster struct { ID int32 CreatedAt time.Time UpdatedAt time.Time WateringStatus WateringStatus LastWatered *time.Time MoistureLevel float64 Region *Region Address string Description string Archived bool Latitude *float64 Longitude *float64 Trees []*Tree SoilCondition TreeSoilCondition Name string }
type TreeClusterCreate ¶
type TreeClusterCreate struct { Address string Description string Name string SoilCondition TreeSoilCondition TreeIDs []*int32 }
type TreeClusterUpdate ¶
type TreeClusterUpdate struct { Address string Description string SoilCondition TreeSoilCondition TreeIDs []*int32 Name string }
type TreeCreate ¶
type TreeImport ¶
type TreeImport struct { Area string `validate:"required"` Number string `validate:"required"` Species string Latitude float64 `validate:"required,max=90,min=-90"` Longitude float64 `validate:"required,max=180,min=-180"` PlantingYear int32 `validate:"gt=0"` Street string `validate:"required"` TreeID int32 }
type TreeSoilCondition ¶
type TreeSoilCondition string
const ( TreeSoilConditionSchluffig TreeSoilCondition = "schluffig" TreeSoilConditionSandig TreeSoilCondition = "sandig" TreeSoilConditionLehmig TreeSoilCondition = "lehmig" TreeSoilConditionTonig TreeSoilCondition = "tonig" TreeSoilConditionUnknown TreeSoilCondition = "unknown" )
type TreeUpdate ¶
type User ¶
type User struct { ID uuid.UUID CreatedAt time.Time Username string `validate:"required,min=3,max=15"` FirstName string `validate:"required,min=3,max=30"` LastName string `validate:"required,min=3,max=30"` Email string `validate:"required,email"` EmployeeID string PhoneNumber string EmailVerified bool Avatar *url.URL }
type WateringStatus ¶
type WateringStatus string
const ( WateringStatusGood WateringStatus = "good" WateringStatusModerate WateringStatus = "moderate" WateringStatusBad WateringStatus = "bad" WateringStatusUnknown WateringStatus = "unknown" )
Click to show internal directories.
Click to hide internal directories.