dag

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: GPL-3.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetLogger

func SetLogger(log *logrus.Entry)

Types

type DAG

type DAG struct {
	Nodes []Node `json:"nodes"`
	// contains filtered or unexported fields
}

func NewDAG

func NewDAG() *DAG

func (*DAG) Preflight

func (d *DAG) Preflight() error

type Node

type Node struct {
	Name         string   `json:"name"`
	Action       string   `json:"action" default:"GET"`
	URL          string   `json:"url"`
	Dependencies []string `json:"dependencies,omitempty"`
}

func NewNode

func NewNode(name, action, url string, dep []string) *Node

Jump to

Keyboard shortcuts

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