route

package
v0.0.0-...-a368336 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2015 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Route

type Route struct {
	// contains filtered or unexported fields
}

func NewRoute

func NewRoute() *Route

func (*Route) AddRoute

func (r *Route) AddRoute(host string, ips ...string)

func (*Route) DelHost

func (r *Route) DelHost(host, ip string)

func (*Route) DelRoute

func (r *Route) DelRoute(host string)

func (*Route) GetRoute

func (r *Route) GetRoute(host string) string

func (*Route) ListenAndServe

func (r *Route) ListenAndServe(addr string)

func (*Route) ServeHTTP

func (r *Route) ServeHTTP(w http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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