Documentation
¶
Index ¶
- type Registar
- func (r *Registar) ImplementsExcept(tp reflect.Type, plugin any) []*implements
- func (r *Registar) Insert(plugin any, retType reflect.Type, method string, weight uint)
- func (r *Registar) Remove(plugin any)
- func (r *Registar) TypeValue(plugin any, tp reflect.Type) (reflect.Value, bool)
- func (r *Registar) Update(plugin any, tp reflect.Type, value func() reflect.Value)
- func (r *Registar) Value(plugin any, tp reflect.Type) (reflect.Value, bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Registar ¶
type Registar struct {
// contains filtered or unexported fields
}
func (*Registar) ImplementsExcept ¶
ImplementsExcept check for the deps which implements the type 'tp' except the plugin itself (or any other plugin)
func (*Registar) TypeValue ¶
TypeValue check that there are plugins (with Provides) that implement all types
Click to show internal directories.
Click to hide internal directories.