forked from twitter/finagle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathservice.pic
35 lines (27 loc) · 924 Bytes
/
service.pic
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
define service {[
[
line down .05 left .05 then down .05 right .1 then down .05 left .1 then down .1 right .2 then down .1 left .2 then down .1 right .1
down
box wid 1.9 "Codec/Framer"
box wid 1.9 "FrameTransport"
box wid 1.9 "Dispatcher"
]
box with .n at last [].n+(0,.1) wid last [].wid*1.1 ht last [].ht+boxht*1.1 thickness 2
"\fISession\fP" with .s at last box.s+(0,.2)
]}
define channelservice {[
[
service
"\fB() => \fP" rjust at last [].w
]
box ht last [].ht+boxht*1.2 wid last [].wid+2 thickness 2 with .n at last [].n+(0,.1)
"\fIServiceFactory - NewSession\fP" with .s at last box.s+(0,.2)
]}
define stack {[
channelservice
movewid=.2
[service ; service; service] with .n at last [].s+(0,-.2)
box with .nw at last [].nw wid last [].wid ht last[].ht+boxht thickness 2
"\fIServiceFactory - SessionPool\fP" with .s at last box.s+(0,.2)
"..." with .n at last box.s+(0,-.2)
]}