bindings

package
v0.11.3 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2020 License: MIT Imports: 3 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

This section is empty.

Types

type InputBinding added in v0.4.0

type InputBinding struct {
	Name          string
	FactoryMethod func() bindings.InputBinding
}

InputBinding is an input binding component definition.

func NewInput added in v0.4.0

func NewInput(name string, factoryMethod func() bindings.InputBinding) InputBinding

NewInput creates a InputBinding.

type OutputBinding added in v0.4.0

type OutputBinding struct {
	Name          string
	FactoryMethod func() bindings.OutputBinding
}

OutputBinding is an output binding component definition.

func NewOutput added in v0.4.0

func NewOutput(name string, factoryMethod func() bindings.OutputBinding) OutputBinding

NewOutput creates a OutputBinding.

type Registry

type Registry interface {
	RegisterInputBindings(components ...InputBinding)
	RegisterOutputBindings(components ...OutputBinding)
	CreateInputBinding(name string) (bindings.InputBinding, error)
	CreateOutputBinding(name string) (bindings.OutputBinding, error)
}

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

func NewRegistry

func NewRegistry() Registry

NewRegistry is used to create new bindings.

Jump to

Keyboard shortcuts

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