Documentation ¶
Index ¶
- 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) String() string
- func (m *Meta) UseProxy(origin any)
- type Property
- func (n *Property) AddArg(t ArgType, val ...string)
- func (n *Property) Args() TagArg
- func (n *Property) ID() string
- func (n *Property) Inject(metas []*Meta) error
- func (n *Property) IsRequired() bool
- func (n *Property) SetArg(t ArgType, val ...string)
- func (n *Property) SetConfiguration(path string, configValue any)
- func (n *Property) String() string
- func (n *Property) Unmarshall(configValue any) error
- type PropertyType
- type TagArg
- func (m TagArg) Add(argType ArgType, val ...string)
- func (m TagArg) Find(argType ArgType) ([]string, bool)
- func (m TagArg) ForEach(f func(argType ArgType, args []string))
- func (m TagArg) Has(argType ArgType, wants ...string) bool
- func (m TagArg) Parse(tag string) string
- func (m TagArg) Set(argType ArgType, val ...string)
- func (m TagArg) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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, TagStr string TagVal string Injects []*Meta Configurations map[string]any // contains filtered or unexported fields }
func NewProperty ¶
func NewProperty(field *Field, propType PropertyType, tag, tagVal string) *Property
func (*Property) IsRequired ¶ added in v1.5.12
func (*Property) SetConfiguration ¶ added in v1.5.7
func (*Property) Unmarshall ¶ added in v1.5.7
type PropertyType ¶
type PropertyType string
const ( PropertyTypeConfiguration PropertyType = "Configuration" PropertyTypeComponent PropertyType = "Component" )
Click to show internal directories.
Click to hide internal directories.