fake

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Factory

func Factory() (pipeline.AnyPlugin, pipeline.AnyConfig)

Types

type Config

type Config struct{}

type Plugin

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

func (*Plugin) Commit

func (p *Plugin) Commit(event *pipeline.Event)

func (*Plugin) In

func (p *Plugin) In(sourceID pipeline.SourceID, sourceName string, offset int64, bytes []byte)

> It sends a test event into the pipeline.

func (*Plugin) PassEvent added in v0.6.5

func (p *Plugin) PassEvent(_ *pipeline.Event) bool

PassEvent decides pass or discard event.

func (*Plugin) SetCommitFn

func (p *Plugin) SetCommitFn(fn func(event *pipeline.Event))

> It sets up a hook to make sure the test event has been successfully committed.

func (*Plugin) SetInFn

func (p *Plugin) SetInFn(fn func())

> It sets up a hook to make sure the test event has been passed to the plugin.

func (*Plugin) Start

func (p *Plugin) Start(_ pipeline.AnyConfig, params *pipeline.InputPluginParams)

func (*Plugin) Stop

func (p *Plugin) Stop()

Jump to

Keyboard shortcuts

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