Documentation
¶
Index ¶
- type Serve
- func (s *Serve) Delete(pattern string, handler ServeHandlerFunc)
- func (s *Serve) Get(pattern string, handler ServeHandlerFunc)
- func (s *Serve) HandleFunc(pattern string, handler ServeHandlerFunc)
- func (s *Serve) Options(pattern string, handler ServeHandlerFunc)
- func (s *Serve) Patch(pattern string, handler ServeHandlerFunc)
- func (s *Serve) Post(pattern string, handler ServeHandlerFunc)
- func (s *Serve) Put(pattern string, handler ServeHandlerFunc)
- func (s *Serve) Route(pattern string, h func(*Serve)) *Serve
- func (s *Serve) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (s *Serve) With(h func(sdm *betterdep.DependencyManager) func(http.Handler) http.Handler) *Serve
- type ServeContext
- type ServeHandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Serve ¶
type Serve struct {
Mux *bettermux.BetterMux
SingletionDeps *betterdep.DependencyManager
}
func (*Serve) Delete ¶
func (s *Serve) Delete(pattern string, handler ServeHandlerFunc)
func (*Serve) Get ¶
func (s *Serve) Get(pattern string, handler ServeHandlerFunc)
func (*Serve) HandleFunc ¶
func (s *Serve) HandleFunc(pattern string, handler ServeHandlerFunc)
func (*Serve) Options ¶
func (s *Serve) Options(pattern string, handler ServeHandlerFunc)
func (*Serve) Patch ¶
func (s *Serve) Patch(pattern string, handler ServeHandlerFunc)
func (*Serve) Post ¶
func (s *Serve) Post(pattern string, handler ServeHandlerFunc)
func (*Serve) Put ¶
func (s *Serve) Put(pattern string, handler ServeHandlerFunc)
type ServeContext ¶
type ServeContext struct {
betterwr.BetterWR
SingletionDeps *betterdep.DependencyManager
ScopedDeps *betterdep.DependencyManager
Request *http.Request
ResponseWriter http.ResponseWriter
}
type ServeHandlerFunc ¶
type ServeHandlerFunc func(ctx *ServeContext)
Click to show internal directories.
Click to hide internal directories.