domains

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDomains

func NewDomains(cacheSize int) *domains

Types

type Domain

type Domain struct {
	Userdatas []UserData
}

对外单个域名 外部程序不要修改值。

type DomainType

type DomainType int
const (
	Base   DomainType = iota //基本匹配,必须完全一致才匹配
	Suffix                   // 后缀匹配 , abc.com 匹配 www.abc.com 、123.abc.com、123.456.abc.com 及 abc.com
	Pan                      // 泛解析 ,处理 * 及 ?
	Regex                    //正则,正则表达式
)

type UserData

type UserData interface{}

Jump to

Keyboard shortcuts

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