interop

package
v3.46.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package interop provides utilities for initializing Benthos components that default to the old APIs, but when the provided manager supports it the new APIs are used.

TODO: V4 Remove this package

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLabel

func GetLabel(mgr types.Manager) string

GetLabel attempts the extract the current label of a component by obtaining it from a manager. If the manager does not support label methods then it instead falls back to a UUID, and somehow failing that returns an empty string.

func LabelChild

func LabelChild(label string, mgr types.Manager, logger log.Modular, stats metrics.Type) (types.Manager, log.Modular, metrics.Type)

LabelChild expands the label of the provided observability components.

func LabelRoot

func LabelRoot(label string, mgr types.Manager, logger log.Modular, stats metrics.Type) (types.Manager, log.Modular, metrics.Type)

LabelRoot replaces the label of the provided observability components.

func LabelStream

func LabelStream(label string, mgr types.Manager, logger log.Modular, stats metrics.Type) (types.Manager, log.Modular, metrics.Type)

LabelStream expands the label of the provided observability components with a stream identifier.

Types

This section is empty.

Directories

Path Synopsis
Package plugins provides a way to have the new components for plugins-v2 able to access and "pull" the old style plugins without introducing cyclic dependencies.
Package plugins provides a way to have the new components for plugins-v2 able to access and "pull" the old style plugins without introducing cyclic dependencies.

Jump to

Keyboard shortcuts

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