output

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChanConnect

func ChanConnect(ctx context.Context, from <-chan *event.ProcessorEvent, to chan<- *event.ProcessorEvent)

func GetOutputChan

func GetOutputChan(name string) (chan *event.ProcessorEvent, error)

func OutputExists

func OutputExists(name string) bool

func OutputRunning

func OutputRunning(name string) bool

func ReadConfig

func ReadConfig() (value string, err error)

ReadConfig read config for default output

func Register

func Register(name string, factory Factory) error

func RegisterOutput

func RegisterOutput(name string, o Output) error

Types

type Factory

type Factory = func(ctx context.Context, config interface{}) (Output, error)

Factory is used to register functions creating new Input instances.

func GetFactory

func GetFactory(name string) (Factory, error)

type Output

type Output interface {
	Run() (err error)
	Stop()
	InputChan() chan *event.ProcessorEvent
}

Directories

Path Synopsis
lancergateway
Package StreamEvent is a generated protocol buffer package.
Package StreamEvent is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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