bindings

package
v1.0.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: MIT Imports: 3 Imported by: 2

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)
	HasInputBinding(name string) bool
	HasOutputBinding(name string) bool
	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