component

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

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

type Prioritized interface {
	Priority() int
}

Jump to

Keyboard shortcuts

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