Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct { }
func (*Controller) Delete ¶
func (c *Controller) Delete(w http.ResponseWriter, r *http.Request)
func (*Controller) Get ¶
func (c *Controller) Get(w http.ResponseWriter, r *http.Request)
func (*Controller) Post ¶
func (c *Controller) Post(w http.ResponseWriter, r *http.Request)
func (*Controller) Put ¶
func (c *Controller) Put(w http.ResponseWriter, r *http.Request)
type ControllerInterface ¶
type ControllerInterface interface { Get(w http.ResponseWriter, r *http.Request) Post(w http.ResponseWriter, r *http.Request) Delete(w http.ResponseWriter, r *http.Request) Put(w http.ResponseWriter, r *http.Request) }
type ControllerRegistor ¶
type ControllerRegistor struct { StaticDir map[string]string // contains filtered or unexported fields }
func (*ControllerRegistor) Add ¶
func (p *ControllerRegistor) Add(pattern string, c ControllerInterface)
func (*ControllerRegistor) ServeHTTP ¶
func (p *ControllerRegistor) ServeHTTP(w http.ResponseWriter, r *http.Request)
func (*ControllerRegistor) SetStaticPath ¶
func (cr *ControllerRegistor) SetStaticPath(url string, path string) *ControllerRegistor
Click to show internal directories.
Click to hide internal directories.