Documentation ¶
Overview ¶
Route the request by hostname
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HostRouter ¶
type HostRouter struct {
// contains filtered or unexported fields
}
This router composer helps to match request by host header and uses inner routes to do further matching
func NewHostRouter ¶
func NewHostRouter() *HostRouter
func (*HostRouter) GetRouter ¶
func (h *HostRouter) GetRouter(hostname string) Router
func (*HostRouter) RemoveRouter ¶
func (h *HostRouter) RemoveRouter(hostname string)
func (*HostRouter) Route ¶
func (h *HostRouter) Route(req Request) (Location, error)
func (*HostRouter) SetRouter ¶
func (h *HostRouter) SetRouter(hostname string, router Router) error
Click to show internal directories.
Click to hide internal directories.