pkggraph

package
v0.0.0-...-15a92f0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Grapher

type Grapher interface {
	Build(
		nameToNodeInfo map[string]*NodeInfo,
		nameToNodeFunc map[string]func() error,
	) (Run, error)
}

Grapher provides functionality for creating graphs.

func NewGrapher

func NewGrapher() Grapher

NewGrapher creates a new graph.

type NodeFinished

type NodeFinished struct {
	Node  string `protobuf:"bytes,1,opt,name=node" json:"node,omitempty"`
	Error string `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"`
}

func (*NodeFinished) Descriptor

func (*NodeFinished) Descriptor() ([]byte, []int)

func (*NodeFinished) ProtoMessage

func (*NodeFinished) ProtoMessage()

func (*NodeFinished) Reset

func (m *NodeFinished) Reset()

func (*NodeFinished) String

func (m *NodeFinished) String() string

type NodeFinishedWaiting

type NodeFinishedWaiting struct {
	Node        string `protobuf:"bytes,1,opt,name=node" json:"node,omitempty"`
	ParentError string `protobuf:"bytes,2,opt,name=parent_error" json:"parent_error,omitempty"`
}

func (*NodeFinishedWaiting) Descriptor

func (*NodeFinishedWaiting) Descriptor() ([]byte, []int)

func (*NodeFinishedWaiting) ProtoMessage

func (*NodeFinishedWaiting) ProtoMessage()

func (*NodeFinishedWaiting) Reset

func (m *NodeFinishedWaiting) Reset()

func (*NodeFinishedWaiting) String

func (m *NodeFinishedWaiting) String() string

type NodeInfo

type NodeInfo struct {
	Parents []string
}

NodeInfo represents the information for a node.

type NodeSending

type NodeSending struct {
	Node      string `protobuf:"bytes,1,opt,name=node" json:"node,omitempty"`
	ChildNode string `protobuf:"bytes,2,opt,name=child_node" json:"child_node,omitempty"`
	Error     string `protobuf:"bytes,3,opt,name=error" json:"error,omitempty"`
}

func (*NodeSending) Descriptor

func (*NodeSending) Descriptor() ([]byte, []int)

func (*NodeSending) ProtoMessage

func (*NodeSending) ProtoMessage()

func (*NodeSending) Reset

func (m *NodeSending) Reset()

func (*NodeSending) String

func (m *NodeSending) String() string

type NodeStarting

type NodeStarting struct {
	Node string `protobuf:"bytes,1,opt,name=node" json:"node,omitempty"`
}

func (*NodeStarting) Descriptor

func (*NodeStarting) Descriptor() ([]byte, []int)

func (*NodeStarting) ProtoMessage

func (*NodeStarting) ProtoMessage()

func (*NodeStarting) Reset

func (m *NodeStarting) Reset()

func (*NodeStarting) String

func (m *NodeStarting) String() string

type NodeWaiting

type NodeWaiting struct {
	Node       string `protobuf:"bytes,1,opt,name=node" json:"node,omitempty"`
	ParentNode string `protobuf:"bytes,2,opt,name=parent_node" json:"parent_node,omitempty"`
}

func (*NodeWaiting) Descriptor

func (*NodeWaiting) Descriptor() ([]byte, []int)

func (*NodeWaiting) ProtoMessage

func (*NodeWaiting) ProtoMessage()

func (*NodeWaiting) Reset

func (m *NodeWaiting) Reset()

func (*NodeWaiting) String

func (m *NodeWaiting) String() string

type Run

type Run interface {
	Do() error
	Cancel()
}

Run represents one run of a graph.

Jump to

Keyboard shortcuts

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