Versions in this module Expand all Collapse all v0 v0.1.0 Feb 11, 2016 Changes in this version + const BYTE + const DELETE + const GET + const GIGABYTE + const HEAD + const KILOBYTE + const MEGABYTE + const OPTIONS + const POST + const PUT + const TERABYTE + type Application struct + Conf *Conf + Logger *golog.Logger + func App() *Application + func (a *Application) Region() *Region + func (a *Application) Serve(url string, path string) + func (a *Application) ServeHTTP(w http.ResponseWriter, req *http.Request) + func (a *Application) Start() + func (a *Application) Templates(templates ...string) + type ApplicationConf struct + Addr string + Args []string + Logger LoggerConf + MaxBodyBytes int64 + MaxHeaderBytes int + ReadTimeout time.Duration + Test string + WriteTimeout time.Duration + type Conf struct + App ApplicationConf + Hotreload HotReloadConf + Neo NeoConf + func (c *Conf) Parse(path string) + type Cookie map[string]*http.Cookie + func (cookies Cookie) Del(key string) + func (cookies Cookie) Get(key string) *http.Cookie + func (cookies Cookie) Set(key string, value string) + func (cookies Cookie) SetCustom(cookie *http.Cookie) + type Ctx struct + Data CtxData + Errors []error + Req *Request + Res *Response + Session Session + func (c *Ctx) Error(err error) + func (c *Ctx) HasErrors() bool + type CtxData map[string]interface + func (r CtxData) Del(key string) + func (r CtxData) Get(key string) interface{} + func (r CtxData) Set(key string, value interface{}) + type HotReloadConf struct + Ignore []string + Suffixes []string + type LoggerConf struct + Level string + Name string + type Middleware func(*Ctx, Next) + type NeoConf struct + Logger LoggerConf + type Next func() + type Region struct + func (m Region) Delete(path string, fn handler) *Route + func (m Region) Get(path string, fn handler) *Route + func (m Region) Head(path string, fn handler) *Route + func (m Region) Options(path string, fn handler) *Route + func (m Region) Post(path string, fn handler) *Route + func (m Region) Put(path string, fn handler) *Route + func (m Region) Use(fn Middleware) + type Request struct + Params UrlParam + func (r *Request) JsonBody(instance interface{}) error + func (r *Request) StringBody() (string, error) + type Response struct + Cookie Cookie + Status int + func (r *Response) File(path string) error + func (r *Response) Header() http.Header + func (r *Response) Json(obj interface{}) error + func (r *Response) Raw(data []byte) error + func (r *Response) Redirect(url string) error + func (r *Response) Text(text string) error + func (r *Response) Tpl(name string, data interface{}) error + func (r *Response) Write(b []byte) (int, error) + func (r *Response) WriteHeader(s int) + func (r *Response) Writer() http.ResponseWriter + func (r *Response) Xml(obj interface{}) error + type Route struct + func (m Route) Use(fn Middleware) + type Session struct + Authenticated bool + Data interface{} + User interface{} + type Static struct + func (s *Static) Serve(url string, path string) + type UrlParam map[string]string + func (u UrlParam) Exist(key string) bool + func (u UrlParam) Get(key string) string