Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Core ¶
type Core struct { ID uuid.UUID `gorm:"type:uuid;default:uuid_generate_v4();primary_key"` LastUpdated time.Time `gorm:"type:timestamp with time zone"` Features []JSONB `gorm:"type:jsonb"` Type string `gorm:"type:varchar(50)"` Weather JSONB `gorm:"type:json"` }
DB struct for auto-migration
type DataToCall ¶
type DataToCall struct { ID uuid.UUID `gorm:"type:uuid;default:uuid_generate_v4();primary_key"` LastUpdated time.Time `gorm:"type:timestamp with time zone" json:"last_updated"` Features []byte `gorm:"type:jsonb" json:"features"` Type string `gorm:"type:varchar(50)" json:"type"` Weather JSONB `gorm:"type:json" json:"weather"` }
Strcut to call data from PostgreSQL
type DataToInsert ¶
type DataToInsert struct { ID uuid.UUID LastUpdated time.Time Features string Type string Weather JSONB }
Struct to insert data into PostgreSQL
func (DataToInsert) TableName ¶
func (DataToInsert) TableName() string
type Indego ¶
type Indego struct { ID uuid.UUID `gorm:"type:uuid;default:uuid_generate_v4();primary_key"` LastUpdated time.Time `gorm:"type:timestamp with time zone" json:"last_updated"` Features []JSONB `gorm:"type:jsonb" json:"features"` Type string `gorm:"type:varchar(50)" json:"type"` }
Struct to unMarshal the result from indego API
type Property ¶
type Property struct { ID uint64 `json:"id"` Name string `json:"name"` Coordinates driver.Value `json:"coordinates"` TotalDocks uint8 `json:"totalDocks"` DocksAvailable uint8 `json:"docksAvailable"` BikesAvailable uint8 `json:"bikesAvailable"` ClassicBikesAvailable uint8 `json:"classicBikesAvailable"` SmartBikesAvailable uint8 `json:"smartBikesAvailable"` ElectricBikesAvailable uint8 `json:"electricBikesAvailable"` RewardBikesAvailable uint8 `json:"rewardBikesAvailable"` RewardDocksAvailable uint8 `json:"rewardDocksAvailable"` KioskStatus string `json:"kioskStatus"` KioskPublicStatus string `json:"kioskPublicStatus"` KioskConnectionStatus string `json:"kioskConnectionStatus"` KioskType uint8 `json:"kioskType"` AddressStreet string `json:"addressStreet"` AddressCity string `json:"addressCity"` AddressState string `json:"addressState"` AddressZipCode string `json:"addressZipCode"` Bikes []JSONB `json:"bikes"` CloseTime driver.Value `json:"closeTime"` EventEnd driver.Value `json:"eventEnd"` EventStart driver.Value `json:"eventStart"` IsEventBased bool `json:"isEventBased"` IsVirtual bool `json:"isVirtual"` KioskId uint64 `json:"kioskId"` Notes driver.Value `json:"notes"` OpenTime driver.Value `json:"openTime"` PublicText string `json:"publicText"` TimeZone driver.Value `json:"timeZone"` TrikesAvailable uint8 `json:"trikesAvailable"` Latitude float32 `json:"latitude"` Longitude float32 `json:"longitude"` }
type ResponseByKiosk ¶
Click to show internal directories.
Click to hide internal directories.