mutate

package
v1.4.8 Latest Latest
Warning

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

Go to latest
Published: May 23, 2018 License: Apache-2.0 Imports: 19 Imported by: 0

README

mutate transformers

专门放字符串变化相关的Transformers

Documentation

Index

Constants

View Source
const (
	Prefix = "prefix"
	Suffix = "suffix"
	Both   = "both"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ArrayExpand added in v1.3.6

type ArrayExpand struct {
	Key string `json:"key"`
	// contains filtered or unexported fields
}

func (*ArrayExpand) ConfigOptions added in v1.3.6

func (p *ArrayExpand) ConfigOptions() []Option

func (*ArrayExpand) Description added in v1.3.6

func (p *ArrayExpand) Description() string

func (*ArrayExpand) RawTransform added in v1.3.6

func (p *ArrayExpand) RawTransform(datas []string) ([]string, error)

func (*ArrayExpand) SampleConfig added in v1.3.6

func (p *ArrayExpand) SampleConfig() string

func (*ArrayExpand) Stage added in v1.3.6

func (p *ArrayExpand) Stage() string

func (*ArrayExpand) Stats added in v1.3.6

func (p *ArrayExpand) Stats() StatsInfo

func (*ArrayExpand) Transform added in v1.3.6

func (p *ArrayExpand) Transform(datas []Data) ([]Data, error)

func (*ArrayExpand) Type added in v1.3.6

func (p *ArrayExpand) Type() string

type Converter added in v1.3.3

type Converter struct {
	DSL string `json:"dsl"`
	// contains filtered or unexported fields
}

func (*Converter) ConfigOptions added in v1.3.3

func (g *Converter) ConfigOptions() []Option

func (*Converter) Description added in v1.3.3

func (g *Converter) Description() string

func (*Converter) RawTransform added in v1.3.3

func (g *Converter) RawTransform(datas []string) ([]string, error)

func (*Converter) SampleConfig added in v1.3.3

func (g *Converter) SampleConfig() string

func (*Converter) Stage added in v1.3.3

func (g *Converter) Stage() string

func (*Converter) Stats added in v1.3.3

func (g *Converter) Stats() StatsInfo

func (*Converter) Transform added in v1.3.3

func (g *Converter) Transform(datas []Data) ([]Data, error)

func (*Converter) Type added in v1.3.3

func (g *Converter) Type() string

type Discarder added in v1.3.2

type Discarder struct {
	Key string `json:"key"`
	// contains filtered or unexported fields
}

func (*Discarder) ConfigOptions added in v1.3.2

func (g *Discarder) ConfigOptions() []Option

func (*Discarder) Description added in v1.3.2

func (g *Discarder) Description() string

func (*Discarder) RawTransform added in v1.3.2

func (g *Discarder) RawTransform(datas []string) ([]string, error)

func (*Discarder) SampleConfig added in v1.3.2

func (g *Discarder) SampleConfig() string

func (*Discarder) Stage added in v1.3.2

func (g *Discarder) Stage() string

func (*Discarder) Stats added in v1.3.2

func (g *Discarder) Stats() StatsInfo

func (*Discarder) Transform added in v1.3.2

func (g *Discarder) Transform(datas []Data) ([]Data, error)

func (*Discarder) Type added in v1.3.2

func (g *Discarder) Type() string

type DslSchemaEntry added in v1.4.8

type DslSchemaEntry struct {
	Key       string           `json:"key"`
	ValueType string           `json:"valtype"`
	Default   interface{}      `json:"default,omitempty"`
	ElemType  string           `json:"elemtype,omitempty"`
	Schema    []DslSchemaEntry `json:"schema,omitempty"`
}

func ParseDsl added in v1.4.8

func ParseDsl(dsl string, depth int) (schemas []DslSchemaEntry, err error)

type Json added in v1.4.3

type Json struct {
	Key string `json:"key"`
	New string `json:"new"`
	// contains filtered or unexported fields
}

func (*Json) ConfigOptions added in v1.4.3

func (g *Json) ConfigOptions() []Option

func (*Json) Description added in v1.4.3

func (g *Json) Description() string

func (*Json) RawTransform added in v1.4.3

func (g *Json) RawTransform(datas []string) ([]string, error)

func (*Json) SampleConfig added in v1.4.3

func (g *Json) SampleConfig() string

func (*Json) Stage added in v1.4.3

func (g *Json) Stage() string

func (*Json) Stats added in v1.4.3

func (g *Json) Stats() StatsInfo

func (*Json) Transform added in v1.4.3

func (g *Json) Transform(datas []Data) ([]Data, error)

func (*Json) Type added in v1.4.3

func (g *Json) Type() string

type Label added in v1.4.2

type Label struct {
	Key      string `json:"key"`
	Value    string `json:"value"`
	Override bool   `json:"override"`
	// contains filtered or unexported fields
}

func (*Label) ConfigOptions added in v1.4.2

func (g *Label) ConfigOptions() []Option

func (*Label) Description added in v1.4.2

func (g *Label) Description() string

func (*Label) RawTransform added in v1.4.2

func (g *Label) RawTransform(datas []string) ([]string, error)

func (*Label) SampleConfig added in v1.4.2

func (g *Label) SampleConfig() string

func (*Label) Stage added in v1.4.2

func (g *Label) Stage() string

func (*Label) Stats added in v1.4.2

func (g *Label) Stats() StatsInfo

func (*Label) Transform added in v1.4.2

func (g *Label) Transform(datas []Data) ([]Data, error)

func (*Label) Type added in v1.4.2

func (g *Label) Type() string

type PandoraKeyConvert added in v1.4.5

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

func (*PandoraKeyConvert) ConfigOptions added in v1.4.5

func (g *PandoraKeyConvert) ConfigOptions() []Option

func (*PandoraKeyConvert) Description added in v1.4.5

func (g *PandoraKeyConvert) Description() string

func (*PandoraKeyConvert) RawTransform added in v1.4.5

func (g *PandoraKeyConvert) RawTransform(datas []string) ([]string, error)

func (*PandoraKeyConvert) SampleConfig added in v1.4.5

func (g *PandoraKeyConvert) SampleConfig() string

func (*PandoraKeyConvert) Stage added in v1.4.5

func (g *PandoraKeyConvert) Stage() string

func (*PandoraKeyConvert) Stats added in v1.4.5

func (g *PandoraKeyConvert) Stats() StatsInfo

func (*PandoraKeyConvert) Transform added in v1.4.5

func (g *PandoraKeyConvert) Transform(datas []Data) ([]Data, error)

func (*PandoraKeyConvert) Type added in v1.4.5

func (g *PandoraKeyConvert) Type() string

type Rename added in v1.4.1

type Rename struct {
	Key        string `json:"key"`
	NewKeyName string `json:"new_key_name"`
	// contains filtered or unexported fields
}

func (*Rename) ConfigOptions added in v1.4.1

func (g *Rename) ConfigOptions() []Option

func (*Rename) Description added in v1.4.1

func (g *Rename) Description() string

func (*Rename) RawTransform added in v1.4.1

func (g *Rename) RawTransform(datas []string) ([]string, error)

func (*Rename) SampleConfig added in v1.4.1

func (g *Rename) SampleConfig() string

func (*Rename) Stage added in v1.4.1

func (g *Rename) Stage() string

func (*Rename) Stats added in v1.4.1

func (g *Rename) Stats() StatsInfo

func (*Rename) Transform added in v1.4.1

func (g *Rename) Transform(datas []Data) ([]Data, error)

func (*Rename) Type added in v1.4.1

func (g *Rename) Type() string

type Replacer

type Replacer struct {
	StageTime string `json:"stage"`
	Key       string `json:"key"`
	Old       string `json:"old"`
	New       string `json:"new"`
	Regex     bool   `json:"regex"`

	Regexp *regexp.Regexp
	// contains filtered or unexported fields
}

func (*Replacer) ConfigOptions added in v1.3.2

func (g *Replacer) ConfigOptions() []Option

func (*Replacer) Description

func (g *Replacer) Description() string

func (*Replacer) Init added in v1.4.1

func (g *Replacer) Init() error

func (*Replacer) RawTransform

func (g *Replacer) RawTransform(datas []string) ([]string, error)

func (*Replacer) SampleConfig

func (g *Replacer) SampleConfig() string

func (*Replacer) Stage

func (g *Replacer) Stage() string

func (*Replacer) Stats

func (g *Replacer) Stats() StatsInfo

func (*Replacer) Transform

func (g *Replacer) Transform(datas []Data) ([]Data, error)

func (*Replacer) Type added in v1.3.0

func (g *Replacer) Type() string

type Script added in v1.4.4

type Script struct {
	Key          string `json:"key"`
	New          string `json:"new"`
	Interprepter string `json:"interprepter"`
	ScriptPath   string `json:"scriptpath"`
	Script       string `json:"script"`
	// contains filtered or unexported fields
}

func (*Script) ConfigOptions added in v1.4.4

func (g *Script) ConfigOptions() []Option

func (*Script) Description added in v1.4.4

func (g *Script) Description() string

func (*Script) Init added in v1.4.4

func (g *Script) Init() error

func (*Script) RawTransform added in v1.4.4

func (g *Script) RawTransform(datas []string) ([]string, error)

func (*Script) SampleConfig added in v1.4.4

func (g *Script) SampleConfig() string

func (*Script) Stage added in v1.4.4

func (g *Script) Stage() string

func (*Script) Stats added in v1.4.4

func (g *Script) Stats() StatsInfo

func (*Script) Transform added in v1.4.4

func (g *Script) Transform(datas []Data) ([]Data, error)

func (*Script) Type added in v1.4.4

func (g *Script) Type() string

type Spliter added in v1.3.3

type Spliter struct {
	Key         string `json:"key"`
	SeperateKey string `json:"sep"`
	ArraryName  string `json:"newfield"`
	// contains filtered or unexported fields
}

func (*Spliter) ConfigOptions added in v1.3.3

func (g *Spliter) ConfigOptions() []Option

func (*Spliter) Description added in v1.3.3

func (g *Spliter) Description() string

func (*Spliter) RawTransform added in v1.3.3

func (g *Spliter) RawTransform(datas []string) ([]string, error)

func (*Spliter) SampleConfig added in v1.3.3

func (g *Spliter) SampleConfig() string

func (*Spliter) Stage added in v1.3.3

func (g *Spliter) Stage() string

func (*Spliter) Stats added in v1.3.3

func (g *Spliter) Stats() StatsInfo

func (*Spliter) Transform added in v1.3.3

func (g *Spliter) Transform(datas []Data) ([]Data, error)

func (*Spliter) Type added in v1.3.3

func (g *Spliter) Type() string

type Trim added in v1.4.8

type Trim struct {
	Key        string `json:"key"`
	Characters string `json:"characters"`
	Place      string `json:"place"`
	// contains filtered or unexported fields
}

func (*Trim) ConfigOptions added in v1.4.8

func (g *Trim) ConfigOptions() []Option

func (*Trim) Description added in v1.4.8

func (g *Trim) Description() string

func (*Trim) RawTransform added in v1.4.8

func (g *Trim) RawTransform(datas []string) ([]string, error)

func (*Trim) SampleConfig added in v1.4.8

func (g *Trim) SampleConfig() string

func (*Trim) Stage added in v1.4.8

func (g *Trim) Stage() string

func (*Trim) Stats added in v1.4.8

func (g *Trim) Stats() StatsInfo

func (*Trim) Transform added in v1.4.8

func (g *Trim) Transform(datas []Data) ([]Data, error)

func (*Trim) Type added in v1.4.8

func (g *Trim) Type() string

type UrlParam added in v1.3.6

type UrlParam struct {
	Key string `json:"key"`
	// contains filtered or unexported fields
}

func (*UrlParam) ConfigOptions added in v1.3.6

func (p *UrlParam) ConfigOptions() []Option

func (*UrlParam) Description added in v1.3.6

func (p *UrlParam) Description() string

func (*UrlParam) RawTransform added in v1.3.6

func (p *UrlParam) RawTransform(datas []string) ([]string, error)

func (*UrlParam) SampleConfig added in v1.3.6

func (p *UrlParam) SampleConfig() string

func (*UrlParam) Stage added in v1.3.6

func (p *UrlParam) Stage() string

func (*UrlParam) Stats added in v1.3.6

func (p *UrlParam) Stats() StatsInfo

func (*UrlParam) Transform added in v1.3.6

func (p *UrlParam) Transform(datas []Data) ([]Data, error)

func (*UrlParam) Type added in v1.3.6

func (p *UrlParam) Type() string

type Xml added in v1.4.6

type Xml struct {
	Key string `json:"key"`
	New string `json:"new"`
	// contains filtered or unexported fields
}

func (*Xml) ConfigOptions added in v1.4.6

func (g *Xml) ConfigOptions() []Option

func (*Xml) Description added in v1.4.6

func (g *Xml) Description() string

func (*Xml) RawTransform added in v1.4.6

func (g *Xml) RawTransform(datas []string) ([]string, error)

func (*Xml) SampleConfig added in v1.4.6

func (g *Xml) SampleConfig() string

func (*Xml) Stage added in v1.4.6

func (g *Xml) Stage() string

func (*Xml) Stats added in v1.4.6

func (g *Xml) Stats() StatsInfo

func (*Xml) Transform added in v1.4.6

func (g *Xml) Transform(datas []Data) ([]Data, error)

func (*Xml) Type added in v1.4.6

func (g *Xml) Type() string

Jump to

Keyboard shortcuts

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