Documentation
¶
Index ¶
- type App
- func (s *App) AddHandler(path string, method string, handlers ...interface{}) error
- func (s *App) Endpoint(path string, handlerFuncs ...func(e *Endpoint) interface{})
- func (s *App) ListenAndServe(addr string) error
- func (s *App) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (s *App) Use(handlerFunc interface{})
- type Context
- type Endpoint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (*App) AddHandler ¶
func (*App) ListenAndServe ¶
type Context ¶
type Context struct { Request *http.Request Response http.ResponseWriter ResponseStatus int // contains filtered or unexported fields }
type Endpoint ¶
type Endpoint struct {
// contains filtered or unexported fields
}
func (*Endpoint) WithResponse ¶
Click to show internal directories.
Click to hide internal directories.