Documentation
¶
Index ¶
Constants ¶
View Source
const ( TagSingleton = "singleton" TagExtpoint = "extpoint" TagConfig = "config" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Field ¶
type Field struct {
Object *Object
Name string
Config bool
Extpoint bool
Tag string
// contains filtered or unexported fields
}
Field represents metadata of a field in an Object value's struct.
type Object ¶
type Object struct {
Value interface{}
Name string
Fields map[string]*Field
Enabled bool
PkgPath string
// contains filtered or unexported fields
}
Object represents an object and its metadata in a registry
type Registry ¶
Registry is a container for objects.
func (*Registry) Lookup ¶
Lookup will attempt to find an object in the registry... 1. if it matches the object FQN exactly 2. if it matches a single object Name 3. if it matches a single object by package path suffix
func (*Registry) Reload ¶
Reload will go over all objects in the registry and attempt to populate fields with com struct tags with other objects in the registry.
func (*Registry) SetEnabled ¶
SetEnabled will set whether an object is enabled.
Click to show internal directories.
Click to hide internal directories.