hostroute

package
v0.0.0-...-68da624 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2014 License: Apache-2.0 Imports: 6 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL