controllers

package
v0.0.0-...-1cae76b Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2017 License: MIT Imports: 13 Imported by: 1

Documentation

Index

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 ury-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(s *myradio.Session, c *structs.Config) *IndexController

NewIndexController returns a new IndexController with the MyRadio session s and configuration context c.

func (*IndexController) Get

Get handles the HTTP GET request r for the index page, writing to w.

type ShowController

type ShowController struct {
	Controller
}

ShowController is the controller for the index page.

func NewShowController

func NewShowController(s *myradio.Session, c *structs.Config) *ShowController

NewShowController returns a new ShowController with the MyRadio session s and configuration context c.

func (*ShowController) Get

Get handles the HTTP GET request r for the index page, writing to w.

type UserController

type UserController struct {
	Controller
}

UserController is the controller for the index page.

func NewUserController

func NewUserController(s *myradio.Session, c *structs.Config) *UserController

NewUserController returns a new UserController with the MyRadio session s and configuration context c.

func (*UserController) Get

Get handles the HTTP GET request r for the index page, writing to w.

Jump to

Keyboard shortcuts

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