converter

package
v5.0.9 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Add

type Add struct {
	ConverterBase
}

func (*Add) Convert

func (c *Add) Convert(jsonData []byte, value []byte, args []byte) (newValue []byte, err error)

type Ceil

type Ceil struct {
	ConverterBase
}

func (*Ceil) Convert

func (c *Ceil) Convert(jsonData []byte, value []byte, args []byte) (newValue []byte, err error)

type ConverterBase

type ConverterBase struct{}

func (*ConverterBase) Convert

func (c *ConverterBase) Convert(jsonData []byte, value []byte, args []byte) (newValue []byte, err error)

func (*ConverterBase) GetJsonPathValue

func (c *ConverterBase) GetJsonPathValue(jsonData []byte, path string) (value *transform.JSONValue, err error)

func (*ConverterBase) Init

func (c *ConverterBase) Init(config []byte) (err error)

func (*ConverterBase) NewJSONValue

func (c *ConverterBase) NewJSONValue(data []byte) (value *transform.JSONValue, err error)

type Div

type Div struct {
	ConverterBase
}

func (*Div) Convert

func (c *Div) Convert(jsonData []byte, value []byte, args []byte) (newValue []byte, err error)

type Eqs

type Eqs struct {
	ConverterBase
}

func (*Eqs) Convert

func (c *Eqs) Convert(jsonData []byte, value []byte, args []byte) (newValue []byte, err error)

type Float

type Float struct {
	ConverterBase
}

func (*Float) Convert

func (c *Float) Convert(jsonData []byte, value []byte, args []byte) (newValue []byte, err error)

type Floor

type Floor struct {
	ConverterBase
}

func (*Floor) Convert

func (c *Floor) Convert(jsonData []byte, value []byte, args []byte) (newValue []byte, err error)

type Format

type Format struct {
	ConverterBase
}

func (*Format) Convert

func (c *Format) Convert(jsonData []byte, value []byte, args []byte) (newValue []byte, err error)

type Join

type Join struct {
	ConverterBase
}

func (*Join) Convert

func (c *Join) Convert(jsonData []byte, value []byte, args []byte) (newValue []byte, err error)

|substr start end , end is optional, and will be the last char sliced's index + 1, start is the start index and required

type Len

type Len struct {
	ConverterBase
}

func (*Len) Convert

func (c *Len) Convert(jsonData []byte, value []byte, args []byte) (newValue []byte, err error)

type Lower

type Lower struct {
	ConverterBase
}

func (*Lower) Convert

func (c *Lower) Convert(jsonData []byte, value []byte, args []byte) (newValue []byte, err error)

type Mapped

type Mapped struct {
	ConverterBase
}

func (*Mapped) Convert

func (c *Mapped) Convert(jsonData []byte, value []byte, args []byte) (newValue []byte, err error)

func (*Mapped) Init

func (c *Mapped) Init(config []byte) (err error)

type Mul

type Mul struct {
	ConverterBase
}

func (*Mul) Convert

func (c *Mul) Convert(jsonData []byte, value []byte, args []byte) (newValue []byte, err error)

type Not

type Not struct {
	ConverterBase
}

func (*Not) Convert

func (c *Not) Convert(jsonData []byte, value []byte, args []byte) (newValue []byte, err error)

type Ntos

type Ntos struct {
	ConverterBase
}

func (*Ntos) Convert

func (c *Ntos) Convert(jsonData []byte, value []byte, args []byte) (newValue []byte, err error)

type Regex

type Regex struct {
	ConverterBase
}

func (*Regex) Convert

func (r *Regex) Convert(jsonData []byte, value []byte, args []byte) (newValue []byte, err error)

func (*Regex) Init

func (r *Regex) Init(config []byte) (err error)

type Round

type Round struct {
	ConverterBase
}

func (*Round) Convert

func (c *Round) Convert(jsonData []byte, value []byte, args []byte) (newValue []byte, err error)

type Split

type Split struct {
	ConverterBase
}

func (*Split) Convert

func (c *Split) Convert(jsonData []byte, value []byte, args []byte) (newValue []byte, err error)

|substr start end , end is optional, and will be the last char sliced's index + 1, start is the start index and required

type Splitn

type Splitn struct {
	ConverterBase
}

func (*Splitn) Convert

func (c *Splitn) Convert(jsonData []byte, value []byte, args []byte) (newValue []byte, err error)

|substr start end , end is optional, and will be the last char sliced's index + 1, start is the start index and required

type Ston

type Ston struct {
	ConverterBase
}

func (*Ston) Convert

func (c *Ston) Convert(jsonData []byte, value []byte, args []byte) (newValue []byte, err error)

type Substr

type Substr struct {
	ConverterBase
}

func (*Substr) Convert

func (c *Substr) Convert(jsonData []byte, value []byte, args []byte) (newValue []byte, err error)

|substr start end , end is optional, and will be the last char sliced's index + 1, start is the start index and required

type Trim

type Trim struct {
	ConverterBase
}

func (*Trim) Convert

func (c *Trim) Convert(jsonData []byte, value []byte, args []byte) (newValue []byte, err error)

type Upc added in v5.0.2

type Upc struct {
	ConverterBase
}

func (*Upc) Convert added in v5.0.2

func (c *Upc) Convert(jsonData []byte, value []byte, args []byte) (newValue []byte, err error)

type Upper

type Upper struct {
	ConverterBase
}

func (*Upper) Convert

func (c *Upper) Convert(jsonData []byte, value []byte, args []byte) (newValue []byte, err error)

type Url added in v5.0.3

type Url struct {
	ConverterBase
}

func (*Url) Convert added in v5.0.3

func (c *Url) Convert(jsonData []byte, value []byte, args []byte) (newValue []byte, err error)

Jump to

Keyboard shortcuts

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