Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LabeledCreator ¶
type LabeledTypes ¶
type LabeledTypes[T any, M any] struct { LabeledTypes map[string]*Types[T, M] CacheResolveFirst map[string]LabeledCreator[T, M] }
func NewLabeledTypes ¶
func NewLabeledTypes[T any, M any]() *LabeledTypes[T, M]
func (*LabeledTypes[T, M]) Register ¶
func (o *LabeledTypes[T, M]) Register(label string) (ret *Types[T, M])
func (*LabeledTypes[T, M]) Resolve ¶
func (o *LabeledTypes[T, M]) Resolve(namespace, typ string) (ret LabeledCreator[T, M])
func (*LabeledTypes[T, M]) ResolveFirst ¶
func (o *LabeledTypes[T, M]) ResolveFirst(typ string) (ret LabeledCreator[T, M])
Click to show internal directories.
Click to hide internal directories.