File: foo.proto

package info (click to toggle)
golang-github-influxdata-yarpc 0.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 276 kB
  • sloc: makefile: 2
file content (25 lines) | stat: -rw-r--r-- 460 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
syntax = "proto3";
package foo;

import "github.com/influxdata/yarpc/yarpcproto/yarpc.proto";

service Foo {
  option (yarpcproto.yarpc_service_index) = 0x00;

  rpc UnaryMethod(Request) returns (Response){
    option (yarpcproto.yarpc_method_index) = 0x00;
  }

  rpc ServerStreamMethod(Request) returns (stream Response){
    option (yarpcproto.yarpc_method_index) = 0x01;
  }
}

message Request {
  string in = 1;
}

message Response {
  string out = 1;
}