Versions in this module Expand all Collapse all v0 v0.9.0 Dec 15, 2015 Changes in this version + const Dev + const Prod + const Test + var Env = Dev + var Root string + type BeforeFunc func(ResponseWriter) + type ClassicMartini struct + func Classic() *ClassicMartini + type Context interface + Next func() + Written func() bool + type Handler interface + func Logger() Handler + func Recovery() Handler + func Static(directory string, staticOpt ...StaticOptions) Handler + type Martini struct + func New() *Martini + func (m *Martini) Action(handler Handler) + func (m *Martini) Handlers(handlers ...Handler) + func (m *Martini) Run() + func (m *Martini) RunOnAddr(addr string) + func (m *Martini) ServeHTTP(res http.ResponseWriter, req *http.Request) + func (m *Martini) Use(handler Handler) + type Params map[string]string + type ResponseWriter interface + Before func(BeforeFunc) + Size func() int + Status func() int + Written func() bool + func NewResponseWriter(rw http.ResponseWriter) ResponseWriter + type ReturnHandler func(Context, []reflect.Value) + type Route interface + GetName func() string + Method func() string + Name func(string) + Pattern func() string + URLWith func([]string) string + type RouteMatch int + const ExactMatch + const NoMatch + const OverloadMatch + const StarMatch + func (r RouteMatch) BetterThan(o RouteMatch) bool + type Router interface + AddRoute func(string, string, ...Handler) Route + Any func(string, ...Handler) Route + Delete func(string, ...Handler) Route + Get func(string, ...Handler) Route + Group func(string, func(Router), ...Handler) + Handle func(http.ResponseWriter, *http.Request, Context) + Head func(string, ...Handler) Route + NotFound func(...Handler) + Options func(string, ...Handler) Route + Patch func(string, ...Handler) Route + Post func(string, ...Handler) Route + Put func(string, ...Handler) Route + func NewRouter() Router + type Routes interface + All func() []Route + MethodsFor func(path string) []string + URLFor func(name string, params ...interface{}) string + type StaticOptions struct + Exclude string + Expires func() string + Fallback string + IndexFile string + Prefix string + SkipLogging bool