Documentation ¶
Index ¶
- type MapPropertySource
- func (m *MapPropertySource) ContainsProperty(name string) bool
- func (m *MapPropertySource) Name() string
- func (m *MapPropertySource) Property(name string) (any, bool)
- func (m *MapPropertySource) PropertyNames() []string
- func (m *MapPropertySource) PropertyOrDefault(name string, defaultValue any) any
- func (m *MapPropertySource) Source() any
- type Properties
- type Resolver
- type Source
- type SourceLoader
- type Sources
- func (s *Sources) AddAtIndex(index int, source Source)
- func (s *Sources) AddFirst(source Source)
- func (s *Sources) AddLast(source Source)
- func (s *Sources) Contains(name string) bool
- func (s *Sources) Find(name string) (Source, bool)
- func (s *Sources) PrecendenceOf(source Source) int
- func (s *Sources) Remove(name string) Source
- func (s *Sources) Replace(name string, source Source)
- func (s *Sources) Size() int
- func (s *Sources) ToSlice() []Source
- type SourcesResolver
- func (r *SourcesResolver) ContainsProperty(name string) bool
- func (r *SourcesResolver) Property(name string) (string, bool)
- func (r *SourcesResolver) PropertyOrDefault(name string, defaultValue string) string
- func (r *SourcesResolver) ResolvePlaceholders(s string) string
- func (r *SourcesResolver) ResolveRequiredPlaceholders(s string) (string, error)
- type YamlPropertySourceLoader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MapPropertySource ¶
type MapPropertySource struct {
// contains filtered or unexported fields
}
func NewMapPropertySource ¶
func NewMapPropertySource(name string, source map[string]interface{}) *MapPropertySource
func (*MapPropertySource) ContainsProperty ¶
func (m *MapPropertySource) ContainsProperty(name string) bool
func (*MapPropertySource) Name ¶
func (m *MapPropertySource) Name() string
func (*MapPropertySource) PropertyNames ¶
func (m *MapPropertySource) PropertyNames() []string
func (*MapPropertySource) PropertyOrDefault ¶
func (m *MapPropertySource) PropertyOrDefault(name string, defaultValue any) any
func (*MapPropertySource) Source ¶
func (m *MapPropertySource) Source() any
type Properties ¶
type Properties interface {
// contains filtered or unexported methods
}
type SourceLoader ¶
type Sources ¶
type Sources struct {
// contains filtered or unexported fields
}
func NewPropertySources ¶
func NewPropertySources() *Sources
func (*Sources) AddAtIndex ¶
func (*Sources) PrecendenceOf ¶
type SourcesResolver ¶
type SourcesResolver struct {
// contains filtered or unexported fields
}
func NewSourcesResolver ¶
func NewSourcesResolver(sources *Sources) *SourcesResolver
func (*SourcesResolver) ContainsProperty ¶
func (r *SourcesResolver) ContainsProperty(name string) bool
func (*SourcesResolver) PropertyOrDefault ¶
func (r *SourcesResolver) PropertyOrDefault(name string, defaultValue string) string
func (*SourcesResolver) ResolvePlaceholders ¶
func (r *SourcesResolver) ResolvePlaceholders(s string) string
func (*SourcesResolver) ResolveRequiredPlaceholders ¶
func (r *SourcesResolver) ResolveRequiredPlaceholders(s string) (string, error)
type YamlPropertySourceLoader ¶
type YamlPropertySourceLoader struct { }
func NewYamlPropertySourceLoader ¶
func NewYamlPropertySourceLoader() *YamlPropertySourceLoader
func (*YamlPropertySourceLoader) FileExtensions ¶
func (l *YamlPropertySourceLoader) FileExtensions() []string
func (*YamlPropertySourceLoader) LoadSource ¶
Click to show internal directories.
Click to hide internal directories.