Help us shape the future of Go! Take the 2026 Go Developer Survey

core

package
v0.53.5 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2026 License: MIT Imports: 10 Imported by: 15

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