Versions in this module Expand all Collapse all v1 v1.13.0 May 22, 2019 Changes in this version + func AllowRequestsFrom(allowedOrigins ...string) http.HandlerFunc + func BasicAuth(username, password string) http.HandlerFunc + type API struct + Cert string + Host string + Key string + Port string + func NewAPI(m *gobot.Master) *API + func (a *API) AddC3PIORoutes() + func (a *API) AddHandler(f func(http.ResponseWriter, *http.Request)) + func (a *API) AddRobeauxRoutes() + func (a *API) Debug() + func (a *API) Delete(path string, f func(http.ResponseWriter, *http.Request)) + func (a *API) Get(path string, f func(http.ResponseWriter, *http.Request)) + func (a *API) Head(path string, f func(http.ResponseWriter, *http.Request)) + func (a *API) Options(path string, f func(http.ResponseWriter, *http.Request)) + func (a *API) Post(path string, f func(http.ResponseWriter, *http.Request)) + func (a *API) Put(path string, f func(http.ResponseWriter, *http.Request)) + func (a *API) ServeHTTP(res http.ResponseWriter, req *http.Request) + func (a *API) Start() + func (a *API) StartWithoutDefaults() + type CORS struct + AllowHeaders []string + AllowMethods []string + AllowOrigins []string + ContentType string + func (c *CORS) AllowedHeaders() string + func (c *CORS) AllowedMethods() string