package
Version:
v0.0.0-...-84c3e8d
Opens a new window with list of versions in this module.
Published: Jan 27, 2025
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type GeomPoint geom.Point
Scan scan value into geom.Point, implements sql.Scanner interface
Value return geometry point value, implement driver.Valuer interface
type KeyAlias struct {
KeyID string `json:"key_id" gorm:"primaryKey"`
Alias string `json:"alias"`
Type string `json:"type"`
}
type KeyInfo struct {
ID string `gorm:"primaryKey" json:"id"`
Alias *KeyAlias `gorm:"foreignKey:KeyID;references:ID" json:"alias"`
LostAt *time.Time `json:"lostAt"`
}
type Location struct {
FoundAt time.Time `gorm:"primaryKey;index:idx_found_at"`
ReportedAt time.Time `gorm:"index:idx_reported_at"`
KeyID string `gorm:"primaryKey;index:idx_key_id"`
OriginalContent []byte
Geometry *GeomPoint `gorm:"type:geometry(POINT,4326);index:idx_geometry"`
Confidence int `gorm:"index:idx_confidence"`
Status int
CurrentKeyID string `gorm:"index:idx_current_key_id"`
}
type LocationResult struct {
FoundAt time.Time `json:"foundAt"`
ReportedAt time.Time `json:"reportedAt"`
KeyID string `json:"keyId"`
Lat float64 `json:"lat"`
Lng float64 `json:"lng"`
Confidence int `json:"confidence"`
Status int `json:"status"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.