runtime

package
v0.0.0-...-9cde175 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	Name string
}

type Engine

type Engine struct {
	Loader *Loader
}

func (*Engine) Load

func (e *Engine) Load(name, path string, conf []byte)

func (*Engine) Run

func (e *Engine) Run(ctx Context)

type Filter

type Filter interface {
	Execute(ctx Context) error
}

type Loader

type Loader struct {
	Filters map[string]Filter
	Config  map[string][]byte
}

func (*Loader) Load

func (l *Loader) Load(name, path string, conf []byte)

type PluginFactory

type PluginFactory interface {
	Create(conf []byte) (Filter, interface{})
}

Jump to

Keyboard shortcuts

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