childrenregistry

package
v1.15.18 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	FxTagChildren = `group:"childrensource"`
)

Variables

View Source
var Module = fx.Module("childregistry",
	fx.Provide(
		fx.Annotate(
			New,
			fx.As(new(ChildrenRegistry)),
			fx.ParamTags(FxTagChildren),
		),
	),
)

Functions

func NewModule

func NewModule(name config.Name, content []byte) fx.Option

Types

type ChildConfig

type ChildConfig struct {
	Content []byte
	Name    config.Name
}

type ChildrenRegistry

type ChildrenRegistry interface {
	Get(name config.Name) (ChildConfig, bool)
}

func New

func New(children ...ChildConfig) (ChildrenRegistry, error)

Jump to

Keyboard shortcuts

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