depgraph

package
v0.1.18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 29, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

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) AddItem

func (g *Depgraph) AddItem(key string, value interface{}, deps ...string)

func (*Depgraph) AddOptionalItem

func (g *Depgraph) AddOptionalItem(key string, value interface{})

func (*Depgraph) CheckAndQueue

func (g *Depgraph) CheckAndQueue(key string, exec func(interface{}) error) error

func (*Depgraph) ClearOptionalItems

func (g *Depgraph) ClearOptionalItems()

func (*Depgraph) Run

func (g *Depgraph) Run(exec func(interface{}) error) error

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

func (g *Depgraph) RunLoop() error

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

func (g *Depgraph) RunQueuedUpItems() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL