Documentation
¶
Index ¶
- Variables
- func RegisterMiddleware(h Handler)
- type Context
- type DBOpts
- type Handler
- type Router
- func (r *Router) Get(path string, h Handler)
- func (r *Router) Options(path string, h Handler)
- func (r *Router) Patch(path string, h Handler)
- func (r *Router) Post(path string, h Handler)
- func (r *Router) Put(path string, h Handler)
- func (r *Router) SetDB(f func() *sql.DB)
- func (r *Router) StartServer(addr string)
- func (r *Router) StartServerTLS(addr string)
- type TLS
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *sql.DB
Functions ¶
func RegisterMiddleware ¶
func RegisterMiddleware(h Handler)
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func (*Context) Response ¶
func (c *Context) Response() http.ResponseWriter
type Router ¶
type Router struct { TLS // contains filtered or unexported fields }
func (*Router) StartServer ¶
func (*Router) StartServerTLS ¶
Click to show internal directories.
Click to hide internal directories.