hostroute

package
Version: v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2014 License: Apache-2.0, 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

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL