v1

package
v0.0.0-...-69dedca Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ImageStorage_CreateImage_FullMethodName = "/gateway.ImageStorage/CreateImage"
	ImageStorage_GetImage_FullMethodName    = "/gateway.ImageStorage/GetImage"
	ImageStorage_GetImages_FullMethodName   = "/gateway.ImageStorage/GetImages"
)

Variables

View Source
var File_image_storage_proto protoreflect.FileDescriptor
View Source
var ImageStorage_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "gateway.ImageStorage",
	HandlerType: (*ImageStorageServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateImage",
			Handler:    _ImageStorage_CreateImage_Handler,
		},
		{
			MethodName: "GetImage",
			Handler:    _ImageStorage_GetImage_Handler,
		},
		{
			MethodName: "GetImages",
			Handler:    _ImageStorage_GetImages_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "image_storage.proto",
}

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)

Functions

func RegisterImageStorageServer

func RegisterImageStorageServer(s grpc.ServiceRegistrar, srv ImageStorageServer)

Types

type CreateImageRequest

type CreateImageRequest struct {
	Path        string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	ContentType string `protobuf:"bytes,2,opt,name=contentType,proto3" json:"contentType,omitempty"`
	Image       []byte `protobuf:"bytes,3,opt,name=image,proto3" json:"image,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateImageRequest) Descriptor deprecated

func (*CreateImageRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateImageRequest.ProtoReflect.Descriptor instead.

func (*CreateImageRequest) GetContentType

func (x *CreateImageRequest) GetContentType() string

func (*CreateImageRequest) GetImage

func (x *CreateImageRequest) GetImage() []byte

func (*CreateImageRequest) GetPath

func (x *CreateImageRequest) GetPath() string

func (*CreateImageRequest) ProtoMessage

func (*CreateImageRequest) ProtoMessage()

func (*CreateImageRequest) ProtoReflect

func (x *CreateImageRequest) ProtoReflect() protoreflect.Message

func (*CreateImageRequest) Reset

func (x *CreateImageRequest) Reset()

func (*CreateImageRequest) String

func (x *CreateImageRequest) String() string

type FindImageRequest

type FindImageRequest struct {
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

func (*FindImageRequest) Descriptor deprecated

func (*FindImageRequest) Descriptor() ([]byte, []int)

Deprecated: Use FindImageRequest.ProtoReflect.Descriptor instead.

func (*FindImageRequest) GetPath

func (x *FindImageRequest) GetPath() string

func (*FindImageRequest) ProtoMessage

func (*FindImageRequest) ProtoMessage()

func (*FindImageRequest) ProtoReflect

func (x *FindImageRequest) ProtoReflect() protoreflect.Message

func (*FindImageRequest) Reset

func (x *FindImageRequest) Reset()

func (*FindImageRequest) String

func (x *FindImageRequest) String() string

type FindImageResponse

type FindImageResponse struct {
	Name        string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	ContentType string `protobuf:"bytes,2,opt,name=contentType,proto3" json:"contentType,omitempty"`
	Image       []byte `protobuf:"bytes,3,opt,name=image,proto3" json:"image,omitempty"`
	// contains filtered or unexported fields
}

func (*FindImageResponse) Descriptor deprecated

func (*FindImageResponse) Descriptor() ([]byte, []int)

Deprecated: Use FindImageResponse.ProtoReflect.Descriptor instead.

func (*FindImageResponse) GetContentType

func (x *FindImageResponse) GetContentType() string

func (*FindImageResponse) GetImage

func (x *FindImageResponse) GetImage() []byte

func (*FindImageResponse) GetName

func (x *FindImageResponse) GetName() string

func (*FindImageResponse) ProtoMessage

func (*FindImageResponse) ProtoMessage()

func (*FindImageResponse) ProtoReflect

func (x *FindImageResponse) ProtoReflect() protoreflect.Message

func (*FindImageResponse) Reset

func (x *FindImageResponse) Reset()

func (*FindImageResponse) String

func (x *FindImageResponse) String() string

type FindImagesRequest

type FindImagesRequest struct {
	Paths []string `protobuf:"bytes,1,rep,name=paths,proto3" json:"paths,omitempty"`
	// contains filtered or unexported fields
}

func (*FindImagesRequest) Descriptor deprecated

func (*FindImagesRequest) Descriptor() ([]byte, []int)

Deprecated: Use FindImagesRequest.ProtoReflect.Descriptor instead.

func (*FindImagesRequest) GetPaths

func (x *FindImagesRequest) GetPaths() []string

func (*FindImagesRequest) ProtoMessage

func (*FindImagesRequest) ProtoMessage()

func (*FindImagesRequest) ProtoReflect

func (x *FindImagesRequest) ProtoReflect() protoreflect.Message

func (*FindImagesRequest) Reset

func (x *FindImagesRequest) Reset()

func (*FindImagesRequest) String

func (x *FindImagesRequest) String() string

type FindImagesResponse

type FindImagesResponse struct {
	Images []*FindImageResponse `protobuf:"bytes,1,rep,name=images,proto3" json:"images,omitempty"`
	// contains filtered or unexported fields
}

func (*FindImagesResponse) Descriptor deprecated

func (*FindImagesResponse) Descriptor() ([]byte, []int)

Deprecated: Use FindImagesResponse.ProtoReflect.Descriptor instead.

func (*FindImagesResponse) GetImages

func (x *FindImagesResponse) GetImages() []*FindImageResponse

func (*FindImagesResponse) ProtoMessage

func (*FindImagesResponse) ProtoMessage()

func (*FindImagesResponse) ProtoReflect

func (x *FindImagesResponse) ProtoReflect() protoreflect.Message

func (*FindImagesResponse) Reset

func (x *FindImagesResponse) Reset()

func (*FindImagesResponse) String

func (x *FindImagesResponse) String() string

type ImageStorageClient

type ImageStorageClient interface {
	CreateImage(ctx context.Context, in *CreateImageRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	GetImage(ctx context.Context, in *FindImageRequest, opts ...grpc.CallOption) (*FindImageResponse, error)
	GetImages(ctx context.Context, in *FindImagesRequest, opts ...grpc.CallOption) (*FindImagesResponse, error)
}

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 ImageStorageServer

type ImageStorageServer interface {
	CreateImage(context.Context, *CreateImageRequest) (*emptypb.Empty, error)
	GetImage(context.Context, *FindImageRequest) (*FindImageResponse, error)
	GetImages(context.Context, *FindImagesRequest) (*FindImagesResponse, error)
	// contains filtered or unexported methods
}

ImageStorageServer is the server API for ImageStorage service. All implementations must embed UnimplementedImageStorageServer for forward compatibility

type UnimplementedImageStorageServer

type UnimplementedImageStorageServer struct {
}

UnimplementedImageStorageServer must be embedded to have forward compatible implementations.

func (UnimplementedImageStorageServer) CreateImage

func (UnimplementedImageStorageServer) GetImage

func (UnimplementedImageStorageServer) GetImages

type UnsafeImageStorageServer

type UnsafeImageStorageServer interface {
	// contains filtered or unexported methods
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL