search_vector

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_search_vector_proto protoreflect.FileDescriptor
View Source
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.

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

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.

Jump to

Keyboard shortcuts

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