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 ¶
Types ¶
type ChildConfig ¶
type ChildrenRegistry ¶
type ChildrenRegistry interface {
Get(name config.Name) (ChildConfig, bool)
}
func New ¶
func New(children ...ChildConfig) (ChildrenRegistry, error)
Click to show internal directories.
Click to hide internal directories.