Documentation
¶
Index ¶
- Constants
- type API
- type APIControllers
- type APICoordinates
- type APINews
- type APIPlugin
- type APIPlugins
- type APIVersion
- type Handlers
- type Server
- func (self *Server) APIControllersRespond(api *APIControllers, w http.ResponseWriter, r *http.Request)
- func (self *Server) APICoordinatesRespond(api *APICoordinates, w http.ResponseWriter, r *http.Request, code int)
- func (self *Server) APINewsRespond(api *APINews, w http.ResponseWriter, r *http.Request)
- func (self *Server) APIPluginRespond(api *APIPlugin, w http.ResponseWriter, r *http.Request)
- func (self *Server) APIPluginsRespond(api *APIPlugins, w http.ResponseWriter, r *http.Request)
- func (self *Server) APIRespond(api *API, w http.ResponseWriter, r *http.Request, code int)
- func (self *Server) APIVersionRespond(api *APIVersion, w http.ResponseWriter, r *http.Request)
- func (self *Server) Accelerate(w http.ResponseWriter, r *http.Request)
- func (self *Server) AddCoordinates(w http.ResponseWriter, r *http.Request)
- func (self *Server) Bicycle(w http.ResponseWriter, r *http.Request)
- func (self *Server) Car(w http.ResponseWriter, r *http.Request)
- func (self *Server) Controller(w http.ResponseWriter, r *http.Request)
- func (self *Server) Controllers(w http.ResponseWriter, r *http.Request)
- func (self *Server) Coordinates(w http.ResponseWriter, r *http.Request)
- func (self *Server) Decelerate(w http.ResponseWriter, r *http.Request)
- func (self *Server) DecreaseModifier(w http.ResponseWriter, r *http.Request)
- func (self *Server) DeleteCoordinates(w http.ResponseWriter, r *http.Request)
- func (self *Server) Flip(w http.ResponseWriter, r *http.Request)
- func (self *Server) Get(w http.ResponseWriter, r *http.Request)
- func (self *Server) GetAPI() *API
- func (self *Server) GetAPIControllers() *APIControllers
- func (self *Server) GetAPICoordinates() *APICoordinates
- func (self *Server) GetAPINews() *APINews
- func (self *Server) GetAPIPlugin() *APIPlugin
- func (self *Server) GetAPIPlugins() *APIPlugins
- func (self *Server) GetAPIVersion() *APIVersion
- func (self *Server) GetHandlers() []*Handlers
- func (self *Server) Headers(w http.ResponseWriter, content int, code int)
- func (self *Server) IncreaseModifier(w http.ResponseWriter, r *http.Request)
- func (self *Server) Index(w http.ResponseWriter, r *http.Request)
- func (self *Server) Jog(w http.ResponseWriter, r *http.Request)
- func (self *Server) Left(w http.ResponseWriter, r *http.Request)
- func (self *Server) ListenAndServe() error
- func (self *Server) ListenAndServeTLS(certFile, keyFile string) error
- func (self *Server) News(w http.ResponseWriter, r *http.Request)
- func (self *Server) NorthEast(w http.ResponseWriter, r *http.Request)
- func (self *Server) NorthWest(w http.ResponseWriter, r *http.Request)
- func (self *Server) Plugin(w http.ResponseWriter, r *http.Request)
- func (self *Server) Plugins(w http.ResponseWriter, r *http.Request)
- func (self *Server) ResetModifier(w http.ResponseWriter, r *http.Request)
- func (self *Server) Right(w http.ResponseWriter, r *http.Request)
- func (self *Server) ServerAddr() string
- func (self *Server) Set(w http.ResponseWriter, r *http.Request)
- func (self *Server) SetAngle(w http.ResponseWriter, r *http.Request)
- func (self *Server) SetCoordinates(w http.ResponseWriter, r *http.Request)
- func (self *Server) SetCoords(w http.ResponseWriter, r *http.Request)
- func (self *Server) SetModifier(w http.ResponseWriter, r *http.Request)
- func (self *Server) SouthEast(w http.ResponseWriter, r *http.Request)
- func (self *Server) SouthWest(w http.ResponseWriter, r *http.Request)
- func (self *Server) ToggleMode(w http.ResponseWriter, r *http.Request)
- func (self *Server) Version(w http.ResponseWriter, r *http.Request)
- func (self *Server) VersionOnce(w http.ResponseWriter, r *http.Request)
- func (self *Server) VersionStart(w http.ResponseWriter, r *http.Request)
- func (self *Server) VersionStop(w http.ResponseWriter, r *http.Request)
- func (self *Server) Walk(w http.ResponseWriter, r *http.Request)
Constants ¶
View Source
const ( CONTENT_JSON = iota + 1 CONTENT_HTML )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct { Angle int `json:"angle"` Mode int `json:"mode"` ModeString string `json:"mode-string,omitempty"` Modifier int `json:"modifier"` Speed float64 `json:"speed"` Latitude float64 `json:"latitude"` Longitude float64 `json:"longitude"` Accelerating bool `json:"accelerating"` Error string `json:"error,omitempty"` }
type APIControllers ¶
type APICoordinates ¶
type APICoordinates struct { Key string `json:"key,omitempty"` Latitude float64 `json:"latitude,omitempty"` Longitude float64 `json:"longitude,omitempty"` Accelerating bool `json:"accelerating,omitempty"` Coordinates map[string]*coordinates.Coordinate `json:"coordinates,omitempty"` Error string `json:"error,omitempty"` }
type APIPlugins ¶
type APIVersion ¶
type APIVersion struct { Version string `json:"version"` VersionState string `json:"version-state"` Major int `json:"major"` Minor int `json:"minor"` Build int `json:"build"` Versions []*version.Version `json:"versions,omitempty"` Running bool `json:"running"` Stopping bool `json:"stopping"` Once bool `json:"once"` }
type Handlers ¶
type Handlers struct { Pattern string Handler http.HandlerFunc }
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) APIControllersRespond ¶
func (self *Server) APIControllersRespond( api *APIControllers, w http.ResponseWriter, r *http.Request, )
func (*Server) APICoordinatesRespond ¶
func (self *Server) APICoordinatesRespond( api *APICoordinates, w http.ResponseWriter, r *http.Request, code int, )
func (*Server) APINewsRespond ¶
func (*Server) APIPluginRespond ¶
func (*Server) APIPluginsRespond ¶
func (self *Server) APIPluginsRespond( api *APIPlugins, w http.ResponseWriter, r *http.Request, )
func (*Server) APIRespond ¶
func (*Server) APIVersionRespond ¶
func (self *Server) APIVersionRespond( api *APIVersion, w http.ResponseWriter, r *http.Request, )
func (*Server) Accelerate ¶
func (self *Server) Accelerate(w http.ResponseWriter, r *http.Request)
func (*Server) AddCoordinates ¶
func (self *Server) AddCoordinates(w http.ResponseWriter, r *http.Request)
func (*Server) Controller ¶
func (self *Server) Controller( w http.ResponseWriter, r *http.Request, )
func (*Server) Controllers ¶
func (self *Server) Controllers(w http.ResponseWriter, r *http.Request)
func (*Server) Coordinates ¶
func (self *Server) Coordinates(w http.ResponseWriter, r *http.Request)
func (*Server) Decelerate ¶
func (self *Server) Decelerate(w http.ResponseWriter, r *http.Request)
func (*Server) DecreaseModifier ¶
func (self *Server) DecreaseModifier(w http.ResponseWriter, r *http.Request)
func (*Server) DeleteCoordinates ¶
func (self *Server) DeleteCoordinates(w http.ResponseWriter, r *http.Request)
func (*Server) GetAPIControllers ¶
func (self *Server) GetAPIControllers() *APIControllers
func (*Server) GetAPICoordinates ¶
func (self *Server) GetAPICoordinates() *APICoordinates
func (*Server) GetAPINews ¶
func (*Server) GetAPIPlugin ¶
func (*Server) GetAPIPlugins ¶
func (self *Server) GetAPIPlugins() *APIPlugins
func (*Server) GetAPIVersion ¶
func (self *Server) GetAPIVersion() *APIVersion
func (*Server) GetHandlers ¶
func (*Server) Headers ¶
func (self *Server) Headers( w http.ResponseWriter, content int, code int, )
func (*Server) IncreaseModifier ¶
func (self *Server) IncreaseModifier(w http.ResponseWriter, r *http.Request)
func (*Server) ListenAndServe ¶
func (*Server) ListenAndServeTLS ¶
func (*Server) ResetModifier ¶
func (self *Server) ResetModifier(w http.ResponseWriter, r *http.Request)
func (*Server) ServerAddr ¶
func (*Server) SetCoordinates ¶
func (self *Server) SetCoordinates(w http.ResponseWriter, r *http.Request)
func (*Server) SetModifier ¶
func (self *Server) SetModifier(w http.ResponseWriter, r *http.Request)
func (*Server) ToggleMode ¶
func (self *Server) ToggleMode(w http.ResponseWriter, r *http.Request)
func (*Server) VersionOnce ¶
func (self *Server) VersionOnce(w http.ResponseWriter, r *http.Request)
func (*Server) VersionStart ¶
func (self *Server) VersionStart(w http.ResponseWriter, r *http.Request)
func (*Server) VersionStop ¶
func (self *Server) VersionStop(w http.ResponseWriter, r *http.Request)
Source Files
¶
- api.go
- api_controllers.go
- api_coordinates.go
- api_news.go
- api_plugin.go
- api_plugins.go
- api_version.go
- headers.go
- server.go
- server_actions.go
- server_controller.go
- server_controllers.go
- server_coordinates.go
- server_coordinates_post.go
- server_get.go
- server_index.go
- server_news.go
- server_plugin.go
- server_plugins.go
- server_set.go
- server_version.go
Click to show internal directories.
Click to hide internal directories.