...

Text file src/github.com/containerd/ttrpc/integration/streaming/test.proto

Documentation: github.com/containerd/ttrpc/integration/streaming

     1/*
     2	Copyright The containerd Authors.
     3
     4	Licensed under the Apache License, Version 2.0 (the "License");
     5	you may not use this file except in compliance with the License.
     6	You may obtain a copy of the License at
     7
     8		http://www.apache.org/licenses/LICENSE-2.0
     9
    10	Unless required by applicable law or agreed to in writing, software
    11	distributed under the License is distributed on an "AS IS" BASIS,
    12	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13	See the License for the specific language governing permissions and
    14	limitations under the License.
    15*/
    16
    17syntax = "proto3";
    18
    19package ttrpc.integration.streaming;
    20
    21import "google/protobuf/empty.proto";
    22
    23option go_package = "github.com/containerd/ttrpc/integration/streaming;streaming";
    24
    25// Shim service is launched for each container and is responsible for owning the IO
    26// for the container and its additional processes.  The shim is also the parent of
    27// each container and allows reattaching to the IO and receiving the exit status
    28// for the container processes.
    29
    30service Streaming {
    31	rpc Echo(EchoPayload) returns (EchoPayload);
    32	rpc EchoStream(stream EchoPayload) returns (stream EchoPayload);
    33	rpc SumStream(stream Part) returns (Sum);
    34	rpc DivideStream(Sum) returns (stream Part);
    35	rpc EchoNull(stream EchoPayload) returns (google.protobuf.Empty);
    36	rpc EchoNullStream(stream EchoPayload) returns (stream google.protobuf.Empty);
    37}
    38
    39message EchoPayload {
    40	uint32 seq = 1;
    41	string msg = 2;
    42}
    43
    44message Part {
    45	int32 add = 1;
    46}
    47
    48message Sum {
    49	int32 sum = 1;
    50	int32 num = 2;
    51}

View as plain text