]> git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/thrift/lib/go/test/ServicesTest.thrift
buildsys: switch source download to quincy
[ceph.git] / ceph / src / jaegertracing / thrift / lib / go / test / ServicesTest.thrift
1 #
2 # Licensed to the Apache Software Foundation (ASF) under one
3 # or more contributor license agreements. See the NOTICE file
4 # distributed with this work for additional information
5 # regarding copyright ownership. The ASF licenses this file
6 # to you under the Apache License, Version 2.0 (the
7 # "License"); you may not use this file except in compliance
8 # with the License. You may obtain a copy of the License at
9 #
10 # http://www.apache.org/licenses/LICENSE-2.0
11 #
12 # Unless required by applicable law or agreed to in writing,
13 # software distributed under the License is distributed on an
14 # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 # KIND, either express or implied. See the License for the
16 # specific language governing permissions and limitations
17 # under the License.
18 #
19
20 # We are only testing that generated code compiles, no correctness checking is done
21
22 exception moderate_disaster {
23 1: i32 errorCode,
24 2: string message
25 }
26
27 exception total_disaster {
28 1: string message
29 2: optional bool president_was_woken_up = false
30 }
31
32 struct struct_a {
33 1: required i64 whatever
34 }
35
36 service a_serv {
37 void voidfunc(),
38 void void_with_1ex() throws(1: moderate_disaster err1)
39 void void_with_2ex() throws(1: moderate_disaster err1, 2:total_disaster err2)
40
41 string stringfunc()
42 string stringfunc_1ex() throws(1: moderate_disaster err1)
43 string stringfunc_2ex() throws(1: moderate_disaster err1, 2:total_disaster err2)
44
45 i64 i64func()
46 i64 i64func_1ex() throws(1: moderate_disaster err1)
47 i64 i64func_2ex() throws(1: moderate_disaster err1, 2:total_disaster err2)
48
49 list<string> list_of_strings_func()
50 list<string> list_of_strings_func_1ex() throws(1: moderate_disaster err1)
51 list<string> list_of_strings_func_2ex() throws(1: moderate_disaster err1, 2:total_disaster err2)
52
53 map<i64,string> map_func()
54 map<i64,string> map_func_1ex() throws(1: moderate_disaster err1)
55 map<i64,string> map_func_2ex() throws(1: moderate_disaster err1, 2:total_disaster err2)
56
57 struct_a struct_a_func()
58 struct_a struct_a_func_1ex() throws(1: moderate_disaster err1)
59 struct_a struct_a_func_2ex() throws(1: moderate_disaster err1, 2:total_disaster err2)
60
61 void voidfunc_1int(1: i64 i),
62 void void_with_1ex_1int(1: i64 i) throws(1: moderate_disaster err1)
63 void void_with_2ex_1int(1: i64 i) throws(1: moderate_disaster err1, 2:total_disaster err2)
64
65 string stringfunc_1int(1: i64 i)
66 string stringfunc_1ex_1int(1: i64 i) throws(1: moderate_disaster err1)
67 string stringfunc_2ex_1int(1: i64 i) throws(1: moderate_disaster err1, 2:total_disaster err2)
68
69 i64 i64func_1int(1: i64 i)
70 i64 i64func_1ex_1int(1: i64 i) throws(1: moderate_disaster err1)
71 i64 i64func_2ex_1int(1: i64 i) throws(1: moderate_disaster err1, 2:total_disaster err2)
72
73 list<string> list_of_strings_func_1int(1: i64 i)
74 list<string> list_of_strings_func_1ex_1int(1: i64 i) throws(1: moderate_disaster err1)
75 list<string> list_of_strings_func_2ex_1int(1: i64 i) throws(1: moderate_disaster err1, 2:total_disaster err2)
76
77 map<i64,string> map_func_1int(1: i64 i)
78 map<i64,string> map_func_1ex_1int(1: i64 i) throws(1: moderate_disaster err1)
79 map<i64,string> map_func_2ex_1int(1: i64 i) throws(1: moderate_disaster err1, 2:total_disaster err2)
80
81 struct_a struct_a_func_1int(1: i64 i)
82 struct_a struct_a_func_1ex_1int(1: i64 i) throws(1: moderate_disaster err1)
83 struct_a struct_a_func_2ex_1int(1: i64 i) throws(1: moderate_disaster err1, 2:total_disaster err2)
84
85 void voidfunc_1int_1s(1: i64 i, 2: string s),
86 void void_with_1ex_1int_1s(1: i64 i, 2: string s) throws(1: moderate_disaster err1)
87 void void_with_2ex_1int_1s(1: i64 i, 2: string s) throws(1: moderate_disaster err1, 2:total_disaster err2)
88
89 string stringfunc_1int_1s(1: i64 i, 2: string s)
90 string stringfunc_1ex_1int_1s(1: i64 i, 2: string s) throws(1: moderate_disaster err1)
91 string stringfunc_2ex_1int_1s(1: i64 i, 2: string s) throws(1: moderate_disaster err1, 2:total_disaster err2)
92
93 i64 i64func_1int_1s(1: i64 i, 2: string s)
94 i64 i64func_1ex_1int_1s(1: i64 i, 2: string s) throws(1: moderate_disaster err1)
95 i64 i64func_2ex_1int_1s(1: i64 i, 2: string s) throws(1: moderate_disaster err1, 2:total_disaster err2)
96
97 list<string> list_of_strings_func_1int_1s(1: i64 i, 2: string s)
98 list<string> list_of_strings_func_1ex_1int_1s(1: i64 i, 2: string s) throws(1: moderate_disaster err1)
99 list<string> list_of_strings_func_2ex_1int_1s(1: i64 i, 2: string s) throws(1: moderate_disaster err1, 2:total_disaster err2)
100
101 map<i64,string> map_func_1int_1s(1: i64 i, 2: string s)
102 map<i64,string> map_func_1ex_1int_1s(1: i64 i, 2: string s) throws(1: moderate_disaster err1)
103 map<i64,string> map_func_2ex_1int_1s(1: i64 i, 2: string s) throws(1: moderate_disaster err1, 2:total_disaster err2)
104
105 struct_a struct_a_func_1int_1s(1: i64 i, 2: string s)
106 struct_a struct_a_func_1ex_1int_1s(1: i64 i, 2: string s) throws(1: moderate_disaster err1)
107 struct_a struct_a_func_2ex_1int_1s(1: i64 i, 2: string s) throws(1: moderate_disaster err1, 2:total_disaster err2)
108
109 struct_a struct_a_func_1struct_a(1: struct_a st)
110
111 }