model

package
v0.0.0-...-51e5f34 Latest Latest
Warning

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

Go to latest
Published: May 4, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitDb

func InitDb()

Types

type Aero

type Aero struct {
	ID           objectid.ObjectID `json:"_id,omitempty" bson:"_id,omitempty"`
	Manufacturer string            `json:"manufacturer" bson:"manufacturer"`
	Model        string            `json:"model" bson:"model"`
}

type Brakes

type Brakes struct {
	ID           objectid.ObjectID `json:"_id,omitempty" bson:"_id,omitempty"`
	Manufacturer string            `json:"manufacturer" bson:"manufacturer"`
	Model        string            `json:"model" bson:"model"`
	Rotors       struct {
		Manufacturer string `json:"manufacturer" bson:"manufacturer"`
		Model        string `json:"model" bson:"model"`
		Slotted      bool   `json:"slotted" bson:"slotted"`
		Drilled      bool   `json:"drilled" bson:"drilled"`
		Vented       bool   `json:"vented" bson:"vented"`
	} `json:"rotors" bson:"rotors"`
	Pads struct {
		Manufacturer string `json:"manufacturer" bson:"manufacturer"`
		Model        string `json:"model" bson:"model"`
	} `json:"pads" bson:"pads"`
}

type Car

type Car struct {
	ID           objectid.ObjectID `json:"_id,omitempty" bson:"_id,omitempty"`
	Manufacturer string            `json:"manufacturer" bson:"manufacturer"`
	Model        string            `json:"model" bson:"model"`
	Year         int               `json:"year" bson:"year"`
	Image        string            `json:"image" bson:"image"`
	FuelType     string            `json:"fuelType" bson:"fuelType"`
	Mods         struct {
		Tires struct {
			FrontLeft  objectid.ObjectID `json:"frontLeft" bson:"frontLeft"`
			FrontRight objectid.ObjectID `json:"frontRight" bson:"frontRight"`
			RearLeft   objectid.ObjectID `json:"rearLeft" bson:"rearLeft"`
			RearRight  objectid.ObjectID `json:"rearRight" bson:"rearRight"`
		} `json:"tires" bson:"tires"`
		Wheels struct {
			FrontLeft  objectid.ObjectID `json:"frontLeft" bson:"frontLeft"`
			FrontRight objectid.ObjectID `json:"frontRight" bson:"frontRight"`
			RearLeft   objectid.ObjectID `json:"rearLeft" bson:"rearLeft"`
			RearRight  objectid.ObjectID `json:"rearRight" bson:"rearRight"`
		} `json:"wheels" bson:"wheels"`
		Suspension objectid.ObjectID   `json:"suspension" bson:"suspension"`
		Brakes     objectid.ObjectID   `json:"brakes" bson:"brakes"`
		Exhaust    objectid.ObjectID   `json:"exhaust" bson:"exhaust"`
		Intake     objectid.ObjectID   `json:"intake" bson:"intake"`
		Aero       []objectid.ObjectID `json:"aero" bson:"aero"`
	} `json:"mods" bson:"mods"`
}

type Exhaust

type Exhaust struct {
	ID      objectid.ObjectID `json:"_id,omitempty" bson:"_id,omitempty"`
	Headers struct {
		Manufacturer string `json:"manufacturer" bson:"manufacturer"`
		Model        string `json:"model" bson:"model"`
	} `json:"exhaust" bson:"exhaust"`
	Catback struct {
		Manufacturer string `json:"manufacturer" bson:"manufacturer"`
		Model        string `json:"model" bson:"model"`
	} `json:"catback" bson:"catback"`
	Overpipe struct {
		Manufacturer string `json:"manufacturer" bson:"manufacturer"`
		Model        string `json:"model" bson:"model"`
	} `json:"overpipe" bson:"overpipe"`
	Frontpipe struct {
		Manufacturer string `json:"manufacturer" bson:"manufacturer"`
		Model        string `json:"model" bson:"model"`
	} `json:"frontpipe" bson:"frontpipe"`
	Midpipe struct {
		Manufacturer string `json:"manufacturer" bson:"manufacturer"`
		Model        string `json:"model" bson:"model"`
	} `json:"midpipe" bson:"midpipe"`
	Muffler struct {
		Manufacturer string `json:"manufacturer" bson:"manufacturer"`
		Model        string `json:"model" bson:"model"`
	} `json:"muffler" bson:"muffler"`
}

type Intake

type Intake struct {
	ID           objectid.ObjectID `json:"_id,omitempty" bson:"_id,omitempty"`
	Manufacturer string            `json:"manufacturer" bson:"manufacturer"`
	Model        string            `json:"model" bson:"model"`
}

type Suspension

type Suspension struct {
	ID           objectid.ObjectID `json:"_id,omitempty" bson:"_id,omitempty"`
	Manufacturer string            `json:"manufacturer" bson:"manufacturer"`
	Model        string            `json:"model" bson:"model"`
	RideHeight   float32           `json:"rideHeight" bson:"rideHeight"`
	Camber       float32           `json:"camber" bson:"camber"`
	Damping      int               `json:"damping" bson:"damping"`
}

type Tire

type Tire struct {
	ID           objectid.ObjectID `json:"_id,omitempty" bson:"_id,omitempty"`
	Manufacturer string            `json:"manufacturer" bson:"manufacturer"`
	Model        string            `json:"model" bson:"model"`
	Width        int               `json:"width" bson:"width"`
	AspectRatio  int               `json:"aspectRatio" bson:"aspectRatio"`
	Diameter     int               `json:"diameter" bson:"diameter"`
}

type Wheel

type Wheel struct {
	ID           objectid.ObjectID `json:"_id,omitempty" bson:"_id,omitempty"`
	Manufacturer string            `json:"manufacturer" bson:"manufacturer"`
	Model        string            `json:"model" bson:"model"`
	Offset       int               `json:"offset" bson:"offset"`
	Diameter     int               `json:"diameter" bson:"diameter"`
}

Jump to

Keyboard shortcuts

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