api

package
v0.0.0-...-b918f33 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateVehicle

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

todo: secure endpoint

func InitVehicles

func InitVehicles()

func ListVehicles

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

func RegisterVehicleHandlers

func RegisterVehicleHandlers()

Types

type Vehicle

type Vehicle struct {
	Make     string
	Model    string
	Type     string
	Price    string
	Currency string
	Image    string
}

func GetVehiclesFromDb

func GetVehiclesFromDb() []Vehicle

Jump to

Keyboard shortcuts

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