core

package
v0.15.5 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2022 License: Apache-2.0 Imports: 10 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCoreBus

func NewCoreBus(
	ctx context.Context,
	le *logrus.Entry,
	opts ...Option,
) (bus.Bus, *static.Resolver, error)

NewCoreBus constructs a standard in-memory bus stack.

Types

type CoreBusConfig added in v0.8.7

type CoreBusConfig struct {
	// FactoryResolver overrides the static resolver.
	FactoryResolverCtor FactoryResolverCtor
	// BuiltInFactories is the list of built in controller factories.
	BuiltInFactories []controller.Factory
}

CoreBusConfig configures NewCoreBus.

type FactoryResolverCtor added in v0.8.7

type FactoryResolverCtor func(b bus.Bus, sr *static.Resolver) (controller.FactoryResolver, error)

FactoryResolverCtor constructs a Factory resolver.

type Option added in v0.8.7

type Option func(c *CoreBusConfig) error

Option is a core config option.

func WithControllerFactories added in v0.8.7

func WithControllerFactories(factories ...controller.Factory) Option

WithControllerFactories adds built-in factories.

func WithFactoryResolverCtor added in v0.8.7

func WithFactoryResolverCtor(ctor FactoryResolverCtor) Option

WithFactoryResolverCtor sets the Factory resolver constructor.

Jump to

Keyboard shortcuts

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