1/*
2 * Copyright (c) Facebook, Inc. and its affiliates.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *     http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17enum MyEnum {
18  MyValue1 = 0,
19  MyValue2 = 1,
20}
21
22struct MyStruct {
23  1: i64 MyIntField;
24  2: string MyStringField;
25}
26
27service MyService {
28  bool hasDataById(1: i64 id);
29  string getDataById(1: i64 id);
30  void putDataById(1: i64 id, 2: string data);
31  oneway void lobDataById(1: i64 id, 2: string data);
32}
33
34service MyServiceFast {
35  bool hasDataById(1: i64 id) (thread = 'eb');
36  string getDataById(1: i64 id) (thread = 'eb');
37  void putDataById(1: i64 id, 2: string data) (thread = 'eb');
38  oneway void lobDataById(1: i64 id, 2: string data) (thread = 'eb');
39}
40
41service DbMixedStackArguments {
42  binary getDataByKey0(1: string key) (cpp.stack_arguments = "0");
43  binary getDataByKey1(1: string key);
44}
45