Last active
February 16, 2016 20:08
-
-
Save myhrvold/a19874cf641edbde0c2a to your computer and use it in GitHub Desktop.
Statement Client Thrift Service Example in Pseudocode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
service StatementClient { | |
// Service: "I'm making weekly statements for last week. Do any of your users want any?" | |
// Client: "Yes, I want statements for users uuid1, uuid2, …" | |
getStatementCandidates(request); | |
// Service: "Okay, what does user uuid1 need in its statement for last week?" | |
// Client: "All this information …" | |
getStatementCandidateDetails(request); | |
// Service: "I have finished uuid1's statement, and here it is." | |
// Client: "Thanks!" | |
receiveCompletedStatementCallback(request); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment