]>
Commit | Line | Data |
---|---|---|
f67539c2 TL |
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 | include "ThriftTest.thrift" | |
21 | include "NamespacedTest.thrift" | |
22 | ||
23 | const ThriftTest.UserId USERID = 42 | |
24 | const NamespacedTest.UserId USERID1 = 41 | |
25 | const ThriftTest.MapType MAPCONSTANT = {'hello':{}, 'goodnight':{}} | |
26 | ||
27 | const i32 TWO = NamespacedTest.Stuff.TWO | |
28 | const i32 THREE = NamespacedTest.THREE | |
29 | ||
30 | struct testStruct { | |
31 | 1: list<ThriftTest.Numberz> listNumbers | |
32 | } | |
33 | ||
34 | struct TestStruct2 { | |
35 | 1: testStruct blah, | |
36 | 2: ThriftTest.UserId id, | |
37 | 3: NamespacedTest.Stuff stuff, | |
38 | } | |
39 | ||
40 | service testService extends ThriftTest.SecondService { | |
41 | ThriftTest.CrazyNesting getCrazyNesting( | |
42 | 1: ThriftTest.StructA a, | |
43 | 2: ThriftTest.Numberz numbers | |
44 | ) throws(1: ThriftTest.Xception err1), | |
45 | ||
46 | void getSomeValue_DO_NOT_CALL(), | |
47 | } | |
48 | ||
49 | service ExtendedService extends testService { | |
50 | void extendedMethod(), | |
51 | NamespacedTest.StuffStruct extendedMethod2(), | |
52 | } | |
53 | ||
54 | service Extended2Service extends NamespacedTest.NamespacedService { | |
55 | void extendedMethod3(), | |
56 | } | |
57 | ||
58 | typedef map<ThriftTest.UserId, map<NamespacedTest.UserId, list<TestStruct2> > > ComplexMapType | |
59 | ||
60 | struct ComplexMapStruct { | |
61 | 1: ComplexMapType complex, | |
62 | } | |
63 | ||
64 | service ComplexMapService { | |
65 | ComplexMapStruct transformMap(1: ComplexMapStruct input), | |
66 | } | |
67 |