registar

package
v2.6.2 Latest Latest
Warning

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

Go to latest
Published: May 6, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

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 New

func New() *Registar

func (*Registar) ImplementsExcept

func (r *Registar) ImplementsExcept(tp reflect.Type, plugin any) []*implements

ImplementsExcept check for the deps which implements the type 'tp' except the plugin itself (or any other plugin)

func (*Registar) Insert

func (r *Registar) Insert(plugin any, retType reflect.Type, method string, weight uint)

func (*Registar) Remove

func (r *Registar) Remove(plugin any)

func (*Registar) TypeValue

func (r *Registar) TypeValue(plugin any, tp reflect.Type) (reflect.Value, bool)

TypeValue check that there are plugins (with Provides) that implement all types

func (*Registar) Update

func (r *Registar) Update(plugin any, tp reflect.Type, value func() reflect.Value)

func (*Registar) Value

func (r *Registar) Value(plugin any, tp reflect.Type) (reflect.Value, bool)

Jump to

Keyboard shortcuts

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