Skip to content

Commit f0338ec

Browse files
committed
update
1 parent 7cea51e commit f0338ec

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

codegen/tml/api/status/template_status.go

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ service status{
1919
//ping check server's health
2020
rpc ping(pingreq)returns(pingresp){
2121
option (pbex.method)="get";
22+
option (pbex.method)="crpc";
23+
option (pbex.method)="grpc";
2224
}
2325
}
2426
//req can be set with pbex extentions

codegen/tml/api/sub/template_sub.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ service {{.Sname}}{
1919
//rpc example(examplereq)returns(exampleresp){
2020
// option (pbex.method)="get";
2121
// option (pbex.method)="crpc";
22-
// option (pbex.method)="grpc";//can be set to get,delete,post,put,patch,crpc,grpc
22+
// option (pbex.method)="grpc";//can be set to one of (get,delete,post,put,patch) or crpc or grpc
2323
// option (pbex.web_midwares)="b";
2424
// option (pbex.web_midwares)="c";
2525
// option (pbex.web_midwares)="a";//this function on web protocol has 3 midwares,it's order is b,c,a

0 commit comments

Comments
 (0)