Documentation
¶
Overview ¶
Foliage graph store debug package. Provides debug stateful functions for the graph store
Index ¶
- Constants
- func ExtractBodyAsJSON(attrs []RawAttributeInnerXML) (easyjson.JSON, error)
- func ExtractEdgeTypeAndNameAndTags(attrs []RawAttributeInnerXML) (tp string, name string, tags []string)
- func LLAPIImportGraph(executor sfPlugins.StatefunExecutor, ctx *sfPlugins.StatefunContextProcessor)
- func LLAPIPrintGraph(executor sfPlugins.StatefunExecutor, ctx *sfPlugins.StatefunContextProcessor)
- func RegisterAllFunctionTypes(runtime *statefun.Runtime)
- type AttributeCharData
- type AttributeInnerXML
- type Edge
- type Element
- type Graph
- type GraphML
- type Key
- type Node
- type RawAttributeInnerXML
- type RawEdge
- type RawGraph
- type RawGraphML
- type RawNode
Constants ¶
View Source
const ( BODY_JSON_ATTR_ID = "bdj" BODY_XML_ATTR_ID = "bdx" LINK_NAME_STRING_ATTR_ID = "nms" LINK_TYPE_STRING_ATTR_ID = "tps" LINK_TAG_STRING_ATTR_ID = "tgs" )
View Source
const (
MAX_ACK_WAIT_MS = 60 * 1000
)
Variables ¶
This section is empty.
Functions ¶
func ExtractBodyAsJSON ¶ added in v0.1.6
func ExtractBodyAsJSON(attrs []RawAttributeInnerXML) (easyjson.JSON, error)
func ExtractEdgeTypeAndNameAndTags ¶ added in v0.1.6
func ExtractEdgeTypeAndNameAndTags(attrs []RawAttributeInnerXML) (tp string, name string, tags []string)
func LLAPIImportGraph ¶ added in v0.1.6
func LLAPIImportGraph(executor sfPlugins.StatefunExecutor, ctx *sfPlugins.StatefunContextProcessor)
format: string // "graphml" source: string // "file" | "payload" data: string // "graph data" | "file path"
Example: nats -s nats://nats:foliage@nats:4222 pub signal.hub.functions.graph.api.import.a "{\"payload\":{\"format\":\"graphml\",\"source\":\"file\",\"data\":\"./skala-xml.graphml\"}}"
func LLAPIPrintGraph ¶ added in v0.1.1
func LLAPIPrintGraph(executor sfPlugins.StatefunExecutor, ctx *sfPlugins.StatefunContextProcessor)
Print Graph from certain id using Graphviz
Algorithm: Sync BFS
Payload: {
"depth": uint // optional, default: -1
"format": string // optional, default: "dot"
}
Types ¶
type AttributeCharData ¶ added in v0.1.6
type AttributeInnerXML ¶ added in v0.1.6
type Element ¶ added in v0.1.6
type Element struct {
XMLName xml.Name `xml:"v"`
Key string `xml:"key,attr"`
Type string `xml:"type,attr,omitempty"`
Content string `xml:",chardata"`
Items []Element `xml:",any"`
}
func ConvertToXML ¶ added in v0.1.6
type RawAttributeInnerXML ¶ added in v0.1.6
type RawEdge ¶ added in v0.1.6
type RawEdge struct {
XMLName xml.Name `xml:"edge"`
Source string `xml:"source,attr"`
Target string `xml:"target,attr"`
Attributes []RawAttributeInnerXML `xml:"data"`
}
type RawGraph ¶ added in v0.1.6
type RawGraphML ¶ added in v0.1.6
Click to show internal directories.
Click to hide internal directories.