Documentation ¶
Index ¶
- type Controller
- func (c *Controller) Delete(w http.ResponseWriter, r *http.Request)
- func (c *Controller) Get(w http.ResponseWriter, r *http.Request)
- func (c *Controller) Head(w http.ResponseWriter, r *http.Request)
- func (c *Controller) Options(w http.ResponseWriter, r *http.Request)
- func (c *Controller) Patch(w http.ResponseWriter, r *http.Request)
- func (c *Controller) Post(w http.ResponseWriter, r *http.Request)
- func (c *Controller) Propfind(w http.ResponseWriter, r *http.Request)
- func (c *Controller) Put(w http.ResponseWriter, r *http.Request)
- type ControllerInterface
- type IndexController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller is the base type of controllers in the strava-ical architecture.
func (*Controller) Delete ¶
func (c *Controller) Delete(w http.ResponseWriter, r *http.Request)
Delete handles a HTTP DELETE request r, writing to w.
Unless overridden, controllers refuse this method.
func (*Controller) Get ¶
func (c *Controller) Get(w http.ResponseWriter, r *http.Request)
Get handles a HTTP GET request r, writing to w.
Unless overridden, controllers refuse this method.
func (*Controller) Head ¶
func (c *Controller) Head(w http.ResponseWriter, r *http.Request)
Head handles a HTTP HEAD request r, writing to w.
Unless overridden, controllers refuse this method.
func (*Controller) Options ¶
func (c *Controller) Options(w http.ResponseWriter, r *http.Request)
Options handles a HTTP OPTIONS request r, writing to w.
Unless overridden, controllers refuse this method.
func (*Controller) Patch ¶
func (c *Controller) Patch(w http.ResponseWriter, r *http.Request)
Patch handles a HTTP PATCH request r, writing to w.
Unless overridden, controllers refuse this method.
func (*Controller) Post ¶
func (c *Controller) Post(w http.ResponseWriter, r *http.Request)
Post handles a HTTP POST request r, writing to w.
Unless overridden, controllers refuse this method.
func (*Controller) Propfind ¶
func (c *Controller) Propfind(w http.ResponseWriter, r *http.Request)
Propfind handles a HTTP PROPFIND request r, writing to w.
Unless overridden, controllers refuse this method.
func (*Controller) Put ¶
func (c *Controller) Put(w http.ResponseWriter, r *http.Request)
Put handles a HTTP PUT request r, writing to w.
Unless overridden, controllers refuse this method.
type ControllerInterface ¶
type ControllerInterface interface { Get() //method = GET processing Post() //method = POST processing Delete() //method = DELETE processing Put() //method = PUT handling Head() //method = HEAD processing Patch() //method = PATCH treatment Options() //method = OPTIONS processing }
ControllerInterface is the interface to which controllers adhere.
type IndexController ¶
type IndexController struct {
Controller
}
IndexController is the controller for the index page.
func NewIndexController ¶
func NewIndexController(cli *strava.Client, con *structs.Config) *IndexController
NewIndexController returns a new IndexController with the MyRadio session s and configuration context c.
func (*IndexController) Get ¶
func (ic *IndexController) Get(w http.ResponseWriter, r *http.Request)
Get handles the HTTP GET request r for the index page, writing to w.