Documentation ¶
Index ¶
- type Server
- func (s *Server) AddScooterStatus(w http.ResponseWriter, r *http.Request, p httprouter.Params) error
- func (s *Server) FindScooter(w http.ResponseWriter, r *http.Request, p httprouter.Params) error
- func (s *Server) ReleaseScooter(w http.ResponseWriter, r *http.Request, p httprouter.Params) error
- func (s *Server) ReserveScooter(w http.ResponseWriter, r *http.Request, p httprouter.Params) error
- func (s Server) Start() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { ScooterReserver scooteriface.ScooterReserver StatusUpdater scooteriface.StatusUpdater ScooterFinder scooteriface.ScooterFinder HttpHandler http.Handler // contains filtered or unexported fields }
func (*Server) AddScooterStatus ¶
func (s *Server) AddScooterStatus(w http.ResponseWriter, r *http.Request, p httprouter.Params) error
func (*Server) FindScooter ¶
func (s *Server) FindScooter(w http.ResponseWriter, r *http.Request, p httprouter.Params) error
func (*Server) ReleaseScooter ¶
func (s *Server) ReleaseScooter(w http.ResponseWriter, r *http.Request, p httprouter.Params) error
func (*Server) ReserveScooter ¶
func (s *Server) ReserveScooter(w http.ResponseWriter, r *http.Request, p httprouter.Params) error
Click to show internal directories.
Click to hide internal directories.