img2vec

package
v0.0.0-...-6bcd878 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_img2vec_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Image.ProtoReflect.Descriptor instead.

func (*Image) GetImage

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

func (*Image) ProtoMessage

func (*Image) ProtoMessage()

func (*Image) ProtoReflect

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

func (*Image) Reset

func (x *Image) Reset()

func (*Image) String

func (x *Image) String() string

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.

func (UnimplementedImg2VecServer) Vectorize

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) Descriptor() ([]byte, []int)

Deprecated: Use Vector.ProtoReflect.Descriptor instead.

func (*Vector) GetVector

func (x *Vector) GetVector() []float32

func (*Vector) ProtoMessage

func (*Vector) ProtoMessage()

func (*Vector) ProtoReflect

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

func (*Vector) Reset

func (x *Vector) Reset()

func (*Vector) String

func (x *Vector) String() string

Jump to

Keyboard shortcuts

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