Test QuickGV: Difference between revisions
Jump to navigation
Jump to search
| Line 2: | Line 2: | ||
= WebSocket Service = | = WebSocket Service = | ||
<quickgv name="123" theme="warm"> | <quickgv name="123" theme="warm" usage="ram"> | ||
subgraph cluster_clients { | subgraph cluster_clients { | ||
c1[label="var ws = new WebSocket('/foo')"]; | c1[label="var ws = new WebSocket('/foo')"]; | ||
Revision as of 06:33, 5 March 2021
See: https://graphviz.gitlab.io/_pages/pdf/dotguide.pdf
WebSocket Service
Fontconfig error: No writable cache directories
Fontconfig error: No writable cache directories Fontconfig error: No writable cache directories Fontconfig error: No writable cache directories Error: bad label format ws.onopen = function (ev) => { ... } Error: bad label format ws.onmessage = function (ev) => { ... } Warning: node s, port req unrecognized Warning: node s, port req unrecognized
digraph 123 {
// options
// theme = warm
// usage = record
// default settings of graphs
graph [
rankdir = LR,
color = "#804000",
bgcolor = "#fffff7",
fontcolor = "#000000",
fontsize = 12,
style = dashed,
gradientangle = 65,
// * ortho, curved are bad
// * polyline acts as line
// * spline (default) is ok
splines = spline,
];
// default settings of nodes
node [
shape = record,
style = filled,
labelloc = l,
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="RAM (0x71xx) | 0x710c\l | 0x7108\l | 0x7104 - 0x830c\l (int* a) | 0x7100\l "];
c1 -> s:req;
s:req -> c2;
/*
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