fabric

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2019 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 Probe added in v0.22.0

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

Probe describes a topology probe

func NewProbe added in v0.22.0

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

NewProbe creates a new probe to enhance the graph

func (*Probe) LinkNodes added in v0.22.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.22.0

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

OnEdgeAdded event

func (*Probe) OnNodeDeleted added in v0.22.0

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

OnNodeDeleted event

func (*Probe) Start added in v0.22.0

func (fb *Probe) Start()

Start the probe

func (*Probe) Stop added in v0.22.0

func (fb *Probe) Stop()

Stop the probe

Source Files

  • fabric.go

Jump to

Keyboard shortcuts

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