summaryrefslogtreecommitdiffstats
path: root/images/dot/stream.dot
blob: 0987be786dbb0feeef5c083bb328d7525045f183 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
digraph G {
  ordering=out;

  fs [label="input", shape="folder"];
  pr [label="io.PipeReader"];
  compressed [label="Compressed()", shape="rect"];
  rc2 [label="io.ReadCloser"];
  output [label="output", shape="cylinder"];

  subgraph cluster_goroutine {
    label = "goroutine";

    rc [label="io.ReadCloser"];
    copy [label="io.Copy"];
    pw [label="io.PipeWriter"];
    mw [label="io.MultiWriter"];
    h1 [label="sha256.New"];
    gzip [label="gzip.Writer"];
    mw2 [label="io.MultiWriter"];
    h2 [label="sha256.New"];
    count [label="countWriter"];

    size [label="Size()", shape="rect"];
    diffid [label="DiffID()", shape="rect"];
    digest [label="Digest()", shape="rect"];


    rc -> copy [style="bold"];
    copy -> mw [style="bold"];
    mw -> h1;
    h1 -> diffid [style="dashed"];
    mw -> gzip [style="bold"];
    gzip -> mw2 [style="bold"];
    mw2 -> h2;
    h2 -> digest [style="dashed"];
    mw2 -> count;
    count -> size [style="dotted"];
    mw2 -> pw [style="bold"];
  };

  fs -> rc [style="bold"];

  pw -> pr [style="bold"];
  pr -> compressed [style="bold"];
  compressed -> rc2 [style="bold"];
  rc2 -> output [style="bold"];
}