Documentation ¶
Index ¶
- Variables
- func EnablePropertyResolvers(resolverTypes string) error
- func PropertyResolverProcessor(properties map[string]interface{}) error
- func RegisterPropertyResolver(resolver Resolver) error
- func ResolveProperty(propertyName string) (interface{}, bool)
- func SetDefaultManager(manager *Manager)
- type Manager
- type PostProcessor
- type Resolver
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RegisteredResolvers = make(map[string]Resolver) EnabledResolvers []Resolver )
Functions ¶
func EnablePropertyResolvers ¶
func ResolveProperty ¶
func SetDefaultManager ¶
func SetDefaultManager(manager *Manager)
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func DefaultManager ¶
func DefaultManager() *Manager
func NewManager ¶
func (*Manager) Finalize ¶
func (m *Manager) Finalize(processors ...PostProcessor) error
func (*Manager) GetProperty ¶
type PostProcessor ¶
type Resolver ¶
type Resolver interface { Name() string // Should return value and true if the given key exists in the external configuration otherwise should return nil and false. LookupValue(key string) (interface{}, bool) }
Resolver used to resolve property value from external configuration like env, file etc
func GetPropertyResolver ¶
Click to show internal directories.
Click to hide internal directories.