filter_js

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2019 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Factory

func Factory() plugin.Plugin

Types

type Config

type Config struct {
	Script     string                 `toml:"script"`
	ScriptFile string                 `toml:"script_file"`
	Env        map[string]interface{} `toml:"env"`
}

type JSFilter

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

func (*JSFilter) Close

func (f *JSFilter) Close() error

func (*JSFilter) Filter

func (f *JSFilter) Filter(ev *message.Event) (*message.Event, error)

func (*JSFilter) Init

func (f *JSFilter) Init(env *plugin.Env) (err error)

func (*JSFilter) Start

func (f *JSFilter) Start() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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