apiserver

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(ctx context.Context, addr string, store store.Store) error

Start starts the server with specified store.

Types

type RevisionAPI

type RevisionAPI struct {
	// contains filtered or unexported fields
}

func (*RevisionAPI) All

func (api *RevisionAPI) All() handler.Handler

All returns last N revision from the store.

func (*RevisionAPI) FindByID added in v0.2.1

func (api *RevisionAPI) FindByID() handler.Handler

FindByID returns one revision found by it's unique id.

func (*RevisionAPI) Stats

func (api *RevisionAPI) Stats() handler.Handler

Stats returns application parsing statistics for last 12 month.

type VehicleAPI

type VehicleAPI struct {
	// contains filtered or unexported fields
}

func (*VehicleAPI) All

func (api *VehicleAPI) All() handler.Handler

func (*VehicleAPI) FindByNumber

func (api *VehicleAPI) FindByNumber() handler.Handler

func (*VehicleAPI) FindByRevisionID

func (api *VehicleAPI) FindByRevisionID() handler.Handler

func (*VehicleAPI) FindByVIN

func (api *VehicleAPI) FindByVIN() handler.Handler

Jump to

Keyboard shortcuts

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