github.com/MetalBlockchain/metalgo@v1.11.9/proto/io/reader/reader.proto (about)

     1  syntax = "proto3";
     2  
     3  package io.reader;
     4  
     5  option go_package = "github.com/ava-labs/avalanchego/proto/pb/io/reader";
     6  
     7  // Reader is an io.Reader see: https://pkg.go.dev/io#Reader
     8  service Reader {
     9    rpc Read(ReadRequest) returns (ReadResponse);
    10  }
    11  
    12  message ReadRequest {
    13    // length is the request in bytes
    14    int32 length = 1;
    15  }
    16  
    17  message ReadResponse {
    18    // read is the payload in bytes
    19    bytes read = 1;
    20    // error is an error message
    21    optional string error = 2;
    22  }