server

package
v0.0.0-...-3bbbb78 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2020 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 Server

type Server struct {
	Config *model.ServerConfig
	Router *mux.Router
	Cache  model.Cache
}

func New

func New(serverConfig *model.ServerConfig, cache model.Cache, db model.DB) *Server

func (*Server) GetAccessories

func (Server *Server) GetAccessories(w http.ResponseWriter, r *http.Request)

func (*Server) GetAccessoryWithId

func (Server *Server) GetAccessoryWithId(w http.ResponseWriter, r *http.Request)

func (*Server) GetCarWithId

func (Server *Server) GetCarWithId(w http.ResponseWriter, r *http.Request)

func (*Server) GetCars

func (Server *Server) GetCars(w http.ResponseWriter, r *http.Request)

func (*Server) GetRecentItems

func (Server *Server) GetRecentItems(w http.ResponseWriter, r *http.Request)

func (*Server) SetSelectedCar

func (Server *Server) SetSelectedCar(w http.ResponseWriter, r *http.Request)

func (*Server) SetSelectedItem

func (Server *Server) SetSelectedItem(w http.ResponseWriter, r *http.Request)

func (*Server) Start

func (Server *Server) Start()

Jump to

Keyboard shortcuts

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