language

package
v0.0.0-...-f162aa9 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Language

type Language struct {
	Jq       *jq.Jq             `yaml:"jq,omitempty"`
	Mustache *mustache.Mustache `yaml:"mustache,omitempty"`
	Wasm     *wasm.Wasm         `yaml:"wasm,omitempty"`
	Constant *constant.Constant `yaml:"constant,omitempty"`
}

func New

func New(opts ...OptionFn) *Language

func (*Language) Predicate

func (l *Language) Predicate(ctx context.Context, camelContext camel.Context) (camel.Predicate, error)

func (*Language) Processor

func (l *Language) Processor(ctx context.Context, camelContext camel.Context) (camel.Processor, error)

func (*Language) Transformer

func (l *Language) Transformer(ctx context.Context, camelContext camel.Context) (camel.Transformer, error)

type OptionFn

type OptionFn func(language *Language)

func WithConstant

func WithConstant(value *constant.Constant) OptionFn

func WithConstantExpression

func WithConstantExpression(value string) OptionFn

func WithJq

func WithJq(value *jq.Jq) OptionFn

func WithJqExpression

func WithJqExpression(value string) OptionFn

func WithMustache

func WithMustache(value *mustache.Mustache) OptionFn

func WithMustacheExpression

func WithMustacheExpression(value string) OptionFn

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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