Documentation ¶
Index ¶
- type Context
- func (c *Context) Bind(key interface{}, value interface{}) *Context
- func (c Context) Deadline() (deadline time.Time, ok bool)
- func (c Context) Done() <-chan struct{}
- func (c Context) Engine() engines.EngineContract
- func (c Context) Err() error
- func (c Context) Next() Middleware
- func (c Context) Resolve(key interface{}) interface{}
- func (c Context) Router() RouterContract
- func (c Context) Session() session.SessionContract
- func (c Context) Stop() Middleware
- func (c Context) Value(key interface{}) interface{}
- type EngineCtx
- type Middleware
- type Response
- type ResponseError
- type ResponseValidationError
- type RouterContract
- type RouterCtx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func (Context) Engine ¶
func (c Context) Engine() engines.EngineContract
func (Context) Next ¶
func (c Context) Next() Middleware
func (Context) Resolve ¶
func (c Context) Resolve(key interface{}) interface{}
this should be similar to Value()
func (Context) Router ¶
func (c Context) Router() RouterContract
func (Context) Session ¶
func (c Context) Session() session.SessionContract
func (Context) Stop ¶
func (c Context) Stop() Middleware
type Middleware ¶
type Middleware struct {
Continue bool
}
type ResponseError ¶
type ResponseError struct { Message interface{} Error error Code interface{} }
type ResponseValidationError ¶
type ResponseValidationError struct {
ValidationError interface{}
}
type RouterContract ¶
type RouterContract interface { Match(req *http.Request, match *mux.RouteMatch) bool ServeHTTP(w http.ResponseWriter, req *http.Request) Get(name string) *mux.Route GetRoute(name string) *mux.Route NewRoute() *mux.Route Name(name string) *mux.Route Handle(path string, handler http.Handler) *mux.Route HandleFunc(path string, f func(http.ResponseWriter, *http.Request)) *mux.Route Headers(pairs ...string) *mux.Route Host(tpl string) *mux.Route MatcherFunc(f mux.MatcherFunc) *mux.Route Methods(methods ...string) *mux.Route Path(tpl string) *mux.Route PathPrefix(tpl string) *mux.Route Queries(pairs ...string) *mux.Route Schemes(schemes ...string) *mux.Route BuildVarsFunc(f mux.BuildVarsFunc) *mux.Route Walk(walkFn mux.WalkFunc) error }
Click to show internal directories.
Click to hide internal directories.