Skip to content

Instantly share code, notes, and snippets.

@dghubble
Created November 21, 2013 18:27
Show Gist options
  • Save dghubble/7586859 to your computer and use it in GitHub Desktop.
Save dghubble/7586859 to your computer and use it in GitHub Desktop.
Thrift Interface Definition for Echoer Service
struct EchoArgs {
1: required string Message
}
struct EchoReply {
1: required string Echo
}
struct MultiplyArgs {
1: required i64 A
2: required i64 B
}
struct MultiplyReply {
1: required i64 Product
2: required string Error
}
service EchoerThrift {
EchoReply Echo(
1: EchoArgs argz
)
MultiplyReply Multiply(
1: MultiplyArgs argz
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment