integrations

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseIntegration

type BaseIntegration struct {
	ID           string
	CogClient    *internal.CdfClient
	IsRunning    bool
	StateTracker *internal.StateTracker

	ConfigObserver *internal.CdfConfigObserver // remote config observer
	// contains filtered or unexported fields
}

BaseIntegration is a base class for all integrations. Integrations are long running processes that internally run one or more processors (goroutines) All processors share that same logic but configured differently. StateTracker is used to track the state of all processors and to control them.

func NewIntegration

func NewIntegration(id string, cogClient *internal.CdfClient, extractorID string, configObserver *internal.CdfConfigObserver) *BaseIntegration

func (*BaseIntegration) ReportRunStatus

func (intgr *BaseIntegration) ReportRunStatus(camExternalID, status, msg string)

func (*BaseIntegration) Stop

func (intgr *BaseIntegration) Stop()

func (*BaseIntegration) StopProcessor

func (intgr *BaseIntegration) StopProcessor(procId uint64)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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