github.com/MetalBlockchain/metalgo@v1.11.9/proto/io/writer/writer.proto (about) 1 syntax = "proto3"; 2 3 package io.writer; 4 5 option go_package = "github.com/ava-labs/avalanchego/proto/pb/io/writer"; 6 7 // Writer see: io.Writer https://pkg.go.dev/io#Writer 8 service Writer { 9 // Write writes len(p) bytes from p to the underlying data stream. 10 rpc Write(WriteRequest) returns (WriteResponse); 11 } 12 13 message WriteRequest { 14 // payload is the write request in bytes 15 bytes payload = 1; 16 } 17 18 message WriteResponse { 19 // written is the length of payload in bytes 20 int32 written = 1; 21 // error is an error message 22 optional string error = 2; 23 }