Documentation ¶
Index ¶
- func JSON(w http.ResponseWriter, r *http.Request, v interface{})
- func URLParam(r *http.Request, p string) string
- type ChiRouter
- type Router
- func (rtr Router) Delete(route string, handler http.HandlerFunc)
- func (rtr Router) Get(route string, handler http.HandlerFunc)
- func (rtr Router) Patch(route string, handler http.HandlerFunc)
- func (rtr Router) Post(route string, handler http.HandlerFunc)
- func (rtr Router) Put(route string, handler http.HandlerFunc)
- func (rtr Router) Run(proto string, hostport string) error
- func (rtr Router) RunS(proto string, hostport string, crt string, key string) error
- func (rtr *Router) SetLogRequest(lr bool)
- func (rtr *Router) SetLogSkipPath(list []string)
- func (rtr *Router) SetLogger(logtype string)
- func (rtr Router) Static(urlPath string, dirPath string)
- func (rtr Router) StaticFs(urlPath string, fs http.FileSystem)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Router ¶
Router - initialized instance
func (Router) Delete ¶
func (rtr Router) Delete(route string, handler http.HandlerFunc)
Delete - implementation of http delete
func (Router) Get ¶
func (rtr Router) Get(route string, handler http.HandlerFunc)
Get - implementation of http get
func (Router) Patch ¶
func (rtr Router) Patch(route string, handler http.HandlerFunc)
Patch - implementation of http patch
func (Router) Post ¶
func (rtr Router) Post(route string, handler http.HandlerFunc)
Post - implementation of http post
func (Router) Put ¶
func (rtr Router) Put(route string, handler http.HandlerFunc)
Put - implementation of http put
func (*Router) SetLogRequest ¶
SetLogRequest - changes behaviour on whether to log requests or not
func (*Router) SetLogSkipPath ¶ added in v0.1.1
SetLogSkipPath - changes the middleware logging behaviour
Click to show internal directories.
Click to hide internal directories.