Documentation ¶
Overview ¶
server and route
Index ¶
- func Delete(route string, handler interface{})
- func Get(route string, handler interface{})
- func Post(route string, handler interface{})
- func Put(route string, handler interface{})
- func Run(bind string)
- type Context
- type Cookie
- type Server
- func (s *Server) Delete(r string, handler interface{})
- func (s *Server) Get(r string, handler interface{})
- func (s *Server) Post(r string, handler interface{})
- func (s *Server) Put(r string, handler interface{})
- func (s *Server) Run(bind string)
- func (s *Server) ServeHTTP(c http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Context ¶
type Context struct { Request *http.Request Server *Server Params url.Values Json *simplejson.Json http.ResponseWriter }
func (*Context) BadRequest ¶
func (ctx *Context) BadRequest()
type Cookie ¶
type Cookie struct { Name string Value string Path string Domain string Expires time.Time MaxAge int Secure bool HttpOnly bool }
func (*Cookie) ToHttpCookie ¶
Click to show internal directories.
Click to hide internal directories.