Documentation
¶
Overview ¶
Package host 管理路由中域名的切换等操作
Index ¶
- type Hosts
- func (hs *Hosts) Add(pattern string, h http.Handler, method ...string) error
- func (hs *Hosts) Clean(prefix string)
- func (hs *Hosts) CleanAll()
- func (hs *Hosts) Handler(hostname, path string) (*handlers.Handlers, params.Params)
- func (hs *Hosts) Remove(pattern string, method ...string)
- func (hs *Hosts) SetAllow(pattern string, allow string)
- func (hs *Hosts) URL(pattern string, params map[string]string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.