v1

package
v0.0.230 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddUserRequest

type AddUserRequest struct {
	Email string `json:"email" binding:"required"`
}

type Destination

type Destination struct {
	Set          bool    `json:"-"`
	Latitude     float64 `json:"latitude"`
	Longitude    float64 `json:"longitude"`
	PlaceDetails string  `json:"place_details"`
	PlaceName    string  `json:"place_name"`
}

type DevicePatchable

type DevicePatchable struct {
	Alias nulltype.NullString `json:"alias" binding:"required"`
}

type EligibleFeatures

type EligibleFeatures struct {
	Navigation bool `json:"nav"`
	Prime      bool `json:"prime"`
	PrimeData  bool `json:"prime_data"`
}

type GETMeResponse

type GETMeResponse struct {
	Email          string `json:"email"`
	ID             string `json:"id"`
	Prime          bool   `json:"prime"`
	RegisteredDate uint   `json:"regdate"`
	Superuser      bool   `json:"superuser"`
	UserID         string `json:"user_id"`
	Username       string `json:"username"`
}

type GETMyDevicesResponse

type GETMyDevicesResponse struct {
	models.Device
	Alias            string           `json:"alias"`
	AthenaHost       string           `json:"athena_host"`
	EligibleFeatures EligibleFeatures `json:"eligible_features"`
	IgnoreUploads    bool             `json:"ignore_uploads"`
	IsOwner          bool             `json:"is_owner"`
}

type LocationResponse

type LocationResponse struct {
	DongleID string  `json:"dongle_id"`
	Lat      float64 `json:"lat"`
	Lon      float64 `json:"lng"`
	Time     int64   `json:"time"`
}

type PrimeSubscriptionResponse

type PrimeSubscriptionResponse struct {
	Amount            int    `json:"amount"`
	CancelAt          uint   `json:"cancel_at"`
	IsPrimeSim        bool   `json:"is_prime_sim"`
	NextChargeAt      uint   `json:"next_charge_at"`
	Plan              string `json:"plan"`
	RequiresMigration bool   `json:"requires_migration"`
	SubscribedAt      uint   `json:"subscribed_at"`
	TrialEnd          uint   `json:"trial_end"`
	UserID            string `json:"user_id"`
}

type SaveLocation

type SaveLocation struct {
	Label        string          `json:"label,omitempty"`
	Latitude     float64         `json:"latitude" binding:"required"`
	Longitude    float64         `json:"longitude" binding:"required"`
	PlaceDetails string          `json:"place_details,omitempty"`
	PlaceName    string          `json:"place_name,omitempty"`
	SaveType     models.SaveType `json:"save_type" binding:"required"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL