mirror of
				https://github.com/go-micro/go-micro.git
				synced 2025-10-30 23:27:41 +02:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
		
			291 B
		
	
	
	
		
			Protocol Buffer
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			291 B
		
	
	
	
		
			Protocol Buffer
		
	
	
	
	
	
| syntax = "proto3";
 | |
| 
 | |
| package greeter;
 | |
| 
 | |
| import "google/api/annotations.proto";
 | |
| 
 | |
| service Say {
 | |
| 	rpc Hello(Request) returns (Response) {
 | |
| 		option (google.api.http) = {
 | |
| 			post: "/greeter/hello"
 | |
| 			body: "*"
 | |
| 		};
 | |
| 	}
 | |
| }
 | |
| 
 | |
| message Request {
 | |
| 	string name = 1;
 | |
| }
 | |
| 
 | |
| message Response {
 | |
| 	string msg = 1;
 | |
| }
 |