Documentation ¶
Index ¶
- Variables
- func RegisterWriterServer(s grpc.ServiceRegistrar, srv WriterServer)
- type FlushRequest
- type FlushResponse
- type Header
- type HijackRequest
- type HijackResponse
- func (*HijackResponse) Descriptor() ([]byte, []int)deprecated
- func (x *HijackResponse) GetConnServer() uint32
- func (x *HijackResponse) GetLocalNetwork() string
- func (x *HijackResponse) GetLocalString() string
- func (x *HijackResponse) GetReaderServer() uint32
- func (x *HijackResponse) GetRemoteNetwork() string
- func (x *HijackResponse) GetRemoteString() string
- func (x *HijackResponse) GetWriterServer() uint32
- func (*HijackResponse) ProtoMessage()
- func (x *HijackResponse) ProtoReflect() protoreflect.Message
- func (x *HijackResponse) Reset()
- func (x *HijackResponse) String() string
- type UnimplementedWriterServer
- func (UnimplementedWriterServer) Flush(context.Context, *FlushRequest) (*FlushResponse, error)
- func (UnimplementedWriterServer) Hijack(context.Context, *HijackRequest) (*HijackResponse, error)
- func (UnimplementedWriterServer) Write(context.Context, *WriteRequest) (*WriteResponse, error)
- func (UnimplementedWriterServer) WriteHeader(context.Context, *WriteHeaderRequest) (*WriteHeaderResponse, error)
- type UnsafeWriterServer
- type WriteHeaderRequest
- func (*WriteHeaderRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WriteHeaderRequest) GetHeaders() []*Header
- func (x *WriteHeaderRequest) GetStatusCode() int32
- func (*WriteHeaderRequest) ProtoMessage()
- func (x *WriteHeaderRequest) ProtoReflect() protoreflect.Message
- func (x *WriteHeaderRequest) Reset()
- func (x *WriteHeaderRequest) String() string
- type WriteHeaderResponse
- type WriteRequest
- func (*WriteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WriteRequest) GetHeaders() []*Header
- func (x *WriteRequest) GetPayload() []byte
- func (*WriteRequest) ProtoMessage()
- func (x *WriteRequest) ProtoReflect() protoreflect.Message
- func (x *WriteRequest) Reset()
- func (x *WriteRequest) String() string
- type WriteResponse
- type WriterClient
- type WriterServer
Constants ¶
This section is empty.
Variables ¶
var File_gresponsewriter_proto protoreflect.FileDescriptor
var Writer_ServiceDesc = grpc.ServiceDesc{ ServiceName: "gresponsewriterproto.Writer", HandlerType: (*WriterServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Write", Handler: _Writer_Write_Handler, }, { MethodName: "WriteHeader", Handler: _Writer_WriteHeader_Handler, }, { MethodName: "Flush", Handler: _Writer_Flush_Handler, }, { MethodName: "Hijack", Handler: _Writer_Hijack_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "gresponsewriter.proto", }
Writer_ServiceDesc is the grpc.ServiceDesc for Writer service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterWriterServer ¶
func RegisterWriterServer(s grpc.ServiceRegistrar, srv WriterServer)
Types ¶
type FlushRequest ¶
type FlushRequest struct {
// contains filtered or unexported fields
}
func (*FlushRequest) Descriptor
deprecated
func (*FlushRequest) Descriptor() ([]byte, []int)
Deprecated: Use FlushRequest.ProtoReflect.Descriptor instead.
func (*FlushRequest) ProtoMessage ¶
func (*FlushRequest) ProtoMessage()
func (*FlushRequest) ProtoReflect ¶ added in v1.4.7
func (x *FlushRequest) ProtoReflect() protoreflect.Message
func (*FlushRequest) Reset ¶
func (x *FlushRequest) Reset()
func (*FlushRequest) String ¶
func (x *FlushRequest) String() string
type FlushResponse ¶
type FlushResponse struct {
// contains filtered or unexported fields
}
func (*FlushResponse) Descriptor
deprecated
func (*FlushResponse) Descriptor() ([]byte, []int)
Deprecated: Use FlushResponse.ProtoReflect.Descriptor instead.
func (*FlushResponse) ProtoMessage ¶
func (*FlushResponse) ProtoMessage()
func (*FlushResponse) ProtoReflect ¶ added in v1.4.7
func (x *FlushResponse) ProtoReflect() protoreflect.Message
func (*FlushResponse) Reset ¶
func (x *FlushResponse) Reset()
func (*FlushResponse) String ¶
func (x *FlushResponse) String() string
type Header ¶
type Header struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Values []string `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"` // contains filtered or unexported fields }
func (*Header) Descriptor
deprecated
func (*Header) ProtoMessage ¶
func (*Header) ProtoMessage()
func (*Header) ProtoReflect ¶ added in v1.4.7
func (x *Header) ProtoReflect() protoreflect.Message
type HijackRequest ¶
type HijackRequest struct {
// contains filtered or unexported fields
}
func (*HijackRequest) Descriptor
deprecated
func (*HijackRequest) Descriptor() ([]byte, []int)
Deprecated: Use HijackRequest.ProtoReflect.Descriptor instead.
func (*HijackRequest) ProtoMessage ¶
func (*HijackRequest) ProtoMessage()
func (*HijackRequest) ProtoReflect ¶ added in v1.4.7
func (x *HijackRequest) ProtoReflect() protoreflect.Message
func (*HijackRequest) Reset ¶
func (x *HijackRequest) Reset()
func (*HijackRequest) String ¶
func (x *HijackRequest) String() string
type HijackResponse ¶
type HijackResponse struct { ConnServer uint32 `protobuf:"varint,1,opt,name=connServer,proto3" json:"connServer,omitempty"` LocalNetwork string `protobuf:"bytes,2,opt,name=localNetwork,proto3" json:"localNetwork,omitempty"` LocalString string `protobuf:"bytes,3,opt,name=localString,proto3" json:"localString,omitempty"` RemoteNetwork string `protobuf:"bytes,4,opt,name=remoteNetwork,proto3" json:"remoteNetwork,omitempty"` RemoteString string `protobuf:"bytes,5,opt,name=remoteString,proto3" json:"remoteString,omitempty"` ReaderServer uint32 `protobuf:"varint,6,opt,name=readerServer,proto3" json:"readerServer,omitempty"` WriterServer uint32 `protobuf:"varint,7,opt,name=writerServer,proto3" json:"writerServer,omitempty"` // contains filtered or unexported fields }
func (*HijackResponse) Descriptor
deprecated
func (*HijackResponse) Descriptor() ([]byte, []int)
Deprecated: Use HijackResponse.ProtoReflect.Descriptor instead.
func (*HijackResponse) GetConnServer ¶
func (x *HijackResponse) GetConnServer() uint32
func (*HijackResponse) GetLocalNetwork ¶
func (x *HijackResponse) GetLocalNetwork() string
func (*HijackResponse) GetLocalString ¶
func (x *HijackResponse) GetLocalString() string
func (*HijackResponse) GetReaderServer ¶
func (x *HijackResponse) GetReaderServer() uint32
func (*HijackResponse) GetRemoteNetwork ¶
func (x *HijackResponse) GetRemoteNetwork() string
func (*HijackResponse) GetRemoteString ¶
func (x *HijackResponse) GetRemoteString() string
func (*HijackResponse) GetWriterServer ¶
func (x *HijackResponse) GetWriterServer() uint32
func (*HijackResponse) ProtoMessage ¶
func (*HijackResponse) ProtoMessage()
func (*HijackResponse) ProtoReflect ¶ added in v1.4.7
func (x *HijackResponse) ProtoReflect() protoreflect.Message
func (*HijackResponse) Reset ¶
func (x *HijackResponse) Reset()
func (*HijackResponse) String ¶
func (x *HijackResponse) String() string
type UnimplementedWriterServer ¶
type UnimplementedWriterServer struct { }
UnimplementedWriterServer must be embedded to have forward compatible implementations.
func (UnimplementedWriterServer) Flush ¶
func (UnimplementedWriterServer) Flush(context.Context, *FlushRequest) (*FlushResponse, error)
func (UnimplementedWriterServer) Hijack ¶
func (UnimplementedWriterServer) Hijack(context.Context, *HijackRequest) (*HijackResponse, error)
func (UnimplementedWriterServer) Write ¶
func (UnimplementedWriterServer) Write(context.Context, *WriteRequest) (*WriteResponse, error)
func (UnimplementedWriterServer) WriteHeader ¶
func (UnimplementedWriterServer) WriteHeader(context.Context, *WriteHeaderRequest) (*WriteHeaderResponse, error)
type UnsafeWriterServer ¶ added in v1.4.7
type UnsafeWriterServer interface {
// contains filtered or unexported methods
}
UnsafeWriterServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to WriterServer will result in compilation errors.
type WriteHeaderRequest ¶
type WriteHeaderRequest struct { Headers []*Header `protobuf:"bytes,1,rep,name=headers,proto3" json:"headers,omitempty"` StatusCode int32 `protobuf:"varint,2,opt,name=statusCode,proto3" json:"statusCode,omitempty"` // contains filtered or unexported fields }
func (*WriteHeaderRequest) Descriptor
deprecated
func (*WriteHeaderRequest) Descriptor() ([]byte, []int)
Deprecated: Use WriteHeaderRequest.ProtoReflect.Descriptor instead.
func (*WriteHeaderRequest) GetHeaders ¶
func (x *WriteHeaderRequest) GetHeaders() []*Header
func (*WriteHeaderRequest) GetStatusCode ¶
func (x *WriteHeaderRequest) GetStatusCode() int32
func (*WriteHeaderRequest) ProtoMessage ¶
func (*WriteHeaderRequest) ProtoMessage()
func (*WriteHeaderRequest) ProtoReflect ¶ added in v1.4.7
func (x *WriteHeaderRequest) ProtoReflect() protoreflect.Message
func (*WriteHeaderRequest) Reset ¶
func (x *WriteHeaderRequest) Reset()
func (*WriteHeaderRequest) String ¶
func (x *WriteHeaderRequest) String() string
type WriteHeaderResponse ¶
type WriteHeaderResponse struct {
// contains filtered or unexported fields
}
func (*WriteHeaderResponse) Descriptor
deprecated
func (*WriteHeaderResponse) Descriptor() ([]byte, []int)
Deprecated: Use WriteHeaderResponse.ProtoReflect.Descriptor instead.
func (*WriteHeaderResponse) ProtoMessage ¶
func (*WriteHeaderResponse) ProtoMessage()
func (*WriteHeaderResponse) ProtoReflect ¶ added in v1.4.7
func (x *WriteHeaderResponse) ProtoReflect() protoreflect.Message
func (*WriteHeaderResponse) Reset ¶
func (x *WriteHeaderResponse) Reset()
func (*WriteHeaderResponse) String ¶
func (x *WriteHeaderResponse) String() string
type WriteRequest ¶
type WriteRequest struct { Headers []*Header `protobuf:"bytes,1,rep,name=headers,proto3" json:"headers,omitempty"` Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` // contains filtered or unexported fields }
func (*WriteRequest) Descriptor
deprecated
func (*WriteRequest) Descriptor() ([]byte, []int)
Deprecated: Use WriteRequest.ProtoReflect.Descriptor instead.
func (*WriteRequest) GetHeaders ¶
func (x *WriteRequest) GetHeaders() []*Header
func (*WriteRequest) GetPayload ¶
func (x *WriteRequest) GetPayload() []byte
func (*WriteRequest) ProtoMessage ¶
func (*WriteRequest) ProtoMessage()
func (*WriteRequest) ProtoReflect ¶ added in v1.4.7
func (x *WriteRequest) ProtoReflect() protoreflect.Message
func (*WriteRequest) Reset ¶
func (x *WriteRequest) Reset()
func (*WriteRequest) String ¶
func (x *WriteRequest) String() string
type WriteResponse ¶
type WriteResponse struct { Written int32 `protobuf:"varint,1,opt,name=written,proto3" json:"written,omitempty"` // contains filtered or unexported fields }
func (*WriteResponse) Descriptor
deprecated
func (*WriteResponse) Descriptor() ([]byte, []int)
Deprecated: Use WriteResponse.ProtoReflect.Descriptor instead.
func (*WriteResponse) GetWritten ¶
func (x *WriteResponse) GetWritten() int32
func (*WriteResponse) ProtoMessage ¶
func (*WriteResponse) ProtoMessage()
func (*WriteResponse) ProtoReflect ¶ added in v1.4.7
func (x *WriteResponse) ProtoReflect() protoreflect.Message
func (*WriteResponse) Reset ¶
func (x *WriteResponse) Reset()
func (*WriteResponse) String ¶
func (x *WriteResponse) String() string
type WriterClient ¶
type WriterClient interface { Write(ctx context.Context, in *WriteRequest, opts ...grpc.CallOption) (*WriteResponse, error) WriteHeader(ctx context.Context, in *WriteHeaderRequest, opts ...grpc.CallOption) (*WriteHeaderResponse, error) Flush(ctx context.Context, in *FlushRequest, opts ...grpc.CallOption) (*FlushResponse, error) Hijack(ctx context.Context, in *HijackRequest, opts ...grpc.CallOption) (*HijackResponse, error) }
WriterClient is the client API for Writer service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewWriterClient ¶
func NewWriterClient(cc grpc.ClientConnInterface) WriterClient
type WriterServer ¶
type WriterServer interface { Write(context.Context, *WriteRequest) (*WriteResponse, error) WriteHeader(context.Context, *WriteHeaderRequest) (*WriteHeaderResponse, error) Flush(context.Context, *FlushRequest) (*FlushResponse, error) Hijack(context.Context, *HijackRequest) (*HijackResponse, error) // contains filtered or unexported methods }
WriterServer is the server API for Writer service. All implementations must embed UnimplementedWriterServer for forward compatibility