dimension

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(data []byte) (builder.Dimension, error)

Types

type Base

type Base struct {
	Typ        builder.ComponentType `json:"type,omitempty"`
	Dimension  string                `json:"dimension,omitempty"`
	OutputName string                `json:"outputName,omitempty"`
	OutputType types.OutputType      `json:"outputType,omitempty"`
}

func (*Base) SetDimension

func (b *Base) SetDimension(dimension string) *Base

func (*Base) SetOutputName

func (b *Base) SetOutputName(outputName string) *Base

func (*Base) SetOutputType

func (b *Base) SetOutputType(outputType types.OutputType) *Base

func (*Base) SetType

func (b *Base) SetType(typ builder.ComponentType) *Base

func (*Base) Type

func (b *Base) Type() builder.ComponentType

type Default

type Default struct {
	Base
}

func NewDefault

func NewDefault() *Default

func (*Default) SetDimension

func (d *Default) SetDimension(dimension string) *Default

func (*Default) SetOutputName

func (d *Default) SetOutputName(outputName string) *Default

func (*Default) SetOutputType

func (d *Default) SetOutputType(outputType types.OutputType) *Default

type Extraction

type Extraction struct {
	Base
	ExtractionFn builder.ExtractionFn `json:"extractionFn,omitempty"`
}

func NewExtraction

func NewExtraction() *Extraction

func (*Extraction) SetDimension

func (e *Extraction) SetDimension(dimension string) *Extraction

func (*Extraction) SetExtractionFn

func (e *Extraction) SetExtractionFn(extractionFn builder.ExtractionFn) *Extraction

func (*Extraction) SetOutputName

func (e *Extraction) SetOutputName(outputName string) *Extraction

func (*Extraction) SetOutputType

func (e *Extraction) SetOutputType(outputType types.OutputType) *Extraction

func (*Extraction) UnmarshalJSON

func (e *Extraction) UnmarshalJSON(data []byte) error

type ListFiltered

type ListFiltered struct {
	Base
	Delegate    builder.Dimension `json:"delegate,omitempty"`
	Values      []string          `json:"values,omitempty"`
	IsWhiteList *bool             `json:"isWhiteList,omitempty"`
}

func NewListFiltered

func NewListFiltered() *ListFiltered

func (*ListFiltered) SetDelegate

func (l *ListFiltered) SetDelegate(delegate builder.Dimension) *ListFiltered

func (*ListFiltered) SetDimension

func (l *ListFiltered) SetDimension(dimension string) *ListFiltered

func (*ListFiltered) SetIsWhiteList

func (l *ListFiltered) SetIsWhiteList(isWhiteList bool) *ListFiltered

func (*ListFiltered) SetOutputName

func (l *ListFiltered) SetOutputName(outputName string) *ListFiltered

func (*ListFiltered) SetOutputType

func (l *ListFiltered) SetOutputType(outputType types.OutputType) *ListFiltered

func (*ListFiltered) SetValues

func (l *ListFiltered) SetValues(values []string) *ListFiltered

func (*ListFiltered) UnmarshalJSON

func (l *ListFiltered) UnmarshalJSON(data []byte) error

type Lookup

type Lookup struct {
	Base
	Name                    string                  `json:"name,omitempty"`
	ReplaceMissingValueWith string                  `json:"replaceMissingValueWith,omitempty"`
	RetainMissingValue      *bool                   `json:"retainMissingValue,omitempty"`
	Lookup                  builder.LookupExtractor `json:"lookup,omitempty"`
	Optimize                *bool                   `json:"optimize,omitempty"`
}

func NewLookup

func NewLookup() *Lookup

func (*Lookup) SetLookup

func (l *Lookup) SetLookup(lookup builder.LookupExtractor) *Lookup

func (*Lookup) SetName

func (l *Lookup) SetName(name string) *Lookup

func (*Lookup) SetOptimize

func (l *Lookup) SetOptimize(optimize bool) *Lookup

func (*Lookup) SetOutputName

func (l *Lookup) SetOutputName(outputName string) *Lookup

func (*Lookup) SetReplaceMissingValueWith

func (l *Lookup) SetReplaceMissingValueWith(replaceMissingValueWith string) *Lookup

func (*Lookup) SetRetainMissingValue

func (l *Lookup) SetRetainMissingValue(retainMissingValue bool) *Lookup

func (*Lookup) UnmarshalJSON

func (l *Lookup) UnmarshalJSON(data []byte) error

type PrefixFiltered

type PrefixFiltered struct {
	Base
	Delegate builder.Dimension `json:"delegate,omitempty"`
	Prefix   string            `json:"prefix,omitempty"`
}

func NewPrefixFiltered

func NewPrefixFiltered() *PrefixFiltered

func (*PrefixFiltered) SetDelegate

func (p *PrefixFiltered) SetDelegate(delegate builder.Dimension) *PrefixFiltered

func (*PrefixFiltered) SetDimension

func (p *PrefixFiltered) SetDimension(dimension string) *PrefixFiltered

func (*PrefixFiltered) SetOutputName

func (p *PrefixFiltered) SetOutputName(outputName string) *PrefixFiltered

func (*PrefixFiltered) SetOutputType

func (p *PrefixFiltered) SetOutputType(outputType types.OutputType) *PrefixFiltered

func (*PrefixFiltered) SetPrefix

func (p *PrefixFiltered) SetPrefix(prefix string) *PrefixFiltered

func (*PrefixFiltered) UnmarshalJSON

func (p *PrefixFiltered) UnmarshalJSON(data []byte) error

type RegexFiltered

type RegexFiltered struct {
	Base
	Delegate builder.Dimension `json:"delegate,omitempty"`
	Pattern  string            `json:"pattern,omitempty"`
}

func NewRegexFiltered

func NewRegexFiltered() *RegexFiltered

func (*RegexFiltered) SetDelegate

func (r *RegexFiltered) SetDelegate(delegate builder.Dimension) *RegexFiltered

func (*RegexFiltered) SetDimension

func (r *RegexFiltered) SetDimension(dimension string) *RegexFiltered

func (*RegexFiltered) SetOutputName

func (r *RegexFiltered) SetOutputName(outputName string) *RegexFiltered

func (*RegexFiltered) SetOutputType

func (r *RegexFiltered) SetOutputType(outputType types.OutputType) *RegexFiltered

func (*RegexFiltered) SetPattern

func (r *RegexFiltered) SetPattern(pattern string) *RegexFiltered

func (*RegexFiltered) UnmarshalJSON

func (r *RegexFiltered) UnmarshalJSON(data []byte) error

type RegisteredLookup

type RegisteredLookup struct {
	Base
	Name string `json:"name,omitempty"`
}

Jump to

Keyboard shortcuts

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