Documentation ¶
Index ¶
- type MContext
- func (c *MContext) Next()
- func (c *MContext) ReadJSON(v interface{}) error
- func (c *MContext) Redirect(route string)
- func (c *MContext) RemoteAddr() string
- func (c *MContext) Render(tname string, data interface{})
- func (c *MContext) RenderStatus(status int, tname string, data interface{})
- func (c *MContext) ServeFileStatic(fname string)
- func (c *MContext) ServeFileStaticBindata(fname string)
- func (c *MContext) WriteHTML(data string)
- func (c *MContext) WriteHTMLStatus(status int, data string)
- func (c *MContext) WriteJSON(v interface{})
- func (c *MContext) WriteJSONStatus(status int, v interface{})
- func (c *MContext) WriteString(data string)
- func (c *MContext) WriteStringStatus(status int, data string)
- type MHandler
- type MWeb
- func (m *MWeb) Get(r string, f MHandler)
- func (m *MWeb) Post(r string, f MHandler)
- func (m *MWeb) ReadTimeout(t time.Duration)
- func (m *MWeb) Serve(host string)
- func (m *MWeb) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (m *MWeb) SetAsset(asset func(string) ([]byte, error), assetnames func() []string)
- func (m *MWeb) Static(dir string)
- func (m *MWeb) StaticBindata(dir string)
- func (m *MWeb) Use(f MHandler)
- func (m *MWeb) View(dir string)
- func (m *MWeb) ViewBindata(dir string)
- func (m *MWeb) WriteTimeout(t time.Duration)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MContext ¶
type MContext struct { W http.ResponseWriter R *http.Request Data map[string]interface{} V map[string]string Q url.Values // contains filtered or unexported fields }
func (*MContext) RemoteAddr ¶
func (*MContext) RenderStatus ¶
func (*MContext) ServeFileStatic ¶
func (*MContext) ServeFileStaticBindata ¶
func (*MContext) WriteHTMLStatus ¶
func (*MContext) WriteJSONStatus ¶
func (*MContext) WriteString ¶
func (*MContext) WriteStringStatus ¶
type MWeb ¶
type MWeb struct { NotFound MHandler // contains filtered or unexported fields }
func (*MWeb) ReadTimeout ¶
func (*MWeb) StaticBindata ¶
func (*MWeb) ViewBindata ¶
func (*MWeb) WriteTimeout ¶
Click to show internal directories.
Click to hide internal directories.