Documentation
¶
Index ¶
- Variables
- func CreateNode(fileName string, node *Node) error
- func UpdateNode(fileName string, node *Node) error
- func WriteNode(fileName string, node *Node, update bool) error
- type Edge
- type EdgeCallback
- type EdgeEvent
- type EdgeType
- type Edges
- func (e *Edges) Connect(fromID, toID string, edge Edge) error
- func (e *Edges) FindEdges(fromID, toID string, doSort bool) []Edge
- func (e *Edges) Flush() error
- func (e *Edges) ForEachEdge(cb EdgesCallback) error
- func (e *Edges) ForEachEdgeFrom(nodeID string, cb EdgesCallback) error
- func (e *Edges) IsConnected(nodeID string) bool
- type EdgesCallback
- type EdgesTo
- type Graph
- func (g *Graph) CreateEdge(from, to *Node, edgeType EdgeType) (*Edge, error)
- func (g *Graph) CreateNode(t NodeType, id string, entity interface{}, annotations string) (*Node, error)
- func (g *Graph) Dot(filter, layout, name string, disconnected bool) (string, int, int, error)
- func (g *Graph) EachEdge(cb EdgeCallback) error
- func (g *Graph) EachNode(cb NodeCallback) error
- func (g *Graph) FindLastEdgeOfType(from, to *Node, edgeType EdgeType) (*Edge, error)
- func (g *Graph) FindLastRecentEdgeOfType(from, to *Node, edgeType EdgeType, staleTime time.Duration) (*Edge, error)
- func (g *Graph) FindNode(t NodeType, id string) (*Node, error)
- func (g *Graph) FindOtherTypes(t NodeType, id string) ([]*Node, error)
- func (g *Graph) IsConnected(nodeType string, nodeID string) bool
- func (g *Graph) JSON(filter string, disconnected bool) (string, int, int, error)
- func (g *Graph) Traverse(root string, onNode NodeCallback, onEdge EdgeCallback) error
- func (g *Graph) UpdateNode(node *Node) error
- type Module
- type Node
- type NodeCallback
- type NodeType
- type Stack
Constants ¶
This section is empty.
Variables ¶
View Source
var Loaded = (*Graph)(nil)
View Source
var NodeTypes = []NodeType{ SSID, Station, AccessPoint, Endpoint, Gateway, BLEServer, }
Functions ¶
func CreateNode ¶
func UpdateNode ¶
Types ¶
type Edge ¶
type EdgeCallback ¶
type Edges ¶
func (*Edges) ForEachEdge ¶
func (e *Edges) ForEachEdge(cb EdgesCallback) error
func (*Edges) ForEachEdgeFrom ¶
func (e *Edges) ForEachEdgeFrom(nodeID string, cb EdgesCallback) error
func (*Edges) IsConnected ¶
type Graph ¶
func (*Graph) CreateEdge ¶
func (*Graph) CreateNode ¶
func (*Graph) EachEdge ¶
func (g *Graph) EachEdge(cb EdgeCallback) error
func (*Graph) EachNode ¶
func (g *Graph) EachNode(cb NodeCallback) error
func (*Graph) FindLastEdgeOfType ¶
func (*Graph) FindLastRecentEdgeOfType ¶
func (*Graph) FindOtherTypes ¶
func (*Graph) Traverse ¶
func (g *Graph) Traverse(root string, onNode NodeCallback, onEdge EdgeCallback) error
func (*Graph) UpdateNode ¶
type Module ¶
type Module struct {
session.SessionModule
// contains filtered or unexported fields
}
func (*Module) Description ¶
type Node ¶
type NodeCallback ¶
type NodeCallback func(*Node)
Click to show internal directories.
Click to hide internal directories.