Documentation
¶
Index ¶
Constants ¶
const (
SendFileService_Upload_FullMethodName = "/sendfile.SendFileService/Upload"
)
Variables ¶
var File_sendfile_proto protoreflect.FileDescriptor
var SendFileService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "sendfile.SendFileService", HandlerType: (*SendFileServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Upload", Handler: _SendFileService_Upload_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "sendfile.proto", }
SendFileService_ServiceDesc is the grpc.ServiceDesc for SendFileService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSendFileServiceServer ¶
func RegisterSendFileServiceServer(s grpc.ServiceRegistrar, srv SendFileServiceServer)
Types ¶
type Request ¶
type Request struct {
Base64File string `protobuf:"bytes,1,opt,name=base64File,proto3" json:"base64File,omitempty"`
// contains filtered or unexported fields
}
func (*Request) Descriptor
deprecated
func (*Request) GetBase64File ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
type Response ¶
type Response struct {
Saved bool `protobuf:"varint,1,opt,name=saved,proto3" json:"saved,omitempty"`
// contains filtered or unexported fields
}
func (*Response) Descriptor
deprecated
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type SendFileServiceClient ¶
type SendFileServiceClient interface {
Upload(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
}
SendFileServiceClient is the client API for SendFileService 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 NewSendFileServiceClient ¶
func NewSendFileServiceClient(cc grpc.ClientConnInterface) SendFileServiceClient
type SendFileServiceServer ¶
type SendFileServiceServer interface {
Upload(context.Context, *Request) (*Response, error)
// contains filtered or unexported methods
}
SendFileServiceServer is the server API for SendFileService service. All implementations must embed UnimplementedSendFileServiceServer for forward compatibility
type UnimplementedSendFileServiceServer ¶
type UnimplementedSendFileServiceServer struct {
}
UnimplementedSendFileServiceServer must be embedded to have forward compatible implementations.
type UnsafeSendFileServiceServer ¶
type UnsafeSendFileServiceServer interface {
// contains filtered or unexported methods
}
UnsafeSendFileServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SendFileServiceServer will result in compilation errors.