connector

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connector

type Connector interface {
	GetName() string                      // Who am I?
	InitialLoad() error                   // Initial load of data
	Healthy() bool                        // Is the data source healthy?
	StartRefreshRoutine()                 // Start background update task
	EnrichTopology(*model.Topology) error // Update the given Topology with information from Connector
	GetLoadDuration() time.Duration       // How long did the last data load take?
	GetLoadTime() time.Time               // When was the current connector data loaded?
	GetUpdateErrorCount() uint64          // The number of time the refresh of connector data has failed
}

The Connector (think Tentacle of the Octopus) is the glue between any given data source and the Octopus. It is responsible for getting the relevant data out of the data source and caching it internally for resilience. The Octopus will periodically ask all the connectors to enrich a new topology with the current data set to for them full enriched topology.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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