Documentation ¶
Index ¶
- Variables
- func RegisterImageProcessorServer(s grpc.ServiceRegistrar, srv ImageProcessorServer)
- type ImageProcessorClient
- type ImageProcessorServer
- type ImageURL
- type Images
- func (*Images) Descriptor() ([]byte, []int)deprecated
- func (x *Images) GetColCount() int64
- func (x *Images) GetImages() []*ImageURL
- func (x *Images) GetRowCount() int64
- func (x *Images) GetTargetSize() int64
- func (*Images) ProtoMessage()
- func (x *Images) ProtoReflect() protoreflect.Message
- func (x *Images) Reset()
- func (x *Images) String() string
- type UnimplementedImageProcessorServer
- type UnsafeImageProcessorServer
Constants ¶
This section is empty.
Variables ¶
var File_collage_maker_proto protoreflect.FileDescriptor
var ImageProcessor_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.ImageProcessor", HandlerType: (*ImageProcessorServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetCollage", Handler: _ImageProcessor_GetCollage_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "collage_maker.proto", }
ImageProcessor_ServiceDesc is the grpc.ServiceDesc for ImageProcessor service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterImageProcessorServer ¶
func RegisterImageProcessorServer(s grpc.ServiceRegistrar, srv ImageProcessorServer)
Types ¶
type ImageProcessorClient ¶
type ImageProcessorClient interface {
GetCollage(ctx context.Context, in *Images, opts ...grpc.CallOption) (*core_pb.Image, error)
}
ImageProcessorClient is the client API for ImageProcessor 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 NewImageProcessorClient ¶
func NewImageProcessorClient(cc grpc.ClientConnInterface) ImageProcessorClient
type ImageProcessorServer ¶
type ImageProcessorServer interface { GetCollage(context.Context, *Images) (*core_pb.Image, error) // contains filtered or unexported methods }
ImageProcessorServer is the server API for ImageProcessor service. All implementations must embed UnimplementedImageProcessorServer for forward compatibility
type ImageURL ¶
type ImageURL struct { ImageURL string `protobuf:"bytes,1,opt,name=imageURL,proto3" json:"imageURL,omitempty"` // contains filtered or unexported fields }
func (*ImageURL) Descriptor
deprecated
func (*ImageURL) GetImageURL ¶
func (*ImageURL) ProtoMessage ¶
func (*ImageURL) ProtoMessage()
func (*ImageURL) ProtoReflect ¶
func (x *ImageURL) ProtoReflect() protoreflect.Message
type Images ¶
type Images struct { Images []*ImageURL `protobuf:"bytes,1,rep,name=images,proto3" json:"images,omitempty"` RowCount int64 `protobuf:"varint,2,opt,name=rowCount,proto3" json:"rowCount,omitempty"` ColCount int64 `protobuf:"varint,3,opt,name=colCount,proto3" json:"colCount,omitempty"` TargetSize int64 `protobuf:"varint,4,opt,name=targetSize,proto3" json:"targetSize,omitempty"` // contains filtered or unexported fields }
func (*Images) Descriptor
deprecated
func (*Images) GetColCount ¶
func (*Images) GetRowCount ¶
func (*Images) GetTargetSize ¶
func (*Images) ProtoMessage ¶
func (*Images) ProtoMessage()
func (*Images) ProtoReflect ¶
func (x *Images) ProtoReflect() protoreflect.Message
type UnimplementedImageProcessorServer ¶
type UnimplementedImageProcessorServer struct { }
UnimplementedImageProcessorServer must be embedded to have forward compatible implementations.
func (UnimplementedImageProcessorServer) GetCollage ¶
type UnsafeImageProcessorServer ¶
type UnsafeImageProcessorServer interface {
// contains filtered or unexported methods
}
UnsafeImageProcessorServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ImageProcessorServer will result in compilation errors.