Documentation
¶
Index ¶
- func Init(registry *xform.Registry)
- func NewBoolTransformer(ctx context.Context, config tags.Values, destType reflect.Type, ...) (xform.Transformer, error)
- func NewIntTransformer(ctx context.Context, config tags.Values, destType reflect.Type, ...) (xform.Transformer, error)
- func NewStringTransformer(ctx context.Context, config tags.Values, destType reflect.Type, ...) (xform.Transformer, error)
- type BoolTransformer
- type IntTransformer
- type StringTransformer
- type ValueConverter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBoolTransformer ¶
func NewBoolTransformer(ctx context.Context, config tags.Values, destType reflect.Type, resources *resource.Store) (xform.Transformer, error)
NewBoolTransformer creates a new bool transformer
Types ¶
type BoolTransformer ¶
type BoolTransformer struct {
xform.TransformerBase
}
BoolTransformer converts compatible values to bool
type IntTransformer ¶
type IntTransformer struct {
xform.TransformerBase
}
IntTransformer converts compatible values to int
type StringTransformer ¶
type StringTransformer struct {
xform.TransformerBase
}
StringTransformer converts any value to a string
type ValueConverter ¶ added in v0.2.0
type ValueConverter struct {
TimeLayout string
// DisallowJSON disables implicit structured decoding for non-JSON sources.
DisallowJSON bool
}
ValueConverter converts wire or authored values to the planned source type. Codecs run after this conversion and own destination-specific semantics.
Click to show internal directories.
Click to hide internal directories.