Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_internal_testprotos_calltypes_grpc_grpc_proto protoreflect.FileDescriptor
Functions ¶
func RegisterStorageServer ¶
func RegisterStorageServer(s *grpc.Server, srv StorageServer)
Types ¶
type ReadRequest ¶
type ReadRequest struct {
// contains filtered or unexported fields
}
func (*ReadRequest) Descriptor
deprecated
func (*ReadRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReadRequest.ProtoReflect.Descriptor instead.
func (*ReadRequest) ProtoMessage ¶
func (*ReadRequest) ProtoMessage()
func (*ReadRequest) ProtoReflect ¶
func (x *ReadRequest) ProtoReflect() protoreflect.Message
func (*ReadRequest) Reset ¶
func (x *ReadRequest) Reset()
func (*ReadRequest) String ¶
func (x *ReadRequest) String() string
type ReadResponse ¶
type ReadResponse struct {
// contains filtered or unexported fields
}
func (*ReadResponse) Descriptor
deprecated
func (*ReadResponse) Descriptor() ([]byte, []int)
Deprecated: Use ReadResponse.ProtoReflect.Descriptor instead.
func (*ReadResponse) ProtoMessage ¶
func (*ReadResponse) ProtoMessage()
func (*ReadResponse) ProtoReflect ¶
func (x *ReadResponse) ProtoReflect() protoreflect.Message
func (*ReadResponse) Reset ¶
func (x *ReadResponse) Reset()
func (*ReadResponse) String ¶
func (x *ReadResponse) String() string
type StorageClient ¶
type StorageClient interface {
Read(ctx context.Context, in *ReadRequest, opts ...grpc.CallOption) (*ReadResponse, error)
}
StorageClient is the client API for Storage 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 NewStorageClient ¶
func NewStorageClient(cc grpc.ClientConnInterface) StorageClient
type StorageServer ¶
type StorageServer interface {
Read(context.Context, *ReadRequest) (*ReadResponse, error)
// contains filtered or unexported methods
}
StorageServer is the server API for Storage service. All implementations must embed UnimplementedStorageServer for forward compatibility
type UnimplementedStorageServer ¶
type UnimplementedStorageServer struct {
}
UnimplementedStorageServer must be embedded to have forward compatible implementations.
func (*UnimplementedStorageServer) Read ¶
func (*UnimplementedStorageServer) Read(context.Context, *ReadRequest) (*ReadResponse, error)
Click to show internal directories.
Click to hide internal directories.