Documentation ¶
Index ¶
- func GetComponentName(t any) string
- func GetComponentNameWithAlias(t any) (name, alias string)
- type ArgType
- type Base
- type Field
- type Holder
- type Interceptor
- type Meta
- func (m *Meta) GetAllProperties() []*Property
- func (m *Meta) GetComponentProperties() []*Property
- func (m *Meta) GetConfigurationProperties() []*Property
- func (m *Meta) GetDependents() (names []string)
- func (m *Meta) GetProperties(t PropertyType) []*Property
- func (m *Meta) ID() string
- func (m *Meta) IsAlias() bool
- func (m *Meta) IsSelf(o *Meta) bool
- func (m *Meta) IsSingleton() bool
- func (m *Meta) Name() string
- func (m *Meta) SetName(name string)
- func (m *Meta) SetProperties(properties ...*Property)
- func (m *Meta) UseProxy(origin any)
- type Property
- func (n *Property) AppendArg(t ArgType, val []string)
- func (n *Property) AppendArgs(a TagArg)
- func (n *Property) Args() TagArg
- func (n *Property) ID() string
- func (n *Property) Inject(metas []*Meta) error
- func (n *Property) SetArg(t ArgType, val []string)
- func (n *Property) SetArgs(a TagArg)
- func (n *Property) String() string
- type PropertyType
- type TagArg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetComponentName ¶
Types ¶
type Base ¶
type Holder ¶
func NewEmbedHolder ¶
type Interceptor ¶
type Meta ¶
type Meta struct { *Base ProxyMeta *Meta Raw interface{} Fields []*Field Dependent []*Meta // contains filtered or unexported fields }
func CreateProxy ¶
func (*Meta) GetAllProperties ¶
func (*Meta) GetComponentProperties ¶
func (*Meta) GetConfigurationProperties ¶
func (*Meta) GetDependents ¶
func (*Meta) GetProperties ¶
func (m *Meta) GetProperties(t PropertyType) []*Property
func (*Meta) IsSingleton ¶
func (*Meta) SetProperties ¶
type Property ¶
type Property struct { *Field PropertyType PropertyType Tag string TagVal string Injects []*Meta // contains filtered or unexported fields }
func NewProperty ¶
func NewProperty(field *Field, propType PropertyType, tag, tagVal string) *Property
func (*Property) AppendArgs ¶
type PropertyType ¶
type PropertyType string
const ( PropertyTypeConfiguration PropertyType = "configuration" PropertyTypeComponent PropertyType = "component" )
Source Files ¶
Click to show internal directories.
Click to hide internal directories.