Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterStreamerServiceServer(s grpc.ServiceRegistrar, srv StreamerServiceServer)
- type Configure
- type Configure_Request
- func (*Configure_Request) Descriptor() ([]byte, []int)deprecated
- func (x *Configure_Request) GetChunkSize() int64
- func (x *Configure_Request) GetPath() string
- func (*Configure_Request) ProtoMessage()
- func (x *Configure_Request) ProtoReflect() protoreflect.Message
- func (x *Configure_Request) Reset()
- func (x *Configure_Request) String() string
- type Configure_Response
- type Read
- type Read_Request
- type Read_ResponseChunk
- func (*Read_ResponseChunk) Descriptor() ([]byte, []int)deprecated
- func (x *Read_ResponseChunk) GetReadBytes() []byte
- func (*Read_ResponseChunk) ProtoMessage()
- func (x *Read_ResponseChunk) ProtoReflect() protoreflect.Message
- func (x *Read_ResponseChunk) Reset()
- func (x *Read_ResponseChunk) String() string
- type StreamerServiceClient
- type StreamerServiceServer
- type StreamerService_ReadClient
- type StreamerService_ReadServer
- type StreamerService_WriteClient
- type StreamerService_WriteServer
- type UnimplementedStreamerServiceServer
- type UnsafeStreamerServiceServer
- type Write
- type Write_RequestChunk
- func (*Write_RequestChunk) Descriptor() ([]byte, []int)deprecated
- func (x *Write_RequestChunk) GetBytesToWrite() []byte
- func (*Write_RequestChunk) ProtoMessage()
- func (x *Write_RequestChunk) ProtoReflect() protoreflect.Message
- func (x *Write_RequestChunk) Reset()
- func (x *Write_RequestChunk) String() string
- type Write_Response
Constants ¶
const ( StreamerService_Configure_FullMethodName = "/proto.StreamerService/Configure" StreamerService_Read_FullMethodName = "/proto.StreamerService/Read" StreamerService_Write_FullMethodName = "/proto.StreamerService/Write" )
Variables ¶
var File_streamer_proto protoreflect.FileDescriptor
var StreamerService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.StreamerService", HandlerType: (*StreamerServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Configure", Handler: _StreamerService_Configure_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "Read", Handler: _StreamerService_Read_Handler, ServerStreams: true, }, { StreamName: "Write", Handler: _StreamerService_Write_Handler, ClientStreams: true, }, }, Metadata: "streamer.proto", }
StreamerService_ServiceDesc is the grpc.ServiceDesc for StreamerService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterStreamerServiceServer ¶
func RegisterStreamerServiceServer(s grpc.ServiceRegistrar, srv StreamerServiceServer)
Types ¶
type Configure ¶
type Configure struct {
// contains filtered or unexported fields
}
func (*Configure) Descriptor
deprecated
func (*Configure) ProtoMessage ¶
func (*Configure) ProtoMessage()
func (*Configure) ProtoReflect ¶
func (x *Configure) ProtoReflect() protoreflect.Message
type Configure_Request ¶
type Configure_Request struct {
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
ChunkSize int64 `protobuf:"varint,2,opt,name=chunk_size,json=chunkSize,proto3" json:"chunk_size,omitempty"`
// contains filtered or unexported fields
}
func (*Configure_Request) Descriptor
deprecated
func (*Configure_Request) Descriptor() ([]byte, []int)
Deprecated: Use Configure_Request.ProtoReflect.Descriptor instead.
func (*Configure_Request) GetChunkSize ¶
func (x *Configure_Request) GetChunkSize() int64
func (*Configure_Request) GetPath ¶
func (x *Configure_Request) GetPath() string
func (*Configure_Request) ProtoMessage ¶
func (*Configure_Request) ProtoMessage()
func (*Configure_Request) ProtoReflect ¶
func (x *Configure_Request) ProtoReflect() protoreflect.Message
func (*Configure_Request) Reset ¶
func (x *Configure_Request) Reset()
func (*Configure_Request) String ¶
func (x *Configure_Request) String() string
type Configure_Response ¶
type Configure_Response struct {
// contains filtered or unexported fields
}
func (*Configure_Response) Descriptor
deprecated
func (*Configure_Response) Descriptor() ([]byte, []int)
Deprecated: Use Configure_Response.ProtoReflect.Descriptor instead.
func (*Configure_Response) ProtoMessage ¶
func (*Configure_Response) ProtoMessage()
func (*Configure_Response) ProtoReflect ¶
func (x *Configure_Response) ProtoReflect() protoreflect.Message
func (*Configure_Response) Reset ¶
func (x *Configure_Response) Reset()
func (*Configure_Response) String ¶
func (x *Configure_Response) String() string
type Read ¶
type Read struct {
// contains filtered or unexported fields
}
func (*Read) Descriptor
deprecated
func (*Read) ProtoMessage ¶
func (*Read) ProtoMessage()
func (*Read) ProtoReflect ¶
func (x *Read) ProtoReflect() protoreflect.Message
type Read_Request ¶
type Read_Request struct {
// contains filtered or unexported fields
}
func (*Read_Request) Descriptor
deprecated
func (*Read_Request) Descriptor() ([]byte, []int)
Deprecated: Use Read_Request.ProtoReflect.Descriptor instead.
func (*Read_Request) ProtoMessage ¶
func (*Read_Request) ProtoMessage()
func (*Read_Request) ProtoReflect ¶
func (x *Read_Request) ProtoReflect() protoreflect.Message
func (*Read_Request) Reset ¶
func (x *Read_Request) Reset()
func (*Read_Request) String ¶
func (x *Read_Request) String() string
type Read_ResponseChunk ¶
type Read_ResponseChunk struct {
ReadBytes []byte `protobuf:"bytes,1,opt,name=read_bytes,json=readBytes,proto3" json:"read_bytes,omitempty"`
// contains filtered or unexported fields
}
func (*Read_ResponseChunk) Descriptor
deprecated
func (*Read_ResponseChunk) Descriptor() ([]byte, []int)
Deprecated: Use Read_ResponseChunk.ProtoReflect.Descriptor instead.
func (*Read_ResponseChunk) GetReadBytes ¶
func (x *Read_ResponseChunk) GetReadBytes() []byte
func (*Read_ResponseChunk) ProtoMessage ¶
func (*Read_ResponseChunk) ProtoMessage()
func (*Read_ResponseChunk) ProtoReflect ¶
func (x *Read_ResponseChunk) ProtoReflect() protoreflect.Message
func (*Read_ResponseChunk) Reset ¶
func (x *Read_ResponseChunk) Reset()
func (*Read_ResponseChunk) String ¶
func (x *Read_ResponseChunk) String() string
type StreamerServiceClient ¶
type StreamerServiceClient interface {
Configure(ctx context.Context, in *Configure_Request, opts ...grpc.CallOption) (*Configure_Response, error)
Read(ctx context.Context, in *Read_Request, opts ...grpc.CallOption) (StreamerService_ReadClient, error)
Write(ctx context.Context, opts ...grpc.CallOption) (StreamerService_WriteClient, error)
}
StreamerServiceClient is the client API for StreamerService 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 NewStreamerServiceClient ¶
func NewStreamerServiceClient(cc grpc.ClientConnInterface) StreamerServiceClient
type StreamerServiceServer ¶
type StreamerServiceServer interface {
Configure(context.Context, *Configure_Request) (*Configure_Response, error)
Read(*Read_Request, StreamerService_ReadServer) error
Write(StreamerService_WriteServer) error
// contains filtered or unexported methods
}
StreamerServiceServer is the server API for StreamerService service. All implementations must embed UnimplementedStreamerServiceServer for forward compatibility
type StreamerService_ReadClient ¶
type StreamerService_ReadClient interface {
Recv() (*Read_ResponseChunk, error)
grpc.ClientStream
}
type StreamerService_ReadServer ¶
type StreamerService_ReadServer interface {
Send(*Read_ResponseChunk) error
grpc.ServerStream
}
type StreamerService_WriteClient ¶
type StreamerService_WriteClient interface {
Send(*Write_RequestChunk) error
CloseAndRecv() (*Write_Response, error)
grpc.ClientStream
}
type StreamerService_WriteServer ¶
type StreamerService_WriteServer interface {
SendAndClose(*Write_Response) error
Recv() (*Write_RequestChunk, error)
grpc.ServerStream
}
type UnimplementedStreamerServiceServer ¶
type UnimplementedStreamerServiceServer struct {
}
UnimplementedStreamerServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedStreamerServiceServer) Configure ¶
func (UnimplementedStreamerServiceServer) Configure(context.Context, *Configure_Request) (*Configure_Response, error)
type UnsafeStreamerServiceServer ¶
type UnsafeStreamerServiceServer interface {
// contains filtered or unexported methods
}
UnsafeStreamerServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to StreamerServiceServer will result in compilation errors.
type Write ¶
type Write struct {
// contains filtered or unexported fields
}
func (*Write) Descriptor
deprecated
func (*Write) ProtoMessage ¶
func (*Write) ProtoMessage()
func (*Write) ProtoReflect ¶
func (x *Write) ProtoReflect() protoreflect.Message
type Write_RequestChunk ¶
type Write_RequestChunk struct {
BytesToWrite []byte `protobuf:"bytes,1,opt,name=bytes_to_write,json=bytesToWrite,proto3" json:"bytes_to_write,omitempty"`
// contains filtered or unexported fields
}
func (*Write_RequestChunk) Descriptor
deprecated
func (*Write_RequestChunk) Descriptor() ([]byte, []int)
Deprecated: Use Write_RequestChunk.ProtoReflect.Descriptor instead.
func (*Write_RequestChunk) GetBytesToWrite ¶
func (x *Write_RequestChunk) GetBytesToWrite() []byte
func (*Write_RequestChunk) ProtoMessage ¶
func (*Write_RequestChunk) ProtoMessage()
func (*Write_RequestChunk) ProtoReflect ¶
func (x *Write_RequestChunk) ProtoReflect() protoreflect.Message
func (*Write_RequestChunk) Reset ¶
func (x *Write_RequestChunk) Reset()
func (*Write_RequestChunk) String ¶
func (x *Write_RequestChunk) String() string
type Write_Response ¶
type Write_Response struct {
// contains filtered or unexported fields
}
func (*Write_Response) Descriptor
deprecated
func (*Write_Response) Descriptor() ([]byte, []int)
Deprecated: Use Write_Response.ProtoReflect.Descriptor instead.
func (*Write_Response) ProtoMessage ¶
func (*Write_Response) ProtoMessage()
func (*Write_Response) ProtoReflect ¶
func (x *Write_Response) ProtoReflect() protoreflect.Message
func (*Write_Response) Reset ¶
func (x *Write_Response) Reset()
func (*Write_Response) String ¶
func (x *Write_Response) String() string