templater

package
v0.0.0-...-5f33b41 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Templater

type Templater struct {
	DefaultTemplate *internal.MessageTemplate
	// contains filtered or unexported fields
}

Templater is the object used to handle default and different templates depending on the specific matcher configuration

func (Templater) Expand

func (m Templater) Expand(forEvent internal.Event, payload interface{}) (string, error)

Expand send the message by expanding the template to then send the actual message

func (Templater) WithTemplate

func (m Templater) WithTemplate(template *internal.MessageTemplate) Templater

WithTemplate sets a specific template and returns a new matcher

Jump to

Keyboard shortcuts

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