base

package
v0.0.0-...-da789b0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	// contains filtered or unexported fields
}

func NewNode

func NewNode(name string) *Node

func NodeFromProto

func NodeFromProto(node *gen.Node) *Node

NodeFromProto creates a new Node from a gen.Node, gen.Node cannot be embedded into Node because proto deserialization will fail on the type

func (*Node) AddDependent

func (n *Node) AddDependent(p graph.Node)

func (*Node) AddPublishers

func (n *Node) AddPublishers(p graph.Listener)

func (*Node) AddSubscriber

func (n *Node) AddSubscriber(p graph.Listener)

func (*Node) Dependents

func (n *Node) Dependents() []graph.Node

func (*Node) ID

func (n *Node) ID() string

func (*Node) Method

func (n *Node) Method() (*graph.Info, error)

func (*Node) Name

func (n *Node) Name() string

func (*Node) NormalizedName

func (n *Node) NormalizedName() string

func (*Node) Provide

func (n *Node) Provide() ([]*gen.Node, error)

func (*Node) Provider

func (n *Node) Provider() (graph.Node, error)

TODO breadchris this should be more robust and take into consideration type types of edges into the node

func (*Node) Publishers

func (n *Node) Publishers() []graph.Listener

func (*Node) SetProvider

func (n *Node) SetProvider(p graph.Node) error

func (*Node) Subscribers

func (n *Node) Subscribers() []graph.Listener

func (*Node) Type

func (n *Node) Type() (*graph.Info, error)

Jump to

Keyboard shortcuts

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