Documentation ¶
Index ¶
- type MapSource
- 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) Count() int
- func (s *Sources) Find(name string) (Source, bool)
- func (s *Sources) PrecedenceOf(source Source) int
- func (s *Sources) Remove(name string) Source
- func (s *Sources) Replace(name string, source Source)
- func (s *Sources) ToSlice() []Source
- type SourcesResolver
- func (r *SourcesResolver) ContainsProperty(name string) bool
- func (r *SourcesResolver) Property(name string) (any, bool)
- func (r *SourcesResolver) PropertyOrDefault(name string, defaultValue any) any
- func (r *SourcesResolver) ResolvePlaceholders(s string) string
- func (r *SourcesResolver) ResolveRequiredPlaceholders(s string) (string, error)
- type YamlSourceLoader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MapSource ¶
type MapSource struct {
// contains filtered or unexported fields
}
func NewMapSource ¶
func (*MapSource) ContainsProperty ¶
func (*MapSource) PropertyNames ¶
func (*MapSource) PropertyOrDefault ¶
type Properties ¶
type Properties interface {
// contains filtered or unexported methods
}
type SourceLoader ¶
type Sources ¶
type Sources struct {
// contains filtered or unexported fields
}
func NewSources ¶
func NewSources() *Sources
func (*Sources) AddAtIndex ¶
func (*Sources) PrecedenceOf ¶
type SourcesResolver ¶
type SourcesResolver struct {
// contains filtered or unexported fields
}
func NewSourcesResolver ¶
func NewSourcesResolver(sources ...Source) *SourcesResolver
func (*SourcesResolver) ContainsProperty ¶
func (r *SourcesResolver) ContainsProperty(name string) bool
func (*SourcesResolver) PropertyOrDefault ¶
func (r *SourcesResolver) PropertyOrDefault(name string, defaultValue any) any
func (*SourcesResolver) ResolvePlaceholders ¶
func (r *SourcesResolver) ResolvePlaceholders(s string) string
func (*SourcesResolver) ResolveRequiredPlaceholders ¶
func (r *SourcesResolver) ResolveRequiredPlaceholders(s string) (string, error)
type YamlSourceLoader ¶
type YamlSourceLoader struct { }
func (*YamlSourceLoader) FileExtensions ¶
func (l *YamlSourceLoader) FileExtensions() []string
Click to show internal directories.
Click to hide internal directories.