Test QuickGV: Difference between revisions
Jump to navigation
Jump to search
| Line 10: | Line 10: | ||
} | } | ||
s[label="Service Unit | request | push"]; | s[label="Service Unit | <req> request | <push> push"]; | ||
c1 -> s.req; | |||
/* | /* | ||
Revision as of 06:30, 5 March 2021
See: https://graphviz.gitlab.io/_pages/pdf/dotguide.pdf
WebSocket Service
Error:
digraph 123 {
// options
// theme = warm
// usage =
// default settings of graphs
graph [
rankdir = LR,
color = "#804000",
bgcolor = "#fffff7",
fontcolor = "#000000",
fontsize = 12,
style = dashed,
gradientangle = 65,
splines = ortho,
];
// default settings of nodes
node [
shape = box,
style = "filled,rounded",
height = 0.3,
fontsize = 10,
// theme
color = "#c07000",
fontcolor = "#000000",
fillcolor = "#ffffff:#ffffc0",
gradientangle = 295 // left, top -> right, bottom
];
// default settings of edges
edge [
color = "#704000",
fontcolor = "#704000",
fontsize = 10,
arrowsize = 0.6
];
// nodes, edges, and clusters
subgraph cluster_clients {
c1[label="var ws = new WebSocket('/foo')"];
c2[label="ws.onopen = function (ev) => { ... }"];
c3[label="ws.onmessage = function (ev) => { ... }"];
c4[label="ws.send()"];
}
s[label="Service Unit | request | push"];
c1 -> s.req;
/*
subgraph cluster_services {
s1[label="cast service"];
s2[label="monitor service"];
s3[label="simple service"];
}
subgraph cluster_queue {
q1[label="outbound queue"];
q2[label="inbound queue"];
}
subgraph cluster_worker {
w1[label="cast worker"];
w2[label="handler worker", constraint=false];
}
c1 -> w1 -> q1 -> s1;
s2 -> q2 -> w2 -> c2;
*/
}
建議線路 gen1
建議線路 gen2
A
testflow
test