router

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: May 28, 2014 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CTCC = "电信"
	CMCC = "移动"
	CUCC = "联通"
	ENET = "教育网"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RouterCN

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

func InitCN

func InitCN(path string) (*RouterCN, error)

Init china network router

func (*RouterCN) SelectBest

func (r *RouterCN) SelectBest(remoteAddr string, ips []string) string

Select the best ip

Jump to

Keyboard shortcuts

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