output

package
v0.0.0-...-6d10cd0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2025 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(ctx context.Context, name string, driver Driver)

Register register connector in the catalog

func Send

func Send(ctx context.Context, response *payload.Response) map[string]interface{}

Send send response with specified connector

func StopAll

func StopAll(ctx context.Context)

StopAll stop all outputs

Types

type Driver

type Driver interface {
	// Name returns name of the output
	Name() string
	// Type returns type of output
	Type() string
	// Send sends response with output
	Send(ctx context.Context, response *payload.Response) map[string]interface{}
	//Stop stops execution of output
	Stop(ctx context.Context)
}

Driver output driver interface

Jump to

Keyboard shortcuts

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