Documentation ¶
Index ¶
- type Depgraph
- func (g *Depgraph) AddItem(key string, value interface{}, deps ...string)
- func (g *Depgraph) AddOptionalItem(key string, value interface{})
- func (g *Depgraph) CheckAndQueue(key string, exec func(interface{}) error) error
- func (g *Depgraph) ClearOptionalItems()
- func (g *Depgraph) Run(exec func(interface{}) error) error
- func (g *Depgraph) RunLoop() error
- func (g *Depgraph) RunQueuedUpItems() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Depgraph ¶
type Depgraph struct {
// contains filtered or unexported fields
}
func (*Depgraph) AddOptionalItem ¶
func (*Depgraph) CheckAndQueue ¶
func (*Depgraph) ClearOptionalItems ¶
func (g *Depgraph) ClearOptionalItems()
func (*Depgraph) Run ¶
Run runs the dependency graph. takes a func that takes an interface{}, calls it exactly once for everything that has been added and makes sure it's called exactly once for each
func (*Depgraph) RunLoop ¶
RunLoop is used in scenarios where the client needs to control what's run and what's passed. they should "override" RunLoop(), call CheckAndQueue() for each item and then call RunQueuedUpItems once afterwards to run the rest
func (*Depgraph) RunQueuedUpItems ¶
Click to show internal directories.
Click to hide internal directories.