Documentation
¶
Index ¶
- func Description(obj interface{}) (description string)
- func IsConfigurer(obj interface{}) (ok bool)
- func IsDestroyer(obj interface{}) (ok bool)
- func IsPreparer(obj interface{}) (ok bool)
- func IsProvider(obj interface{}) (ok bool)
- func IsRunner(obj interface{}) (ok bool)
- func Name(obj interface{}) (name string)
- type ConfigField
- type Configuration
- type Configurer
- type Destroyer
- type Preparer
- type Provider
- type Runner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Description ¶
func Description(obj interface{}) (description string)
Description of Object. Return value from description field if available or return its type
func IsConfigurer ¶
func IsConfigurer(obj interface{}) (ok bool)
IsConfigurer return true if object implementation of configurer
func IsDestroyer ¶
func IsDestroyer(obj interface{}) (ok bool)
IsDestroyer return true if object implementation of destructor
func IsPreparer ¶
func IsPreparer(obj interface{}) (ok bool)
IsPreparer return true obj implement Preparer
func IsProvider ¶
func IsProvider(obj interface{}) (ok bool)
IsProvider return true if object implementation of provider
Types ¶
type ConfigField ¶
ConfigField contain field information of spec
type Configuration ¶
type Configuration struct {
Prefix string
Spec interface{}
}
Configuration represent the configuration
func (Configuration) ConfigFields ¶
func (c Configuration) ConfigFields() (infos []ConfigField)
ConfigFields return list of field information
func (Configuration) Configure ¶
func (c Configuration) Configure() Configuration
Configure return config itself
type Configurer ¶
type Configurer interface {
Configure() Configuration
}
Configurer responsible to create config
type Destroyer ¶
type Destroyer interface {
Destroy() []interface{}
}
Destroyer responsible to destruct dependency
Click to show internal directories.
Click to hide internal directories.