Documentation ¶
Index ¶
Constants ¶
const ( FIELD_ENGINE = "engine" FIELD_TEMPLATE_NAME = "templateName" )
const ( FIELD_REALPATH = "realpath" FIELD_TEMPLATE_NAME = "templateName" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Common ¶
type Common struct {
// contains filtered or unexported fields
}
func (Common) TemplateName ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
Engine : Main entrypoint of configuration daemon.
This struct manage - lifecycle of source.Source - template lifecycles - value caches
Template can be added dynamically but sources are statically defined at initialization.
func (*Engine) AddTemplates ¶
AddTemplates : Add several templates at runtime
What this method do : - parse template from paths - flag the template whether it need to be watched or not - init some template function (ALookup, SLookup, HLookup, Lookup) in each template
func (*Engine) Close ¶
func (engine *Engine) Close()
Close : close the engine (io.Closer)
What this method do : - close filewatcher - close all sources
func (*Engine) FileWatcher ¶
FileWatcher : Get all relevant file watcher that being used
by this engine
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry : registery (for uri alias) only registry no unregistration
func (*Registry) ExpandURI ¶
func (r *Registry) ExpandURI(uri md.LimitedURI) (md.LimitedURI, error)
ExpandURI : expanding URI recursively
type Relation ¶
type Relation struct {
// contains filtered or unexported fields
}
This can be used for defining which template that need to evaluated if there is value changes.
func EmptyRelation ¶
func EmptyRelation() Relation
func (*Relation) ImpactedSource ¶
func (*Relation) ImpactedTarget ¶
type Template ¶
type Template struct {
// contains filtered or unexported fields
}