Documentation ¶
Index ¶
- Variables
- func RegisterSearchVectorServiceServer(s grpc.ServiceRegistrar, srv SearchVectorServiceServer)
- type SearchVectorRequest
- func (*SearchVectorRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SearchVectorRequest) GetQuery() []string
- func (*SearchVectorRequest) ProtoMessage()
- func (x *SearchVectorRequest) ProtoReflect() protoreflect.Message
- func (x *SearchVectorRequest) Reset()
- func (x *SearchVectorRequest) String() string
- type SearchVectorResponse
- func (*SearchVectorResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SearchVectorResponse) GetCode() int64
- func (x *SearchVectorResponse) GetDocIds() []string
- func (x *SearchVectorResponse) GetError() string
- func (x *SearchVectorResponse) GetMsg() string
- func (*SearchVectorResponse) ProtoMessage()
- func (x *SearchVectorResponse) ProtoReflect() protoreflect.Message
- func (x *SearchVectorResponse) Reset()
- func (x *SearchVectorResponse) String() string
- type SearchVectorServiceClient
- type SearchVectorServiceServer
- type UnimplementedSearchVectorServiceServer
- type UnsafeSearchVectorServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_search_vector_proto protoreflect.FileDescriptor
var SearchVectorService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "SearchVectorService", HandlerType: (*SearchVectorServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SearchVector", Handler: _SearchVectorService_SearchVector_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "search_vector.proto", }
SearchVectorService_ServiceDesc is the grpc.ServiceDesc for SearchVectorService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSearchVectorServiceServer ¶
func RegisterSearchVectorServiceServer(s grpc.ServiceRegistrar, srv SearchVectorServiceServer)
Types ¶
type SearchVectorRequest ¶
type SearchVectorRequest struct { // @inject_tag: form:"query" uri:"query" Query []string `protobuf:"bytes,1,rep,name=query,proto3" json:"query,omitempty" form:"query" uri:"query"` // contains filtered or unexported fields }
func (*SearchVectorRequest) Descriptor
deprecated
func (*SearchVectorRequest) Descriptor() ([]byte, []int)
Deprecated: Use SearchVectorRequest.ProtoReflect.Descriptor instead.
func (*SearchVectorRequest) GetQuery ¶
func (x *SearchVectorRequest) GetQuery() []string
func (*SearchVectorRequest) ProtoMessage ¶
func (*SearchVectorRequest) ProtoMessage()
func (*SearchVectorRequest) ProtoReflect ¶
func (x *SearchVectorRequest) ProtoReflect() protoreflect.Message
func (*SearchVectorRequest) Reset ¶
func (x *SearchVectorRequest) Reset()
func (*SearchVectorRequest) String ¶
func (x *SearchVectorRequest) String() string
type SearchVectorResponse ¶
type SearchVectorResponse struct { Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` DocIds []string `protobuf:"bytes,2,rep,name=doc_ids,json=docIds,proto3" json:"doc_ids,omitempty"` Msg string `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"` Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*SearchVectorResponse) Descriptor
deprecated
func (*SearchVectorResponse) Descriptor() ([]byte, []int)
Deprecated: Use SearchVectorResponse.ProtoReflect.Descriptor instead.
func (*SearchVectorResponse) GetCode ¶
func (x *SearchVectorResponse) GetCode() int64
func (*SearchVectorResponse) GetDocIds ¶
func (x *SearchVectorResponse) GetDocIds() []string
func (*SearchVectorResponse) GetError ¶
func (x *SearchVectorResponse) GetError() string
func (*SearchVectorResponse) GetMsg ¶
func (x *SearchVectorResponse) GetMsg() string
func (*SearchVectorResponse) ProtoMessage ¶
func (*SearchVectorResponse) ProtoMessage()
func (*SearchVectorResponse) ProtoReflect ¶
func (x *SearchVectorResponse) ProtoReflect() protoreflect.Message
func (*SearchVectorResponse) Reset ¶
func (x *SearchVectorResponse) Reset()
func (*SearchVectorResponse) String ¶
func (x *SearchVectorResponse) String() string
type SearchVectorServiceClient ¶
type SearchVectorServiceClient interface {
SearchVector(ctx context.Context, in *SearchVectorRequest, opts ...grpc.CallOption) (*SearchVectorResponse, error)
}
SearchVectorServiceClient is the client API for SearchVectorService 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 NewSearchVectorServiceClient ¶
func NewSearchVectorServiceClient(cc grpc.ClientConnInterface) SearchVectorServiceClient
type SearchVectorServiceServer ¶
type SearchVectorServiceServer interface { SearchVector(context.Context, *SearchVectorRequest) (*SearchVectorResponse, error) // contains filtered or unexported methods }
SearchVectorServiceServer is the server API for SearchVectorService service. All implementations must embed UnimplementedSearchVectorServiceServer for forward compatibility
type UnimplementedSearchVectorServiceServer ¶
type UnimplementedSearchVectorServiceServer struct { }
UnimplementedSearchVectorServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedSearchVectorServiceServer) SearchVector ¶
func (UnimplementedSearchVectorServiceServer) SearchVector(context.Context, *SearchVectorRequest) (*SearchVectorResponse, error)
type UnsafeSearchVectorServiceServer ¶
type UnsafeSearchVectorServiceServer interface {
// contains filtered or unexported methods
}
UnsafeSearchVectorServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SearchVectorServiceServer will result in compilation errors.