es5runner

package
v0.0.0-...-fa1d311 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRunner

func NewRunner(c config.Runner) (res itf.RunnerManager, err error)

Types

type CacheWrapper

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

func (*CacheWrapper) Del

func (c *CacheWrapper) Del(key string)

func (*CacheWrapper) Get

func (c *CacheWrapper) Get(key string) any

func (*CacheWrapper) Set

func (c *CacheWrapper) Set(key string, data any)

type Config

type Config struct {
	Name        string `validate:"required"`
	Program     string `validate:"required"`
	ProgramPath string `validate:"required"`
}

type ES5Runner

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

func (*ES5Runner) Ingest

func (r *ES5Runner) Ingest(c <-chan itf.EventMessage) (res <-chan itf.RunnerResult, err error)

func (*ES5Runner) Stop

func (r *ES5Runner) Stop() error

type ES5RunnerManager

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

func (*ES5RunnerManager) New

func (r *ES5RunnerManager) New(cache itf.EventCache, plugins itf.EventPlugins) (res itf.Runner, err error)

func (*ES5RunnerManager) StopAll

func (r *ES5RunnerManager) StopAll() error

type ES5RunnerResult

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

func (*ES5RunnerResult) Ack

func (r *ES5RunnerResult) Ack() error

func (*ES5RunnerResult) AddMetadata

func (r *ES5RunnerResult) AddMetadata(name string, value string)

func (*ES5RunnerResult) Config

func (r *ES5RunnerResult) Config() (res map[string]string, err error)

func (*ES5RunnerResult) Data

func (r *ES5RunnerResult) Data() (any, error)

func (*ES5RunnerResult) Destination

func (r *ES5RunnerResult) Destination() (string, error)

func (*ES5RunnerResult) HasResult

func (r *ES5RunnerResult) HasResult() bool

func (*ES5RunnerResult) Message

func (r *ES5RunnerResult) Message() itf.EventMessage

func (*ES5RunnerResult) Metadata

func (r *ES5RunnerResult) Metadata() (res map[string][]string, err error)

func (*ES5RunnerResult) Nak

func (r *ES5RunnerResult) Nak() error

func (*ES5RunnerResult) SetConfig

func (r *ES5RunnerResult) SetConfig(name string, value string)

func (*ES5RunnerResult) SetData

func (r *ES5RunnerResult) SetData(data any)

func (*ES5RunnerResult) SetMetadata

func (r *ES5RunnerResult) SetMetadata(name string, value string)

type PluginWrapper

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

func (*PluginWrapper) Command

func (p *PluginWrapper) Command(name string, data any) (res any, e error)

type PluginsWrapper

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

func (*PluginsWrapper) Get

func (p *PluginsWrapper) Get(key string) (res *PluginWrapper)

Jump to

Keyboard shortcuts

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