transformctx

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2020 License: MIT Imports: 1 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ctx

type Ctx struct {
	// InputName is the name of the input stream to be ingested and transformed.
	InputName string
	// ExternalProperties contains externally set string properties used by schema in the transform.
	ExternalProperties map[string]string
	// CtxAwareErr allows context aware error formatting such as adding input (file) name
	// and line number as a prefix to the error string.
	CtxAwareErr errs.CtxAwareErr
}

Ctx is the context object used throughout a Transform operation.

func (*Ctx) External

func (ctx *Ctx) External(name string) (string, bool)

External looks up, and returns an external property value, if exists.

Jump to

Keyboard shortcuts

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