-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.yaml
77 lines (70 loc) · 1.77 KB
/
config.yaml
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
property:
filename: fantasy.hpp
namespace: fantasy
TestType:
type: enum
value_type: i32
definitions:
EnumOne: { default: 0, comment: "zero" }
EnumTwo: { default: 1, comment: "one" }
Info:
type: struct
definitions:
Name: { type: option<string>, comment: "test Name" }
BankInfo:
type: struct
definitions:
Name: { type: string, comment: "test Name" }
Type: { type: TestType, comment: "test Type" }
TestOne: { type: i32, comment: "test 1" }
TestTwo: { type: u32, comment: "test 2" }
TestMapOne: { type: map<string;TestType>, comment: "test map" }
TestMap: { type: map<bool;u32>, comment: "test map" }
TestVector: { type: vector<string>, comment: "test map" }
Info: { type: Info, comment: "Info" }
DateTime: { type: DateTime, comment: "date time" }
HelloWorldApi:
type: interface
pattern: bi
caller: HelloWorldClient
callee: HelloWorldServer
definitions:
hello_world:
web:
path: "/hello/world"
timeout: "9000"
inputs:
bank_info: {type: BankInfo}
bank_name: {type: string}
blance: {type: u64}
date: {type: option<string>}
date_time: {type: DateTime}
outputs:
reply: {type: string}
info: {type: Info}
count: {type: u64}
date: {type: option<string>}
UniInterface:
type: interface
pattern: uni
caller: HelloWorldSender
callee: HelloWorldReceiver
definitions:
hello_world:
inputs:
in: {type: string}
notice:
inputs:
in: {type: i32}
info: {type: string}
Stream:
type: interface
pattern: bi_stream
caller: StreamClient
callee: StreamServer
definitions:
hello_world:
inputs:
bank_name: {type: string}
outputs:
reply: {type: string}