definition

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2026 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ScopeSingleton = "singleton"
	ScopePrototype = "prototype"
)
View Source
const (
	//System Components tag
	LoggerTag = "logger"

	//components tag
	InjectTag = "wire"
	FuncTag   = "func"

	//configuration tag
	ValueTag  = "value"
	PropTag   = "prop" //`prop` tag is alias to `value:"${prop_value}"`
	PrefixTag = "prefix"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationClosingEvent added in v1.6.0

type ApplicationClosingEvent struct {
	App interface{}
}

func (*ApplicationClosingEvent) Source added in v1.6.0

func (e *ApplicationClosingEvent) Source() interface{}

type ApplicationEvent added in v1.6.0

type ApplicationEvent interface {
	Source() interface{}
}

type ApplicationEventListener added in v1.6.0

type ApplicationEventListener interface {
	OnEvent(event ApplicationEvent) error
}

type ApplicationEventPublisher added in v1.6.0

type ApplicationEventPublisher interface {
	PublishEvent(event ApplicationEvent) error
}

type ApplicationRunner

type ApplicationRunner interface {
	Run() error
}

type ApplicationRunnerWithContext added in v1.6.0

type ApplicationRunnerWithContext interface {
	RunWithContext(ctx context.Context) error
}

type ApplicationStartedEvent added in v1.6.0

type ApplicationStartedEvent struct {
	App interface{}
}

func (*ApplicationStartedEvent) Source added in v1.6.0

func (e *ApplicationStartedEvent) Source() interface{}

type CloserComponent

type CloserComponent interface {
	Close() error
}

type CloserComponentWithContext added in v1.6.0

type CloserComponentWithContext interface {
	CloseWithContext(ctx context.Context) error
}

type ComponentCreatedEvent added in v1.6.0

type ComponentCreatedEvent struct {
	ComponentName string
	Component     interface{}
}

func (*ComponentCreatedEvent) Source added in v1.6.0

func (e *ComponentCreatedEvent) Source() interface{}

type ConditionContext added in v1.6.0

type ConditionContext interface {
	HasComponent(name string) bool
	GetConfig(key string) interface{}
}

type ConditionalComponent added in v1.6.0

type ConditionalComponent interface {
	Condition(ctx ConditionContext) bool
}

type ConfigurationProperties added in v1.5.5

type ConfigurationProperties interface {
	Prefix() string
}

type InitializeComponent

type InitializeComponent interface {
	Init() error
}

type InitializeComponentWithContext added in v1.6.0

type InitializeComponentWithContext interface {
	Init(ctx context.Context) error
}

type InitializingComponent

type InitializingComponent interface {
	AfterPropertiesSet() error
}

type InitializingComponentWithContext added in v1.6.0

type InitializingComponentWithContext interface {
	AfterPropertiesSet(ctx context.Context) error
}

type LazyInit

type LazyInit interface {
	LazyInit()
}

type LazyInitComponent

type LazyInitComponent struct{}

func (*LazyInitComponent) LazyInit

func (i *LazyInitComponent) LazyInit()

type NamingComponent

type NamingComponent interface {
	Naming() string
}

type Ordered

type Ordered interface {
	Order() int
}

type Priority

type Priority interface {
	Priority()
}

type PriorityComponent

type PriorityComponent struct{}

func (*PriorityComponent) Priority

func (i *PriorityComponent) Priority()

type PriorityOrdered

type PriorityOrdered interface {
	Priority
	Ordered
}

type ScopeComponent added in v1.6.0

type ScopeComponent interface {
	Scope() string
}

type WirePrimary

type WirePrimary interface {
	Primary()
}

type WirePrimaryComponent

type WirePrimaryComponent struct{}

func (*WirePrimaryComponent) Primary

func (i *WirePrimaryComponent) Primary()

type WireQualifier

type WireQualifier interface {
	Qualifier() string
}

Jump to

Keyboard shortcuts

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