update
This commit is contained in:
parent
d690b2c162
commit
79d9ae5ab5
2 changed files with 421 additions and 0 deletions
261
pkg/proto/imageStorage/imageStorage.pb.go
Normal file
261
pkg/proto/imageStorage/imageStorage.pb.go
Normal file
|
|
@ -0,0 +1,261 @@
|
||||||
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
|
// versions:
|
||||||
|
// protoc-gen-go v1.36.8
|
||||||
|
// protoc v6.32.1
|
||||||
|
// source: imageStorage.proto
|
||||||
|
|
||||||
|
package imageStorage
|
||||||
|
|
||||||
|
import (
|
||||||
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||||
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||||
|
emptypb "google.golang.org/protobuf/types/known/emptypb"
|
||||||
|
reflect "reflect"
|
||||||
|
sync "sync"
|
||||||
|
unsafe "unsafe"
|
||||||
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
// Verify that this generated code is sufficiently up-to-date.
|
||||||
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||||||
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||||
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||||
|
)
|
||||||
|
|
||||||
|
type UploadMerchImageRequest struct {
|
||||||
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
|
ImageData []byte `protobuf:"bytes,1,opt,name=imageData,proto3" json:"imageData,omitempty"`
|
||||||
|
UserUuid string `protobuf:"bytes,2,opt,name=userUuid,proto3" json:"userUuid,omitempty"`
|
||||||
|
MerchUuid string `protobuf:"bytes,3,opt,name=merchUuid,proto3" json:"merchUuid,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *UploadMerchImageRequest) Reset() {
|
||||||
|
*x = UploadMerchImageRequest{}
|
||||||
|
mi := &file_imageStorage_proto_msgTypes[0]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *UploadMerchImageRequest) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*UploadMerchImageRequest) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *UploadMerchImageRequest) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_imageStorage_proto_msgTypes[0]
|
||||||
|
if x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use UploadMerchImageRequest.ProtoReflect.Descriptor instead.
|
||||||
|
func (*UploadMerchImageRequest) Descriptor() ([]byte, []int) {
|
||||||
|
return file_imageStorage_proto_rawDescGZIP(), []int{0}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *UploadMerchImageRequest) GetImageData() []byte {
|
||||||
|
if x != nil {
|
||||||
|
return x.ImageData
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *UploadMerchImageRequest) GetUserUuid() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.UserUuid
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *UploadMerchImageRequest) GetMerchUuid() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.MerchUuid
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
type UploadMerchImageResponse struct {
|
||||||
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
|
FullImage string `protobuf:"bytes,1,opt,name=fullImage,proto3" json:"fullImage,omitempty"`
|
||||||
|
Thumbnail string `protobuf:"bytes,2,opt,name=thumbnail,proto3" json:"thumbnail,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *UploadMerchImageResponse) Reset() {
|
||||||
|
*x = UploadMerchImageResponse{}
|
||||||
|
mi := &file_imageStorage_proto_msgTypes[1]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *UploadMerchImageResponse) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*UploadMerchImageResponse) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *UploadMerchImageResponse) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_imageStorage_proto_msgTypes[1]
|
||||||
|
if x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use UploadMerchImageResponse.ProtoReflect.Descriptor instead.
|
||||||
|
func (*UploadMerchImageResponse) Descriptor() ([]byte, []int) {
|
||||||
|
return file_imageStorage_proto_rawDescGZIP(), []int{1}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *UploadMerchImageResponse) GetFullImage() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.FullImage
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *UploadMerchImageResponse) GetThumbnail() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Thumbnail
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
type DeleteImageRequest struct {
|
||||||
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
|
UserUuid string `protobuf:"bytes,1,opt,name=userUuid,proto3" json:"userUuid,omitempty"`
|
||||||
|
MerchUuid string `protobuf:"bytes,2,opt,name=merchUuid,proto3" json:"merchUuid,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DeleteImageRequest) Reset() {
|
||||||
|
*x = DeleteImageRequest{}
|
||||||
|
mi := &file_imageStorage_proto_msgTypes[2]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DeleteImageRequest) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*DeleteImageRequest) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *DeleteImageRequest) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_imageStorage_proto_msgTypes[2]
|
||||||
|
if x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use DeleteImageRequest.ProtoReflect.Descriptor instead.
|
||||||
|
func (*DeleteImageRequest) Descriptor() ([]byte, []int) {
|
||||||
|
return file_imageStorage_proto_rawDescGZIP(), []int{2}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DeleteImageRequest) GetUserUuid() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.UserUuid
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DeleteImageRequest) GetMerchUuid() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.MerchUuid
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
var File_imageStorage_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
|
const file_imageStorage_proto_rawDesc = "" +
|
||||||
|
"\n" +
|
||||||
|
"\x12imageStorage.proto\x12\fimageStorage\x1a\x1bgoogle/protobuf/empty.proto\"q\n" +
|
||||||
|
"\x17UploadMerchImageRequest\x12\x1c\n" +
|
||||||
|
"\timageData\x18\x01 \x01(\fR\timageData\x12\x1a\n" +
|
||||||
|
"\buserUuid\x18\x02 \x01(\tR\buserUuid\x12\x1c\n" +
|
||||||
|
"\tmerchUuid\x18\x03 \x01(\tR\tmerchUuid\"V\n" +
|
||||||
|
"\x18UploadMerchImageResponse\x12\x1c\n" +
|
||||||
|
"\tfullImage\x18\x01 \x01(\tR\tfullImage\x12\x1c\n" +
|
||||||
|
"\tthumbnail\x18\x02 \x01(\tR\tthumbnail\"N\n" +
|
||||||
|
"\x12DeleteImageRequest\x12\x1a\n" +
|
||||||
|
"\buserUuid\x18\x01 \x01(\tR\buserUuid\x12\x1c\n" +
|
||||||
|
"\tmerchUuid\x18\x02 \x01(\tR\tmerchUuid2\xb5\x01\n" +
|
||||||
|
"\fImageStorage\x12\\\n" +
|
||||||
|
"\vUploadImage\x12%.imageStorage.UploadMerchImageRequest\x1a&.imageStorage.UploadMerchImageResponse\x12G\n" +
|
||||||
|
"\vDeleteImage\x12 .imageStorage.DeleteImageRequest\x1a\x16.google.protobuf.EmptyB%Z#imageStorage/pkg/proto/imageStorageb\x06proto3"
|
||||||
|
|
||||||
|
var (
|
||||||
|
file_imageStorage_proto_rawDescOnce sync.Once
|
||||||
|
file_imageStorage_proto_rawDescData []byte
|
||||||
|
)
|
||||||
|
|
||||||
|
func file_imageStorage_proto_rawDescGZIP() []byte {
|
||||||
|
file_imageStorage_proto_rawDescOnce.Do(func() {
|
||||||
|
file_imageStorage_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_imageStorage_proto_rawDesc), len(file_imageStorage_proto_rawDesc)))
|
||||||
|
})
|
||||||
|
return file_imageStorage_proto_rawDescData
|
||||||
|
}
|
||||||
|
|
||||||
|
var file_imageStorage_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
||||||
|
var file_imageStorage_proto_goTypes = []any{
|
||||||
|
(*UploadMerchImageRequest)(nil), // 0: imageStorage.UploadMerchImageRequest
|
||||||
|
(*UploadMerchImageResponse)(nil), // 1: imageStorage.UploadMerchImageResponse
|
||||||
|
(*DeleteImageRequest)(nil), // 2: imageStorage.DeleteImageRequest
|
||||||
|
(*emptypb.Empty)(nil), // 3: google.protobuf.Empty
|
||||||
|
}
|
||||||
|
var file_imageStorage_proto_depIdxs = []int32{
|
||||||
|
0, // 0: imageStorage.ImageStorage.UploadImage:input_type -> imageStorage.UploadMerchImageRequest
|
||||||
|
2, // 1: imageStorage.ImageStorage.DeleteImage:input_type -> imageStorage.DeleteImageRequest
|
||||||
|
1, // 2: imageStorage.ImageStorage.UploadImage:output_type -> imageStorage.UploadMerchImageResponse
|
||||||
|
3, // 3: imageStorage.ImageStorage.DeleteImage:output_type -> google.protobuf.Empty
|
||||||
|
2, // [2:4] is the sub-list for method output_type
|
||||||
|
0, // [0:2] is the sub-list for method input_type
|
||||||
|
0, // [0:0] is the sub-list for extension type_name
|
||||||
|
0, // [0:0] is the sub-list for extension extendee
|
||||||
|
0, // [0:0] is the sub-list for field type_name
|
||||||
|
}
|
||||||
|
|
||||||
|
func init() { file_imageStorage_proto_init() }
|
||||||
|
func file_imageStorage_proto_init() {
|
||||||
|
if File_imageStorage_proto != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
type x struct{}
|
||||||
|
out := protoimpl.TypeBuilder{
|
||||||
|
File: protoimpl.DescBuilder{
|
||||||
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_imageStorage_proto_rawDesc), len(file_imageStorage_proto_rawDesc)),
|
||||||
|
NumEnums: 0,
|
||||||
|
NumMessages: 3,
|
||||||
|
NumExtensions: 0,
|
||||||
|
NumServices: 1,
|
||||||
|
},
|
||||||
|
GoTypes: file_imageStorage_proto_goTypes,
|
||||||
|
DependencyIndexes: file_imageStorage_proto_depIdxs,
|
||||||
|
MessageInfos: file_imageStorage_proto_msgTypes,
|
||||||
|
}.Build()
|
||||||
|
File_imageStorage_proto = out.File
|
||||||
|
file_imageStorage_proto_goTypes = nil
|
||||||
|
file_imageStorage_proto_depIdxs = nil
|
||||||
|
}
|
||||||
160
pkg/proto/imageStorage/imageStorage_grpc.pb.go
Normal file
160
pkg/proto/imageStorage/imageStorage_grpc.pb.go
Normal file
|
|
@ -0,0 +1,160 @@
|
||||||
|
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||||
|
// versions:
|
||||||
|
// - protoc-gen-go-grpc v1.5.1
|
||||||
|
// - protoc v6.32.1
|
||||||
|
// source: imageStorage.proto
|
||||||
|
|
||||||
|
package imageStorage
|
||||||
|
|
||||||
|
import (
|
||||||
|
context "context"
|
||||||
|
grpc "google.golang.org/grpc"
|
||||||
|
codes "google.golang.org/grpc/codes"
|
||||||
|
status "google.golang.org/grpc/status"
|
||||||
|
emptypb "google.golang.org/protobuf/types/known/emptypb"
|
||||||
|
)
|
||||||
|
|
||||||
|
// This is a compile-time assertion to ensure that this generated file
|
||||||
|
// is compatible with the grpc package it is being compiled against.
|
||||||
|
// Requires gRPC-Go v1.64.0 or later.
|
||||||
|
const _ = grpc.SupportPackageIsVersion9
|
||||||
|
|
||||||
|
const (
|
||||||
|
ImageStorage_UploadImage_FullMethodName = "/imageStorage.ImageStorage/UploadImage"
|
||||||
|
ImageStorage_DeleteImage_FullMethodName = "/imageStorage.ImageStorage/DeleteImage"
|
||||||
|
)
|
||||||
|
|
||||||
|
// ImageStorageClient is the client API for ImageStorage 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.
|
||||||
|
type ImageStorageClient interface {
|
||||||
|
UploadImage(ctx context.Context, in *UploadMerchImageRequest, opts ...grpc.CallOption) (*UploadMerchImageResponse, error)
|
||||||
|
DeleteImage(ctx context.Context, in *DeleteImageRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
||||||
|
}
|
||||||
|
|
||||||
|
type imageStorageClient struct {
|
||||||
|
cc grpc.ClientConnInterface
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewImageStorageClient(cc grpc.ClientConnInterface) ImageStorageClient {
|
||||||
|
return &imageStorageClient{cc}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *imageStorageClient) UploadImage(ctx context.Context, in *UploadMerchImageRequest, opts ...grpc.CallOption) (*UploadMerchImageResponse, error) {
|
||||||
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||||
|
out := new(UploadMerchImageResponse)
|
||||||
|
err := c.cc.Invoke(ctx, ImageStorage_UploadImage_FullMethodName, in, out, cOpts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *imageStorageClient) DeleteImage(ctx context.Context, in *DeleteImageRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||||
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||||
|
out := new(emptypb.Empty)
|
||||||
|
err := c.cc.Invoke(ctx, ImageStorage_DeleteImage_FullMethodName, in, out, cOpts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// ImageStorageServer is the server API for ImageStorage service.
|
||||||
|
// All implementations must embed UnimplementedImageStorageServer
|
||||||
|
// for forward compatibility.
|
||||||
|
type ImageStorageServer interface {
|
||||||
|
UploadImage(context.Context, *UploadMerchImageRequest) (*UploadMerchImageResponse, error)
|
||||||
|
DeleteImage(context.Context, *DeleteImageRequest) (*emptypb.Empty, error)
|
||||||
|
mustEmbedUnimplementedImageStorageServer()
|
||||||
|
}
|
||||||
|
|
||||||
|
// UnimplementedImageStorageServer must be embedded to have
|
||||||
|
// forward compatible implementations.
|
||||||
|
//
|
||||||
|
// NOTE: this should be embedded by value instead of pointer to avoid a nil
|
||||||
|
// pointer dereference when methods are called.
|
||||||
|
type UnimplementedImageStorageServer struct{}
|
||||||
|
|
||||||
|
func (UnimplementedImageStorageServer) UploadImage(context.Context, *UploadMerchImageRequest) (*UploadMerchImageResponse, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method UploadImage not implemented")
|
||||||
|
}
|
||||||
|
func (UnimplementedImageStorageServer) DeleteImage(context.Context, *DeleteImageRequest) (*emptypb.Empty, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method DeleteImage not implemented")
|
||||||
|
}
|
||||||
|
func (UnimplementedImageStorageServer) mustEmbedUnimplementedImageStorageServer() {}
|
||||||
|
func (UnimplementedImageStorageServer) testEmbeddedByValue() {}
|
||||||
|
|
||||||
|
// UnsafeImageStorageServer may be embedded to opt out of forward compatibility for this service.
|
||||||
|
// Use of this interface is not recommended, as added methods to ImageStorageServer will
|
||||||
|
// result in compilation errors.
|
||||||
|
type UnsafeImageStorageServer interface {
|
||||||
|
mustEmbedUnimplementedImageStorageServer()
|
||||||
|
}
|
||||||
|
|
||||||
|
func RegisterImageStorageServer(s grpc.ServiceRegistrar, srv ImageStorageServer) {
|
||||||
|
// If the following call pancis, it indicates UnimplementedImageStorageServer was
|
||||||
|
// embedded by pointer and is nil. This will cause panics if an
|
||||||
|
// unimplemented method is ever invoked, so we test this at initialization
|
||||||
|
// time to prevent it from happening at runtime later due to I/O.
|
||||||
|
if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
|
||||||
|
t.testEmbeddedByValue()
|
||||||
|
}
|
||||||
|
s.RegisterService(&ImageStorage_ServiceDesc, srv)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _ImageStorage_UploadImage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(UploadMerchImageRequest)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(ImageStorageServer).UploadImage(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: ImageStorage_UploadImage_FullMethodName,
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(ImageStorageServer).UploadImage(ctx, req.(*UploadMerchImageRequest))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _ImageStorage_DeleteImage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(DeleteImageRequest)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(ImageStorageServer).DeleteImage(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: ImageStorage_DeleteImage_FullMethodName,
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(ImageStorageServer).DeleteImage(ctx, req.(*DeleteImageRequest))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
// ImageStorage_ServiceDesc is the grpc.ServiceDesc for ImageStorage service.
|
||||||
|
// It's only intended for direct use with grpc.RegisterService,
|
||||||
|
// and not to be introspected or modified (even as a copy)
|
||||||
|
var ImageStorage_ServiceDesc = grpc.ServiceDesc{
|
||||||
|
ServiceName: "imageStorage.ImageStorage",
|
||||||
|
HandlerType: (*ImageStorageServer)(nil),
|
||||||
|
Methods: []grpc.MethodDesc{
|
||||||
|
{
|
||||||
|
MethodName: "UploadImage",
|
||||||
|
Handler: _ImageStorage_UploadImage_Handler,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
MethodName: "DeleteImage",
|
||||||
|
Handler: _ImageStorage_DeleteImage_Handler,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Streams: []grpc.StreamDesc{},
|
||||||
|
Metadata: "imageStorage.proto",
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue