Skip to content

Instantly share code, notes, and snippets.

@crast
Created May 10, 2017 16:56
Show Gist options
  • Save crast/751aa8f78e57d70b77926d4284176f66 to your computer and use it in GitHub Desktop.
Save crast/751aa8f78e57d70b77926d4284176f66 to your computer and use it in GitHub Desktop.
// blahService is the core blah API.
service BlahService {
// Ping operation for determining service health
rpc Ping(PingRequest) returns (PongResponse) {
option (google.api.http) = {
get: "/ping"
};
}
// Write to a range within a single series address
rpc Write(WriteRequest) returns (WriteResponse) {
option (google.api.http) = {
post: "/v1/blah/write"
body: "*"
};
}
// Read from a range within a single series address
rpc Read(ReadRequest) returns (ReadResponse) {
option (google.api.http) = {
post: "/v1/blah/read"
body: "*"
};
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment