vehicle

package
v0.0.0-...-684a148 Latest Latest
Warning

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

Go to latest
Published: May 5, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateVehicleHandler

func CreateVehicleHandler(w http.ResponseWriter, r *http.Request)

func GetVehicleHandler

func GetVehicleHandler(w http.ResponseWriter, r *http.Request)

func UpdateVehicleHandler

func UpdateVehicleHandler(w http.ResponseWriter, r *http.Request)

Types

type Vehicle

type Vehicle struct {
	AccountId    string     `json:"-" dynamodbav:"primary_key"`
	SK           string     `json:"-" dynamodbav:"sort_key"`
	ID           string     `json:"id" dynamodbav:"vehicle_id"`
	Make         *string    `json:"make" dynamodbav:"make,omitempty"`
	Model        *string    `json:"model"  dynamodbav:"model,omitempty"`
	Year         *int       `json:"year"  dynamodbav:"year,omitempty"`
	Color        *string    `json:"color"  dynamodbav:"color,omitempty"`
	LicensePlate *string    `json:"license_plate"  dynamodbav:"license_plate,omitempty"`
	CreatedOn    *time.Time `json:"created_on" dynamodbav:"created_on,omitempty"`
	UpdatedOn    *time.Time `json:"updated_on" dynamodbav:"updated_on,omitempty"`
}

func (*Vehicle) GetVehicleById

func (v *Vehicle) GetVehicleById(accountId string, id string) error

func (*Vehicle) NewVehicle

func (v *Vehicle) NewVehicle(accountId string) error

func (*Vehicle) SaveVehicle

func (v *Vehicle) SaveVehicle() error

func (*Vehicle) UpdateVehicle

func (v *Vehicle) UpdateVehicle() error

Jump to

Keyboard shortcuts

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