plaintext

package
v0.0.0-...-9a1e35a Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: CC-BY-SA-4.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

View Source
const (
	TypeClashRuleSetClassicalIn = "clashRuleSetClassical"
	DescClashClassicalIn        = "Convert classical type of Clash RuleSet to other formats (just processing IP & CIDR lines)"

	TypeClashRuleSetIPCIDRIn = "clashRuleSet"
	DescClashRuleSetIn       = "Convert ipcidr type of Clash RuleSet to other formats"
)
View Source
const (
	TypeClashRuleSetClassicalOut = "clashRuleSetClassical"
	DescClashClassicalOut        = "Convert data to classical type of Clash RuleSet"

	TypeClashRuleSetIPCIDROut = "clashRuleSet"
	DescClashRuleSetOut       = "Convert data to ipcidr type of Clash RuleSet"
)
View Source
const (
	TypeJSONIn = "json"
	DescJSONIn = "Convert JSON data to other formats"
)
View Source
const (
	TypeSurgeRuleSetIn = "surgeRuleSet"
	DescSurgeRuleSetIn = "Convert Surge RuleSet to other formats (just processing IP & CIDR lines)"
)
View Source
const (
	TypeSurgeRuleSetOut = "surgeRuleSet"
	DescSurgeRuleSetOut = "Convert data to Surge RuleSet"
)
View Source
const (
	TypeTextIn = "text"
	DescTextIn = "Convert plaintext IP & CIDR to other formats"
)
View Source
const (
	TypeTextOut = "text"
	DescTextOut = "Convert data to plaintext CIDR format"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type TextIn

type TextIn struct {
	Type        string
	Action      lib.Action
	Description string
	Name        string
	URI         string
	IPOrCIDR    []string
	InputDir    string
	Want        map[string]bool
	OnlyIPType  lib.IPType

	JSONPath             []string
	RemovePrefixesInLine []string
	RemoveSuffixesInLine []string
}

func (*TextIn) GetAction

func (t *TextIn) GetAction() lib.Action

func (*TextIn) GetDescription

func (t *TextIn) GetDescription() string

func (*TextIn) GetType

func (t *TextIn) GetType() string

func (*TextIn) Input

func (t *TextIn) Input(container lib.Container) (lib.Container, error)

type TextOut

type TextOut struct {
	Type        string
	Action      lib.Action
	Description string
	OutputDir   string
	OutputExt   string
	Want        []string
	Exclude     []string
	OnlyIPType  lib.IPType

	AddPrefixInLine string
	AddSuffixInLine string
}

func (*TextOut) GetAction

func (t *TextOut) GetAction() lib.Action

func (*TextOut) GetDescription

func (t *TextOut) GetDescription() string

func (*TextOut) GetType

func (t *TextOut) GetType() string

func (*TextOut) Output

func (t *TextOut) Output(container lib.Container) error

Jump to

Keyboard shortcuts

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