json

package
v0.14.4 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2015 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 FieldRule

type FieldRule struct {
	Rule
	Domain  *StringList
	IP      []*net.IPNet
	Port    v2net.PortRange
	Network v2net.NetworkList
}

func (*FieldRule) Apply

func (this *FieldRule) Apply(dest v2net.Destination) bool

func (*FieldRule) UnmarshalJSON

func (this *FieldRule) UnmarshalJSON(data []byte) error

type RouterRuleConfig

type RouterRuleConfig struct {
	RuleList []json.RawMessage `json:"rules"`
}

func (*RouterRuleConfig) Rules

func (this *RouterRuleConfig) Rules() []config.Rule

type Rule

type Rule struct {
	Type        string `json:"type"`
	OutboundTag string `json:"outboundTag"`
}

func (*Rule) Apply

func (this *Rule) Apply(dest v2net.Destination) bool

func (*Rule) Tag

func (this *Rule) Tag() config.DetourTag

type StringList added in v0.14.4

type StringList []string

func NewStringList added in v0.14.4

func NewStringList(str ...string) *StringList

func (*StringList) Len added in v0.14.4

func (this *StringList) Len() int

func (*StringList) UnmarshalJSON added in v0.14.4

func (this *StringList) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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