generated from rmcguire/go-server-with-otel
	Initial commit
This commit is contained in:
		
							
								
								
									
										28
									
								
								proto/demo/app/v1alpha1/app.proto
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								proto/demo/app/v1alpha1/app.proto
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,28 @@
 | 
			
		||||
syntax = "proto3";
 | 
			
		||||
package demo.app.v1alpha1;
 | 
			
		||||
 | 
			
		||||
import "google/api/annotations.proto";
 | 
			
		||||
import "google/protobuf/timestamp.proto";
 | 
			
		||||
 | 
			
		||||
option go_package = "gitea.libretechconsulting.com/rmcguire/go-server-with-otel/api/v1alpha1/demo";
 | 
			
		||||
 | 
			
		||||
// Options for random fact, in this case
 | 
			
		||||
// just a language
 | 
			
		||||
message GetDemoRequest {
 | 
			
		||||
  optional string language = 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Returns a randome fact, because this is a demo app
 | 
			
		||||
// so what else do we do?
 | 
			
		||||
message GetDemoResponse {
 | 
			
		||||
  google.protobuf.Timestamp timestamp = 1;
 | 
			
		||||
  string fact = 2;
 | 
			
		||||
  string source = 3;
 | 
			
		||||
  string language = 4;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
service DemoAppService {
 | 
			
		||||
  rpc GetDemo(GetDemoRequest) returns (GetDemoResponse) {
 | 
			
		||||
    option (google.api.http) = {get: "/v1alpha1/demo"}; // grpc-gateway endpoint
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user