uppercase

package
v0.0.0-...-31600e6 Latest Latest
Warning

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

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

Documentation

Overview

Code generated by processor/generate.go - DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Source field to process.
	Field string `config:"field" validate:"required"`

	// If true and field does not exist or is null, the processor quietly
	// returns without modifying the document.
	IgnoreMissing bool `config:"ignore_missing"`

	// The field to assign the output value to, by default field is updated
	// in-place.
	TargetField string `config:"target_field"`
}

Config contains the configuration options for the uppercase processor.

func (*Config) InitDefaults

func (c *Config) InitDefaults()

InitDefaults initializes the configuration options to their default values.

type Uppercase

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

Uppercase converts a string to its uppercase equivalent. If the field is an array of strings, all members of the array will be converted.

func New

func New(config Config) (*Uppercase, error)

New returns a new Uppercase processor.

func (*Uppercase) Config

func (p *Uppercase) Config() Config

Config returns the Uppercase processor config.

func (*Uppercase) Process

func (p *Uppercase) Process(evt processor.Event) error

func (*Uppercase) String

func (p *Uppercase) String() string

Jump to

Keyboard shortcuts

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