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 (*Vehicle) NewVehicle ¶
func (*Vehicle) SaveVehicle ¶
func (*Vehicle) UpdateVehicle ¶
Click to show internal directories.
Click to hide internal directories.