dao

package
v0.0.0-...-7e06a17 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 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 AvgFuelConsumption

type AvgFuelConsumption struct {
	Norm        int64  `json:"norm"`
	Measurement string `json:"measurement"`
}

AvgFuelConsumption (autogenerated type)

type Car

type Car struct {
	Data CarData `json:"data"`
}

Car (autogenerated type)

type CarData

type CarData struct {
	Units []CarUnit `json:"units"`
}

CarData (autogenerated type)

type CarUnit

type CarUnit struct {
	UnitID             int64              `json:"unit_id"`
	BoxID              int64              `json:"box_id"`
	CompanyID          int64              `json:"company_id"`
	CountryCode        string             `json:"country_code"`
	Label              string             `json:"label"`
	Number             string             `json:"number"`
	Shortcut           string             `json:"shortcut"`
	VehicleTitle       interface{}        `json:"vehicle_title"`
	CarRegCertificate  string             `json:"car_reg_certificate"`
	Vin                string             `json:"vin"`
	Type               string             `json:"type"`
	Icon               string             `json:"icon"`
	Lat                float64            `json:"lat"`
	Lng                float64            `json:"lng"`
	Direction          int64              `json:"direction"`
	Speed              interface{}        `json:"speed"`
	Mileage            int64              `json:"mileage"`
	LastUpdate         string             `json:"last_update"`
	IgnitionTotalTime  int64              `json:"ignition_total_time"`
	State              State              `json:"state"`
	MovementState      State              `json:"movement_state"`
	FuelType           string             `json:"fuel_type"`
	AvgFuelConsumption AvgFuelConsumption `json:"avg_fuel_consumption"`
	CreatedAt          string             `json:"created_at"`
}

CarUnit (autogenerated type)

type DebugInfo

type DebugInfo struct {
}

DebugInfo (autogenerated type)

type MaponError

type MaponError struct {
	Err struct {
		Code int    `json:"code"`
		Msg  string `json:"msg"`
	} `json:"error"`
}

MaponError represents a Mapon Error Response.

type Point

type Point struct {
	Time    time.Time `json:"time"`
	Address *string   `json:"address,omitempty"`
	Lat     *float64  `json:"lat,omitempty"`
	Lng     *float64  `json:"lng,omitempty"`
}

Point (autogenerated type)

type Route

type Route struct {
	Data *RouteData `json:"data"`
}

Route (autogenerated type)

type RouteData

type RouteData struct {
	Units []*RouteUnit `json:"units"`
}

RouteData (autogenerated type)

type RouteElement

type RouteElement struct {
	Type     UnitType `json:"type"`
	RouteID  int64    `json:"route_id"`
	Start    Point    `json:"start"`
	End      *Point   `json:"end,omitempty"`
	AvgSpeed *int64   `json:"avg_speed,omitempty"`
	MaxSpeed *int64   `json:"max_speed,omitempty"`
	Distance *int64   `json:"distance,omitempty"`
}

RouteElement (autogenerated type)

type RouteUnit

type RouteUnit struct {
	UnitID int64           `json:"unit_id"`
	Routes []*RouteElement `json:"routes"`
}

RouteUnit (autogenerated type)

type State

type State struct {
	Name      string     `json:"name"`
	Start     string     `json:"start"`
	Duration  int64      `json:"duration"`
	DebugInfo *DebugInfo `json:"debug_info,omitempty"`
}

State (autogenerated type)

type UnitType

type UnitType string

UnitType (autogenerated type)

const (
	Stop      UnitType = "stop"
	TypeRoute UnitType = "route"
)

Enumerated values for UnitType (autogenerated type)

type User

type User struct {
	Email    string `bson:"email"`
	Password string `bson:"password"`
}

User represents an application user DAO.

Jump to

Keyboard shortcuts

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