Documentation ¶
Index ¶
- type App
- func (a App) DELETE(path string, middlewares ...Middleware)
- func (a App) GET(path string, middlewares ...Middleware)
- func (a App) HEAD(path string, middlewares ...Middleware)
- func (a App) HandleError(middlewares ...Middleware)
- func (a App) HandleNotFound(middlewares ...Middleware)
- func (a App) ListenAndServe(addr string) error
- func (a App) ListenAndServeTLS(addr, certFile, keyFile string) error
- func (a App) OPTIONS(path string, middlewares ...Middleware)
- func (a App) PATCH(path string, middlewares ...Middleware)
- func (a App) POST(path string, middlewares ...Middleware)
- func (a App) PUT(path string, middlewares ...Middleware)
- func (a App) ServeStatic(path string, root http.Dir)
- type Config
- type Context
- type File
- type Formatted
- type HTML
- type JSON
- type Middleware
- type Request
- type Response
- type Template
- type Text
- type XML
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct { Config // contains filtered or unexported fields }
func DefaultApp ¶
func DefaultApp() App
func (App) DELETE ¶
func (a App) DELETE(path string, middlewares ...Middleware)
func (App) GET ¶
func (a App) GET(path string, middlewares ...Middleware)
func (App) HEAD ¶
func (a App) HEAD(path string, middlewares ...Middleware)
func (App) HandleError ¶
func (a App) HandleError(middlewares ...Middleware)
func (App) HandleNotFound ¶
func (a App) HandleNotFound(middlewares ...Middleware)
func (App) ListenAndServe ¶
func (App) ListenAndServeTLS ¶
func (App) OPTIONS ¶
func (a App) OPTIONS(path string, middlewares ...Middleware)
func (App) PATCH ¶
func (a App) PATCH(path string, middlewares ...Middleware)
func (App) POST ¶
func (a App) POST(path string, middlewares ...Middleware)
func (App) PUT ¶
func (a App) PUT(path string, middlewares ...Middleware)
type Context ¶
type Middleware ¶
type Middleware func(*Context)
type Response ¶
type Response struct {
// contains filtered or unexported fields
}
func (Response) SendStatus ¶
Click to show internal directories.
Click to hide internal directories.