github.com/s7techlab/cckit@v0.10.5/examples/cpaper_proxy/cpaper_proxy.proto (about) 1 syntax = "proto3"; 2 // Commercial paper service 3 option go_package = "github.com/s7techlab/cckit/examples/cpaper_proxy"; 4 package examples.cpaper_proxy; 5 6 import "google/api/annotations.proto"; 7 import "google/protobuf/empty.proto"; 8 import "google/protobuf/timestamp.proto"; 9 10 service CPaperProxyService { 11 // List method returns all registered commercial papers 12 rpc GetFromCPaper (Id) returns (InfoFromCPaper) { 13 option (google.api.http) = { 14 get: "/cpaper/{issuer}/{paper_number}" 15 }; 16 } 17 } 18 19 message Id { 20 string issuer = 1; 21 string paper_number = 2; 22 } 23 24 25 message InfoFromCPaper { 26 string issuer = 1; 27 string paper_number = 2; 28 string owner = 3; 29 }