Skip to content

Instantly share code, notes, and snippets.

@quantonganh
Created January 9, 2020 07:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save quantonganh/d2052370bfcae6b1788465c9b5dcffd9 to your computer and use it in GitHub Desktop.
Save quantonganh/d2052370bfcae6b1788465c9b5dcffd9 to your computer and use it in GitHub Desktop.
digraph gocallvis {
graph [bb="0,0,555.35,1305.1",
bgcolor=lightgray,
fontname=Arial,
fontsize=14,
label="github.com/syncthing/syncthing/cmd/stindex",
labeljust=l,
lheight=0.22,
lp="144.57,12.049",
lwidth=3.79,
nodesep=0.35,
pad=0.0,
penwidth=0.5,
rankdir=LR,
style=solid
];
node [fillcolor=honeydew,
fontname=Verdana,
label="\N",
margin="0.05,0.0",
penwidth=1.0,
shape=ellipse,
style=filled
];
edge [minlen=2];
subgraph cluster_focus {
graph [bb="8,32.099,547.35,1297.1",
bgcolor="#e6ecfa",
fontsize=18,
label=main,
labeljust=c,
labelloc=t,
lheight=0.29,
lp="277.68,1282.7",
lwidth=0.54
];
subgraph "cluster_github.com/syncthing/syncthing/lib/db" {
graph [URL="/?f=github.com/syncthing/syncthing/lib/db",
bb="265.57,734.1,493.03,810.1",
fillcolor=lightyellow,
fontname=bold,
fontsize=16,
label="[db]",
lheight=0.22,
lp="379.3,798.1",
lwidth=0.37,
penwidth=0.8,
rank=sink,
style=filled,
tooltip="package: github.com/syncthing/syncthing/lib/db"
];
"(*github.com/syncthing/syncthing/lib/db.VersionList).Unmarshal" [fillcolor=moccasin,
height=0.5,
label="(*VersionList).Unmarshal",
penwidth=1.5,
pos="379.3,760.1",
width=2.937];
}
subgraph "cluster_github.com/syncthing/syncthing/lib/db/backend" {
graph [URL="/?f=github.com/syncthing/syncthing/lib/db/backend",
bb="219.25,177.1,539.35,314.1",
fillcolor=lightyellow,
fontname=bold,
fontsize=16,
label="[backend]",
lheight=0.22,
lp="379.3,302.1",
lwidth=0.96,
penwidth=0.8,
rank=sink,
style=filled,
tooltip="package: github.com/syncthing/syncthing/lib/db/backend"
];
"(*github.com/syncthing/syncthing/lib/db/backend.leveldbBackend).NewPrefixIterator" [fillcolor=moccasin,
height=0.5,
label="(*leveldbBackend).NewPrefixIterator",
penwidth=1.5,
pos="379.3,264.1",
width=4.2237];
"github.com/syncthing/syncthing/lib/db/backend.OpenLevelDBRO" [fillcolor=moccasin,
height=0.5,
label=OpenLevelDBRO,
penwidth=1.5,
pos="379.3,203.1",
width=1.9315];
}
subgraph "cluster_github.com/syncthing/syncthing/lib/fs" {
graph [URL="/?f=github.com/syncthing/syncthing/lib/fs",
bb="318.41,40.099,440.19,116.1",
fillcolor=lightyellow,
fontname=bold,
fontsize=16,
label="[fs]",
lheight=0.22,
lp="379.3,104.1",
lwidth=0.30,
penwidth=0.8,
rank=sink,
style=filled,
tooltip="package: github.com/syncthing/syncthing/lib/fs"
];
"github.com/syncthing/syncthing/lib/fs.ExpandTilde" [fillcolor=moccasin,
height=0.5,
label=ExpandTilde,
penwidth=1.5,
pos="379.3,66.099",
width=1.4692];
}
subgraph "cluster_github.com/syncthing/syncthing/lib/protocol" {
graph [URL="/?f=github.com/syncthing/syncthing/lib/protocol",
bb="279.13,818.1,479.47,1260.1",
fillcolor=lightyellow,
fontname=bold,
fontsize=16,
label="[protocol]",
lheight=0.22,
lp="379.3,1248.1",
lwidth=0.91,
penwidth=0.8,
rank=sink,
style=filled,
tooltip="package: github.com/syncthing/syncthing/lib/protocol"
];
"(*github.com/syncthing/syncthing/lib/protocol.FileInfo).Unmarshal" [fillcolor=moccasin,
height=0.5,
label="(*FileInfo).Unmarshal",
penwidth=1.5,
pos="379.3,905.1",
width=2.5604];
"(github.com/syncthing/syncthing/lib/protocol.Vector).GreaterEqual" [fillcolor=moccasin,
height=0.5,
label="(Vector).GreaterEqual",
penwidth=1.5,
pos="379.3,1210.1",
width=2.5596];
"(github.com/syncthing/syncthing/lib/protocol.Vector).Equal" [fillcolor=moccasin,
height=0.5,
label="(Vector).Equal",
penwidth=1.5,
pos="379.3,1149.1",
width=1.7179];
"(github.com/syncthing/syncthing/lib/protocol.FileInfo).IsInvalid" [fillcolor=moccasin,
height=0.5,
label="(FileInfo).IsInvalid",
penwidth=1.5,
pos="379.3,966.1",
width=2.1856];
"(github.com/syncthing/syncthing/lib/protocol.FileInfo).IsDeleted" [fillcolor=moccasin,
height=0.5,
label="(FileInfo).IsDeleted",
penwidth=1.5,
pos="379.3,1027.1",
width=2.2872];
"(github.com/syncthing/syncthing/lib/protocol.FileInfo).IsIgnored" [fillcolor=moccasin,
height=0.5,
label="(FileInfo).IsIgnored",
penwidth=1.5,
pos="379.3,1088.1",
width=2.3048];
"github.com/syncthing/syncthing/lib/protocol.DeviceIDFromBytes" [fillcolor=moccasin,
height=0.5,
label=DeviceIDFromBytes,
penwidth=1.5,
pos="379.3,844.1",
width=2.3126];
}
subgraph "cluster_github.com/syndtr/goleveldb/leveldb" {
graph [URL="/?f=github.com/syndtr/goleveldb/leveldb",
bb="305.37,528.1,453.24,726.1",
fillcolor=lightyellow,
fontname=bold,
fontsize=16,
label="[leveldb]",
lheight=0.22,
lp="379.3,714.1",
lwidth=0.83,
penwidth=0.8,
rank=sink,
style=filled,
tooltip="package: github.com/syndtr/goleveldb/leveldb"
];
"(*github.com/syndtr/goleveldb/leveldb.dbIter).Key" [fillcolor=moccasin,
height=0.5,
label="(*dbIter).Key",
penwidth=1.5,
pos="379.3,676.1",
width=1.6347];
"(*github.com/syndtr/goleveldb/leveldb.dbIter).Next" [fillcolor=moccasin,
height=0.5,
label="(*dbIter).Next",
penwidth=1.5,
pos="379.3,554.1",
width=1.7414];
"(*github.com/syndtr/goleveldb/leveldb.dbIter).Value" [fillcolor=moccasin,
height=0.5,
label="(*dbIter).Value",
penwidth=1.5,
pos="379.3,615.1",
width=1.8315];
}
subgraph "cluster_github.com/syndtr/goleveldb/leveldb/iterator" {
graph [URL="/?f=github.com/syndtr/goleveldb/leveldb/iterator",
bb="274.09,322.1,484.51,520.1",
fillcolor=lightyellow,
fontname=bold,
fontsize=16,
label="[iterator]",
lheight=0.22,
lp="379.3,508.1",
lwidth=0.82,
penwidth=0.8,
rank=sink,
style=filled,
tooltip="package: github.com/syndtr/goleveldb/leveldb/iterator"
];
"(*github.com/syndtr/goleveldb/leveldb/iterator.emptyIterator).Key" [fillcolor=moccasin,
height=0.5,
label="(*emptyIterator).Key",
penwidth=1.5,
pos="379.3,409.1",
width=2.5034];
"(*github.com/syndtr/goleveldb/leveldb/iterator.emptyIterator).Next" [fillcolor=moccasin,
height=0.5,
label="(*emptyIterator).Next",
penwidth=1.5,
pos="379.3,470.1",
width=2.61];
"(*github.com/syndtr/goleveldb/leveldb/iterator.emptyIterator).Value" [fillcolor=moccasin,
height=0.5,
label="(*emptyIterator).Value",
penwidth=1.5,
pos="379.3,348.1",
width=2.7002];
}
"github.com/syncthing/syncthing/cmd/stindex.dumpsize" [fillcolor=lightblue,
height=0.5,
label=dumpsize,
penwidth=0.5,
pos="85.124,332.1",
width=1.1768];
"(github.com/syncthing/syncthing/cmd/stindex.ElementHeap).Len" [fillcolor=lightblue,
height=0.5,
label="(ElementHeap).Len",
penwidth=1.5,
pos="379.3,142.1",
width=2.272];
"github.com/syncthing/syncthing/cmd/stindex.dumpsize" -> "(github.com/syncthing/syncthing/cmd/stindex.ElementHeap).Len" [pos="e,298.85,145.65 98.154,314.71 124.62,276.95 188.03,189.39 219.25,171.1 240.12,158.87 264.96,151.58 288.74,147.3"];
"github.com/syncthing/syncthing/cmd/stindex.dumpsize" -> "(*github.com/syncthing/syncthing/lib/db/backend.leveldbBackend).NewPrefixIterator" [color=saddlebrown,
pos="e,300.78,279.62 120.71,322.3 140.92,316.7 166.95,309.7 190.25,304.1 222.9,296.24 258.93,288.38 290.64,281.74",
style=dashed];
"github.com/syncthing/syncthing/cmd/stindex.dumpsize" -> "(*github.com/syndtr/goleveldb/leveldb.dbIter).Key" [color=saddlebrown,
pos="e,320.55,678.06 92.55,349.9 115.61,413.37 194.17,625.9 219.25,646.1 244.61,666.53 279.61,674.61 310.32,677.34",
style=dashed];
"github.com/syncthing/syncthing/cmd/stindex.dumpsize" -> "(*github.com/syndtr/goleveldb/leveldb.dbIter).Next" [color=saddlebrown,
pos="e,318.5,558.84 119.65,342.84 143.27,352.15 173.69,367.97 191.25,392.1 227.05,441.29 175.55,483.77 219.25,526.1 242.5,548.62 277.12,\
556.52 308.14,558.41",
style=dashed];
"github.com/syncthing/syncthing/cmd/stindex.dumpsize" -> "(*github.com/syndtr/goleveldb/leveldb.dbIter).Value" [color=saddlebrown,
pos="e,313.11,615.56 89.885,349.99 100.75,396.92 136.82,524.19 219.25,585.1 243.2,602.8 274.59,610.99 303.15,614.5",
style=dashed];
"github.com/syncthing/syncthing/cmd/stindex.dumpsize" -> "(*github.com/syndtr/goleveldb/leveldb/iterator.emptyIterator).Key" [color=saddlebrown,
pos="e,291.1,405.07 125.41,326.34 146.23,325.19 171.51,326.95 191.25,338.1 210.46,348.95 200.78,367.02 219.25,379.1 237.6,391.1 259.55,\
398.57 281.19,403.16",
style=dashed];
"github.com/syncthing/syncthing/cmd/stindex.dumpsize" -> "(*github.com/syndtr/goleveldb/leveldb/iterator.emptyIterator).Next" [color=saddlebrown,
pos="e,285.49,468.58 126.64,336.2 148.22,340.33 173.83,348.58 191.25,365.1 217.07,389.58 192.03,417.18 219.25,440.1 235.13,453.48 255.1,\
461.63 275.47,466.46",
style=dashed];
"github.com/syncthing/syncthing/cmd/stindex.dumpsize" -> "(*github.com/syndtr/goleveldb/leveldb/iterator.emptyIterator).Value" [color=saddlebrown,
pos="e,302.61,336.95 122,323.03 141.95,318.45 167.31,313.39 190.25,311.1 203.68,309.76 206.15,316.86 219.25,320.1 242.82,325.93 268.66,\
331.03 292.52,335.21",
style=dashed];
"github.com/syncthing/syncthing/cmd/stindex.idxck" [fillcolor=lightblue,
height=0.5,
label=idxck,
penwidth=0.5,
pos="85.124,858.1",
width=0.75];
"github.com/syncthing/syncthing/cmd/stindex.idxck" -> "(*github.com/syncthing/syncthing/lib/db.VersionList).Unmarshal" [color=saddlebrown,
pos="e,301.91,772.51 109.24,866.82 131.82,873.77 166.34,880.11 191.25,865.1 214.06,851.35 198.88,829.27 219.25,812.1 239.93,794.67 266.61,\
783.03 292.18,775.29"];
"github.com/syncthing/syncthing/cmd/stindex.idxck" -> "(*github.com/syncthing/syncthing/lib/db/backend.leveldbBackend).NewPrefixIterator" [color=saddlebrown,
pos="e,283.51,278.2 90.436,840.42 113.17,747.24 218.07,317.37 219.25,316.1 233.92,300.29 253.45,289.27 273.8,281.6",
style=dashed];
"github.com/syncthing/syncthing/cmd/stindex.idxck" -> "(*github.com/syncthing/syncthing/lib/protocol.FileInfo).Unmarshal" [color=saddlebrown,
pos="e,321.4,919.13 102.88,871.77 122.46,886.77 156.48,909.94 190.25,919.1 229.53,929.76 275,926.76 311.39,920.86"];
"github.com/syncthing/syncthing/cmd/stindex.idxck" -> "(github.com/syncthing/syncthing/lib/protocol.Vector).Equal" [color=saddlebrown,
pos="e,317.29,1150.1 89.625,876.19 99.944,924.29 134.97,1056 219.25,1119.1 244.2,1137.8 277.39,1145.9 306.99,1149.1"];
"github.com/syncthing/syncthing/cmd/stindex.idxck" -> "(github.com/syncthing/syncthing/lib/protocol.FileInfo).IsInvalid" [color=saddlebrown,
pos="e,306.38,959.21 103.75,871.56 123.83,886.43 158.06,910.34 190.25,926.1 223.13,942.2 262.35,951.84 296.44,957.61"];
"github.com/syncthing/syncthing/cmd/stindex.idxck" -> "(github.com/syncthing/syncthing/lib/protocol.FileInfo).IsDeleted" [color=saddlebrown,
pos="e,299.81,1022 96.661,874.55 116.65,904.28 163.14,966.69 219.25,997.1 240.65,1008.7 265.78,1015.9 289.66,1020.3"];
"github.com/syncthing/syncthing/cmd/stindex.idxck" -> "(github.com/syncthing/syncthing/lib/protocol.FileInfo).IsIgnored" [color=saddlebrown,
pos="e,297.16,1085.2 92.35,875.71 107.36,915.39 149.52,1011.9 219.25,1058.1 239.23,1071.3 263.56,1079.1 287.12,1083.5"];
"github.com/syncthing/syncthing/cmd/stindex.idxck" -> "(*github.com/syndtr/goleveldb/leveldb.dbIter).Key" [color=saddlebrown,
pos="e,322.48,680.9 112.05,860.42 135.72,861.04 170.14,857.95 191.25,838.1 227.99,803.54 184.79,764.94 219.25,728.1 243.35,702.33 280.37,\
689.31 312.64,682.74",
style=dashed];
"github.com/syncthing/syncthing/cmd/stindex.idxck" -> "(*github.com/syndtr/goleveldb/leveldb.dbIter).Next" [color=saddlebrown,
pos="e,318.15,549.98 108.8,848.81 133.46,837.44 171.93,815.71 191.25,784.1 237.83,707.89 157.78,649.9 219.25,585.1 241.79,561.34 276.71,\
552.78 308.1,550.51",
style=dashed];
"github.com/syncthing/syncthing/cmd/stindex.idxck" -> "(*github.com/syndtr/goleveldb/leveldb.dbIter).Value" [color=saddlebrown,
pos="e,314.48,611.41 111.58,853.79 135.94,848.27 171.78,836.22 191.25,811.1 236.81,752.3 167.3,699.33 219.25,646.1 241.14,623.67 274.1,\
614.89 304.35,612.13",
style=dashed];
"github.com/syncthing/syncthing/cmd/stindex.idxck" -> "(*github.com/syndtr/goleveldb/leveldb/iterator.emptyIterator).Key" [color=saddlebrown,
pos="e,289.61,407.05 102.79,843.96 127.05,822.27 171.37,778.2 191.25,730.1 215.98,670.26 175.72,488.03 219.25,440.1 234.82,422.95 256.82,\
413.63 279.51,408.87",
style=dashed];
"github.com/syncthing/syncthing/cmd/stindex.idxck" -> "(*github.com/syndtr/goleveldb/leveldb/iterator.emptyIterator).Next" [color=saddlebrown,
pos="e,296.51,478.72 105.53,845.78 130.11,829.01 171.62,796.52 191.25,757.1 238.13,662.94 152.56,603.44 219.25,522.1 236.15,501.48 261.38,\
488.96 286.78,481.39",
style=dashed];
"github.com/syncthing/syncthing/cmd/stindex.idxck" -> "(*github.com/syndtr/goleveldb/leveldb/iterator.emptyIterator).Value" [color=saddlebrown,
pos="e,282.02,347.23 100.48,842.88 124.19,816.69 170.91,760.4 191.25,703.1 215.42,634.99 170.93,432.84 219.25,379.1 233.07,363.73 252.06,\
354.62 272.11,349.46",
style=dashed];
"github.com/syncthing/syncthing/cmd/stindex.needsLocally" [fillcolor=lightblue,
height=0.5,
label=needsLocally,
penwidth=0.5,
pos="85.124,1210.1",
width=1.5369];
"github.com/syncthing/syncthing/cmd/stindex.needsLocally" -> "(github.com/syncthing/syncthing/lib/protocol.Vector).GreaterEqual" [color=saddlebrown,
pos="e,286.91,1210.1 140.74,1210.1 178.9,1210.1 230.99,1210.1 276.67,1210.1"];
"github.com/syncthing/syncthing/cmd/stindex.defaultConfigDir" [fillcolor=lightblue,
height=0.5,
label=defaultConfigDir,
penwidth=0.5,
pos="85.124,66.099",
width=1.9201];
"github.com/syncthing/syncthing/cmd/stindex.defaultConfigDir" -> "github.com/syncthing/syncthing/lib/fs.ExpandTilde" [color=saddlebrown,
pos="e,326.07,66.099 154.26,66.099 203.12,66.099 268.42,66.099 315.92,66.099"];
"github.com/syncthing/syncthing/cmd/stindex.dump" [fillcolor=lightblue,
height=0.5,
label=dump,
penwidth=0.5,
pos="85.124,547.1",
width=0.75526];
"github.com/syncthing/syncthing/cmd/stindex.dump" -> "(*github.com/syncthing/syncthing/lib/db.VersionList).Unmarshal" [color=saddlebrown,
pos="e,274.61,757.32 102.32,561.26 124.83,581.65 165.65,621.32 191.25,662.1 209.06,690.48 193.24,710.97 219.25,732.1 232.44,742.81 248.29,\
750.02 264.82,754.79"];
"github.com/syncthing/syncthing/cmd/stindex.dump" -> "(*github.com/syncthing/syncthing/lib/db/backend.leveldbBackend).NewPrefixIterator" [color=saddlebrown,
pos="e,294.54,279.17 91.397,529.43 105.13,486.42 146.12,375.47 219.25,316.1 238.18,300.73 261.79,289.85 284.99,282.16",
style=dashed];
"github.com/syncthing/syncthing/cmd/stindex.dump" -> "(*github.com/syncthing/syncthing/lib/protocol.FileInfo).Unmarshal" [color=saddlebrown,
pos="e,287.43,903.53 87.594,565.13 93.175,620.99 118.18,792.39 219.25,875.1 235.77,888.62 256.49,896.76 277.47,901.52"];
"github.com/syncthing/syncthing/cmd/stindex.dump" -> "github.com/syncthing/syncthing/lib/protocol.DeviceIDFromBytes" [color=saddlebrown,
pos="e,295.64,843.98 89.259,565.07 98.832,614.15 132.49,751.13 219.25,816.1 238.3,830.36 262.2,838.25 285.64,842.41"];
"github.com/syncthing/syncthing/cmd/stindex.dump" -> "(*github.com/syndtr/goleveldb/leveldb.dbIter).Key" [color=saddlebrown,
pos="e,322,671.74 101.03,561.86 124.2,583.9 171.23,625.06 219.25,646.1 248.26,658.81 282.55,666.14 311.86,670.37",
style=dashed];
"github.com/syncthing/syncthing/cmd/stindex.dump" -> "(*github.com/syndtr/goleveldb/leveldb.dbIter).Next" [color=saddlebrown,
pos="e,316.57,552.62 112.31,547.73 155.56,548.76 243.4,550.87 306.31,552.37",
style=dashed];
"github.com/syncthing/syncthing/cmd/stindex.dump" -> "(*github.com/syndtr/goleveldb/leveldb.dbIter).Value" [color=saddlebrown,
pos="e,322.46,605.86 110,554.63 136.51,562.82 180.65,575.97 219.25,585.1 249.7,592.3 283.76,598.91 312.52,604.09",
style=dashed];
"github.com/syncthing/syncthing/cmd/stindex.dump" -> "(*github.com/syndtr/goleveldb/leveldb/iterator.emptyIterator).Key" [color=saddlebrown,
pos="e,297.87,417.03 102.46,533.23 135.04,505.69 206.07,446.22 219.25,440.1 240.47,430.24 264.7,423.52 287.74,418.93",
style=dashed];
"github.com/syncthing/syncthing/cmd/stindex.dump" -> "(*github.com/syndtr/goleveldb/leveldb/iterator.emptyIterator).Next" [color=saddlebrown,
pos="e,323.17,484.63 110.53,540.67 154.67,529.04 249.09,504.15 313.16,487.27",
style=dashed];
"github.com/syncthing/syncthing/cmd/stindex.dump" -> "(*github.com/syndtr/goleveldb/leveldb/iterator.emptyIterator).Value" [color=saddlebrown,
pos="e,284.59,352.18 101.79,532.73 123.66,512.12 163.73,472.33 191.25,433.1 206.77,410.97 197.6,395.3 219.25,379.1 235.34,367.06 254.83,\
359.32 274.58,354.43",
style=dashed];
"github.com/syncthing/syncthing/cmd/stindex.main" [fillcolor=lightblue,
height=0.5,
label=main,
penwidth=0.5,
pos="85.124,203.1",
width=0.75];
"github.com/syncthing/syncthing/cmd/stindex.main" -> "github.com/syncthing/syncthing/lib/db/backend.OpenLevelDBRO" [color=saddlebrown,
pos="e,309.76,203.1 112.31,203.1 154.04,203.1 237.26,203.1 299.56,203.1"];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment