gfwlist

package
v0.0.0-...-3fdcba8 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: BSD-3-Clause Imports: 12 Imported by: 0

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

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