models

package
v0.0.0-...-5c1f9b4 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	AccessToken  string `json:"access_token"`
	DeviceID     string `json:"device_id"`
	DeviceSecret string `json:"device_secret"`
}

Auth ...

type Lock

type Lock struct {
	FuelType      string  `json:"fuel_type"`
	CentsPerLitre float64 `json:"cents_per_litre"`
	HasRedeemed   bool    `json:"has_redeemed"`
	// TotalLitres   float64   `json:"total_litres"`
	Expires time.Time `json:"expires"`
}

Lock ...

type LockPayload

type LockPayload struct {
	Longitude    float64 `json:"longitude"`
	Latitude     float64 `json:"latitude"`
	AccessToken  string  `json:"access_token"`
	DeviceID     string  `json:"device_id"`
	DeviceSecret string  `json:"device_secret"`
	FuelType     string  `json:"fuel_type"`
	AccountID    string  `json:"account_id"`
}

LockPayload ...

type LoginDetails

type LoginDetails struct {
	Email       string `json:"email"`
	Password    string `json:"password"`
	AccessToken string `json:"access_token"`
	DeviceID    string `json:"device_id"`
}

LoginDetails ...

Jump to

Keyboard shortcuts

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