fabric

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Probe added in v0.21.0

type Probe struct {
	graph.DefaultGraphListener
	Graph *graph.Graph
	// contains filtered or unexported fields
}

Probe describes a topology probe

func NewProbe added in v0.21.0

func NewProbe(g *graph.Graph) (*Probe, error)

NewProbe creates a new probe to enhance the graph

func (*Probe) LinkNodes added in v0.21.0

func (fb *Probe) LinkNodes(parent *graph.Node, child *graph.Node, linkMetadata *graph.Metadata)

LinkNodes link the parent and child (layer 2) if there not linked already

func (*Probe) OnEdgeAdded added in v0.21.0

func (fb *Probe) OnEdgeAdded(e *graph.Edge)

OnEdgeAdded event

func (*Probe) OnNodeDeleted added in v0.21.0

func (fb *Probe) OnNodeDeleted(n *graph.Node)

OnNodeDeleted event

func (*Probe) Start added in v0.21.0

func (fb *Probe) Start() error

Start the probe

func (*Probe) Stop added in v0.21.0

func (fb *Probe) Stop()

Stop the probe

Jump to

Keyboard shortcuts

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