wiring

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container interface {
	Service(service any) error
}

func NewContainer

func NewContainer(
	modules ...Module,
) (Container, error)

type Module

type Module interface {
	MayProvide(constructor any, options ...ProvideOption)
	Provide(constructor any, options ...ProvideOption)
	Invoke(call any)
	// contains filtered or unexported methods
}

func DefineModule

func DefineModule(
	name string, definer func(module Module),
) Module

type PostConstructable

type PostConstructable interface {
	PostConstruct() error
}

type ProvideOption

type ProvideOption interface {
	// contains filtered or unexported methods
}

func ForceInitialization

func ForceInitialization() ProvideOption

Jump to

Keyboard shortcuts

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