templateprocessor

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Processor

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

Processor defines a template processor.

func New

New creates a processor that uses templates to generate content.

func (*Processor) Process

func (p *Processor) Process(
	delivery *resource.Delivery,
	message *resource.Message,
	deliveryKind *resource.DeliveryKind,
) (map[string]interface{}, error)

Process applies each of the relevant templates to the provided input. It returns a map that indicates the key-values that should be modified.

Jump to

Keyboard shortcuts

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