Documentation ¶
Index ¶
- type Catalog
- func (cat *Catalog) AssembleCatalog() (err error)
- func (cat *Catalog) BeginFile(name string) (err error)
- func (cat *Catalog) CurrentDomain() (ret string)
- func (cat *Catalog) DomainEnd() (err error)
- func (cat *Catalog) DomainStart(name string, requires []string) (err error)
- func (cat *Catalog) EndFile()
- func (cat *Catalog) GetDomain(n string) (*Domain, bool)
- func (cat *Catalog) GetRuntime() rt.Runtime
- func (cat *Catalog) NewCounter(name string) (ret string)
- func (cat *Catalog) Schedule(when weaver.Phase, cb func(weaver.Weaves, rt.Runtime) error) (err error)
- func (cat *Catalog) Step(cb StepFunction) (err error)
- type Domain
- type DomainStack
- type Env
- type ScheduledCallback
- type StepFunction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Catalog ¶
type Catalog struct { *mdl.Modeler // db output Env Env // generic storage for command processing // contains filtered or unexported fields }
Catalog - receives ephemera from the importer.
func NewCatalog ¶
func NewCatalogWithWarnings ¶
func (*Catalog) AssembleCatalog ¶
walk the domains and run the commands remaining in their queues
func (*Catalog) CurrentDomain ¶
return the uniformly named domain ( if it exists )
func (*Catalog) DomainStart ¶
calls to schedule() between begin/end domain write to this newly declared domain. names dont have to be normalized.
func (*Catalog) GetRuntime ¶
func (*Catalog) NewCounter ¶
func (*Catalog) Schedule ¶
func (cat *Catalog) Schedule(when weaver.Phase, cb func(weaver.Weaves, rt.Runtime) error) (err error)
run the passed function now or in the future.
func (*Catalog) Step ¶
func (cat *Catalog) Step(cb StepFunction) (err error)
run passed function until it returns true or errors if currently processing, the first step will execute next phase.
type DomainStack ¶
type DomainStack []*Domain
DomainStack - tracks the current target of calls to schedule().
func (*DomainStack) Pop ¶
func (k *DomainStack) Pop() (ret *Domain, okay bool)
return false if empty
func (*DomainStack) Push ¶
func (k *DomainStack) Push(b *Domain)
func (*DomainStack) Top ¶
func (k *DomainStack) Top() (ret *Domain, okay bool)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.