opencars

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	URI string
}

func New

func New(URI string) *API

func (*API) Search

func (client *API) Search(number string) ([]Transport, error)

type Transport

type Transport struct {
	ID                  int    `json:"id"`
	RegistrationAddress string `json:"registration_address"`
	RegistrationCode    int    `json:"registration_code"`
	Registration        string `json:"registration"`
	Date                string `json:"date"`
	Model               string `json:"model"`
	Year                int    `json:"year"`
	Color               string `json:"color"`
	Kind                string `json:"kind"`
	Body                string `json:"body"`
	Fuel                string `json:"fuel"`
	Capacity            int    `json:"capacity"`
	Weight              int    `json:"own_weight"`
	Number              string `json:"number"`
}

Jump to

Keyboard shortcuts

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