templates

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenericLoader

type GenericLoader struct {
	Type string
}

GenericLoader is a loader that loads templates for sources, filters and actions

func NewLoader

func NewLoader(t string) *GenericLoader

NewLoader creates a new loader for the given type.

func (*GenericLoader) LoadTemplate

func (l *GenericLoader) LoadTemplate(ctx context.Context, name string) (string, error)

LoadTemplate loads a template by name.

type Loader

type Loader interface {
	LoadTemplate(context.Context, string) (string, error)
}

Loader is the interface for loading templates.

Jump to

Keyboard shortcuts

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