manager

package
v0.0.0-...-c3020d8 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrAppNotReceiver return if application plugin does not implement any receiver. In this case, it will receive no messages from the internal buses
	ErrAppNotReceiver = errors.New("application plugin does not implement either application.MetricReceiver or application.EventReceiver")
)

errors

Functions

func InitApplication

func InitApplication(name string, config interface{}) error

InitApplication initialize application plugin with configuration

func InitTransport

func InitTransport(name string, config interface{}) (string, error)

InitTransport load tranpsort binary and initialize with config

func RunApplications

func RunApplications(ctx context.Context, wg *sync.WaitGroup, done chan bool)

RunApplications spins off application processes

func RunTransports

func RunTransports(ctx context.Context, wg *sync.WaitGroup, done chan bool, report bool)

RunTransports spins off tranpsort + handler processes

func SetEventBusBlocking

func SetEventBusBlocking(block bool)

SetBlockingEventBus set the correct event bus publish function

func SetLogger

func SetLogger(l *logging.Logger)

SetLogger set logger

func SetPluginDir

func SetPluginDir(path string)

SetPluginDir set directory path containing plugin binaries

func SetTransportHandlers

func SetTransportHandlers(name string, handlerBlocks []struct {
	Name   string `validate:"required"`
	Config interface{}
}) error

SetTransportHandlers load handlers binaries for transport

Types

This section is empty.

Jump to

Keyboard shortcuts

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