default.txt 549 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. namespace * thrift.test
  2. /**
  3. * Docstring!
  4. */
  5. enum Numberz
  6. {
  7. ONE = 1,
  8. TWO,
  9. THREE,
  10. FIVE = 5,
  11. SIX,
  12. EIGHT = 8
  13. }
  14. const Numberz myNumberz = Numberz.ONE;
  15. // the following is expected to fail:
  16. // const Numberz urNumberz = ONE;
  17. typedef i64 UserId
  18. struct Msg
  19. {
  20. 1: string message,
  21. 2: i32 type
  22. }
  23. struct NestedListsI32x2
  24. {
  25. 1: list<list<i32>> integerlist
  26. }
  27. struct NestedListsI32x3
  28. {
  29. 1: list<list<list<i32>>> integerlist
  30. }
  31. service ThriftTest
  32. {
  33. void testVoid(),
  34. string testString(1: string thing),
  35. oneway void testInit()
  36. }