component

package
v0.0.6-dev Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

View Source
const (
	HighestPriority = math.MinInt
	LowestPriority  = math.MaxInt
)
View Source
const (
	SharedScope    = "shared"
	PrototypeScope = "prototype"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component struct {
	// contains filtered or unexported fields
}

func New

func New(constructor Constructor, options ...Option) (*Component, error)

func Register

func Register(constructor Constructor, options ...Option) *Component

func RegisteredComponents

func RegisteredComponents() []*Component

func (*Component) ConditionalOn

func (c *Component) ConditionalOn(condition condition.Condition) *Component

func (*Component) Conditions

func (c *Component) Conditions() []condition.Condition

func (*Component) Definition

func (c *Component) Definition() *container.Definition

type Constructor

type Constructor any

type Option

type Option interface {
	// contains filtered or unexported methods
}

func Name

func Name(name string) Option

func Optional

func Optional[T any]() Option

func OptionalAt

func OptionalAt(index int) Option

func Qualifier

func Qualifier[T any](name string) Option

func QualifierAt

func QualifierAt(index int, name string) Option

func Scoped

func Scoped(scope string) Option

type Prioritized added in v0.0.17

type Prioritized interface {
	Priority() int
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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