gfwlist

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2017 License: BSD-3-Clause Imports: 12 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GFWList

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

func NewGFWList

func NewGFWList(u string, hc *http.Client, userRules []string, cacheFile string, watch bool) (*GFWList, error)

func Parse

func Parse(rules string) (*GFWList, error)

func ParseRaw

func ParseRaw(rules string) (*GFWList, error)

func (*GFWList) FastMatchDoamin added in v0.26.2

func (gfw *GFWList) FastMatchDoamin(req *http.Request) (bool, bool)

func (*GFWList) IsBlockedByGFW

func (gfw *GFWList) IsBlockedByGFW(req *http.Request) bool

Jump to

Keyboard shortcuts

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