bindings

package
v1.17.1 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2026 License: Apache-2.0 Imports: 11 Imported by: 5 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGRPCInputBinding added in v1.9.0

func NewGRPCInputBinding(l logger.Logger, socket string) *grpcInputBinding

NewGRPCInputBinding creates a new grpc inputbindingusing the given socket factory.

func NewGRPCOutputBinding added in v1.9.0

func NewGRPCOutputBinding(l logger.Logger, socket string) *grpcOutputBinding

NewGRPCOutputBinding creates a new grpc outputbinding using the given socket factory.

Types

type Registry

type Registry struct {
	Logger logger.Logger
	// contains filtered or unexported fields
}

Registry is the interface of a components that allows callers to get registered instances of input and output bindings.

var DefaultRegistry *Registry = NewRegistry()

DefaultRegistry is the singleton with the registry.

func NewRegistry

func NewRegistry() *Registry

NewRegistry is used to create new bindings.

func (*Registry) CreateInputBinding

func (b *Registry) CreateInputBinding(name, version, logName string) (bindings.InputBinding, error)

CreateInputBinding Create instantiates an input binding based on `name`.

func (*Registry) CreateOutputBinding

func (b *Registry) CreateOutputBinding(name, version, logName string) (bindings.OutputBinding, error)

CreateOutputBinding Create instantiates an output binding based on `name`.

func (*Registry) HasInputBinding added in v1.0.0

func (b *Registry) HasInputBinding(name, version string) bool

HasInputBinding checks if an input binding based on `name` exists in the registry.

func (*Registry) HasOutputBinding added in v1.0.0

func (b *Registry) HasOutputBinding(name, version string) bool

HasOutputBinding checks if an output binding based on `name` exists in the registry.

func (*Registry) RegisterInputBinding added in v1.9.0

func (b *Registry) RegisterInputBinding(componentFactory func(logger.Logger) bindings.InputBinding, names ...string)

RegisterInputBinding adds a name input binding to the registry.

func (*Registry) RegisterOutputBinding added in v1.9.0

func (b *Registry) RegisterOutputBinding(componentFactory func(logger.Logger) bindings.OutputBinding, names ...string)

RegisterOutputBinding adds a name output binding to the registry.

Jump to

Keyboard shortcuts

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