rule

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rule

type Rule struct {
	// rule name
	Name string
	// rule script
	Scripts string
	// contains filtered or unexported fields
}

func New

func New(path string, geoip string) *Rule

func (*Rule) MatchDomain

func (r *Rule) MatchDomain(domain string) bool

match ip or domain

func (*Rule) Run

func (r *Rule) Run() error

Jump to

Keyboard shortcuts

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