Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var File_img2vec_proto protoreflect.FileDescriptor
var Img2Vec_ServiceDesc = grpc.ServiceDesc{ ServiceName: "img2vec.Img2Vec", HandlerType: (*Img2VecServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Vectorize", Handler: _Img2Vec_Vectorize_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "img2vec.proto", }
Img2Vec_ServiceDesc is the grpc.ServiceDesc for Img2Vec service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterImg2VecServer ¶
func RegisterImg2VecServer(s grpc.ServiceRegistrar, srv Img2VecServer)
Types ¶
type Image ¶
type Image struct { Image []byte `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"` // contains filtered or unexported fields }
func (*Image) Descriptor
deprecated
func (*Image) ProtoMessage ¶
func (*Image) ProtoMessage()
func (*Image) ProtoReflect ¶
func (x *Image) ProtoReflect() protoreflect.Message
type Img2VecClient ¶
type Img2VecClient interface {
Vectorize(ctx context.Context, in *Image, opts ...grpc.CallOption) (*Vector, error)
}
Img2VecClient is the client API for Img2Vec 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 NewImg2VecClient ¶
func NewImg2VecClient(cc grpc.ClientConnInterface) Img2VecClient
type Img2VecServer ¶
type Img2VecServer interface { Vectorize(context.Context, *Image) (*Vector, error) // contains filtered or unexported methods }
Img2VecServer is the server API for Img2Vec service. All implementations must embed UnimplementedImg2VecServer for forward compatibility
type UnimplementedImg2VecServer ¶
type UnimplementedImg2VecServer struct { }
UnimplementedImg2VecServer must be embedded to have forward compatible implementations.
type UnsafeImg2VecServer ¶
type UnsafeImg2VecServer interface {
// contains filtered or unexported methods
}
UnsafeImg2VecServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to Img2VecServer will result in compilation errors.
type Vector ¶
type Vector struct { Vector []float32 `protobuf:"fixed32,1,rep,packed,name=vector,proto3" json:"vector,omitempty"` // contains filtered or unexported fields }
func (*Vector) Descriptor
deprecated
func (*Vector) ProtoMessage ¶
func (*Vector) ProtoMessage()
func (*Vector) ProtoReflect ¶
func (x *Vector) ProtoReflect() protoreflect.Message