Documentation ¶
Overview ¶
Package api is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterGoodmatchHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterGoodmatchHandlerClient(ctx context.Context, mux *runtime.ServeMux, client GoodmatchClient) error
- func RegisterGoodmatchHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterGoodmatchHandlerServer(ctx context.Context, mux *runtime.ServeMux, server GoodmatchServer) error
- func RegisterGoodmatchServer(s grpc.ServiceRegistrar, srv GoodmatchServer)
- type ClassifyRequest
- func (*ClassifyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ClassifyRequest) GetNamespace() string
- func (x *ClassifyRequest) GetQueryForClassification() *QueryForClassification
- func (*ClassifyRequest) ProtoMessage()
- func (x *ClassifyRequest) ProtoReflect() protoreflect.Message
- func (x *ClassifyRequest) Reset()
- func (x *ClassifyRequest) String() string
- type ClassifyResponse
- func (*ClassifyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ClassifyResponse) GetData() *SearchDocumentTagsData
- func (x *ClassifyResponse) GetErrors() *ResponseErrors
- func (*ClassifyResponse) ProtoMessage()
- func (x *ClassifyResponse) ProtoReflect() protoreflect.Message
- func (x *ClassifyResponse) Reset()
- func (x *ClassifyResponse) String() string
- type ConsolidateRequest
- func (*ConsolidateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ConsolidateRequest) GetNamespace() string
- func (*ConsolidateRequest) ProtoMessage()
- func (x *ConsolidateRequest) ProtoReflect() protoreflect.Message
- func (x *ConsolidateRequest) Reset()
- func (x *ConsolidateRequest) String() string
- type ConsolidateResponse
- func (*ConsolidateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ConsolidateResponse) GetErrors() *ResponseErrors
- func (*ConsolidateResponse) ProtoMessage()
- func (x *ConsolidateResponse) ProtoReflect() protoreflect.Message
- func (x *ConsolidateResponse) Reset()
- func (x *ConsolidateResponse) String() string
- type CreateNamespaceRequest
- func (*CreateNamespaceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateNamespaceRequest) GetNamespace() string
- func (*CreateNamespaceRequest) ProtoMessage()
- func (x *CreateNamespaceRequest) ProtoReflect() protoreflect.Message
- func (x *CreateNamespaceRequest) Reset()
- func (x *CreateNamespaceRequest) String() string
- type CreateNamespaceResponse
- func (*CreateNamespaceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateNamespaceResponse) GetErrors() *ResponseErrors
- func (*CreateNamespaceResponse) ProtoMessage()
- func (x *CreateNamespaceResponse) ProtoReflect() protoreflect.Message
- func (x *CreateNamespaceResponse) Reset()
- func (x *CreateNamespaceResponse) String() string
- type DeleteDocumentRequest
- func (*DeleteDocumentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteDocumentRequest) GetDocumentId() string
- func (x *DeleteDocumentRequest) GetNamespace() string
- func (*DeleteDocumentRequest) ProtoMessage()
- func (x *DeleteDocumentRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteDocumentRequest) Reset()
- func (x *DeleteDocumentRequest) String() string
- type DeleteDocumentResponse
- func (*DeleteDocumentResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteDocumentResponse) GetErrors() *ResponseErrors
- func (*DeleteDocumentResponse) ProtoMessage()
- func (x *DeleteDocumentResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteDocumentResponse) Reset()
- func (x *DeleteDocumentResponse) String() string
- type DeleteNamespaceRequest
- func (*DeleteNamespaceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteNamespaceRequest) GetNamespace() string
- func (*DeleteNamespaceRequest) ProtoMessage()
- func (x *DeleteNamespaceRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteNamespaceRequest) Reset()
- func (x *DeleteNamespaceRequest) String() string
- type DeleteNamespaceResponse
- func (*DeleteNamespaceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteNamespaceResponse) GetErrors() *ResponseErrors
- func (*DeleteNamespaceResponse) ProtoMessage()
- func (x *DeleteNamespaceResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteNamespaceResponse) Reset()
- func (x *DeleteNamespaceResponse) String() string
- type Document
- func (*Document) Descriptor() ([]byte, []int)deprecated
- func (x *Document) GetBody() string
- func (x *Document) GetTags() []string
- func (x *Document) GetTitle() string
- func (*Document) ProtoMessage()
- func (x *Document) ProtoReflect() protoreflect.Message
- func (x *Document) Reset()
- func (x *Document) String() string
- type DocumentDraft
- func (*DocumentDraft) Descriptor() ([]byte, []int)deprecated
- func (x *DocumentDraft) GetBody() string
- func (x *DocumentDraft) GetTags() []string
- func (x *DocumentDraft) GetTitle() string
- func (*DocumentDraft) ProtoMessage()
- func (x *DocumentDraft) ProtoReflect() protoreflect.Message
- func (x *DocumentDraft) Reset()
- func (x *DocumentDraft) String() string
- type GetDocumentData
- func (*GetDocumentData) Descriptor() ([]byte, []int)deprecated
- func (x *GetDocumentData) GetDocument() *Document
- func (x *GetDocumentData) GetId() string
- func (*GetDocumentData) ProtoMessage()
- func (x *GetDocumentData) ProtoReflect() protoreflect.Message
- func (x *GetDocumentData) Reset()
- func (x *GetDocumentData) String() string
- type GetDocumentRequest
- func (*GetDocumentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetDocumentRequest) GetDocumentId() string
- func (x *GetDocumentRequest) GetNamespace() string
- func (*GetDocumentRequest) ProtoMessage()
- func (x *GetDocumentRequest) ProtoReflect() protoreflect.Message
- func (x *GetDocumentRequest) Reset()
- func (x *GetDocumentRequest) String() string
- type GetDocumentResponse
- func (*GetDocumentResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetDocumentResponse) GetData() *GetDocumentData
- func (x *GetDocumentResponse) GetErrors() *ResponseErrors
- func (*GetDocumentResponse) ProtoMessage()
- func (x *GetDocumentResponse) ProtoReflect() protoreflect.Message
- func (x *GetDocumentResponse) Reset()
- func (x *GetDocumentResponse) String() string
- type GetDocumentsData
- func (*GetDocumentsData) Descriptor() ([]byte, []int)deprecated
- func (x *GetDocumentsData) GetDocuments() []*GetDocumentsItem
- func (*GetDocumentsData) ProtoMessage()
- func (x *GetDocumentsData) ProtoReflect() protoreflect.Message
- func (x *GetDocumentsData) Reset()
- func (x *GetDocumentsData) String() string
- type GetDocumentsItem
- func (*GetDocumentsItem) Descriptor() ([]byte, []int)deprecated
- func (x *GetDocumentsItem) GetDocument() *Document
- func (x *GetDocumentsItem) GetId() string
- func (*GetDocumentsItem) ProtoMessage()
- func (x *GetDocumentsItem) ProtoReflect() protoreflect.Message
- func (x *GetDocumentsItem) Reset()
- func (x *GetDocumentsItem) String() string
- type GetDocumentsRequest
- func (*GetDocumentsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetDocumentsRequest) GetAfter() string
- func (x *GetDocumentsRequest) GetFirst() int64
- func (x *GetDocumentsRequest) GetNamespace() string
- func (*GetDocumentsRequest) ProtoMessage()
- func (x *GetDocumentsRequest) ProtoReflect() protoreflect.Message
- func (x *GetDocumentsRequest) Reset()
- func (x *GetDocumentsRequest) String() string
- type GetDocumentsResponse
- func (*GetDocumentsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetDocumentsResponse) GetData() *GetDocumentsData
- func (x *GetDocumentsResponse) GetErrors() *ResponseErrors
- func (*GetDocumentsResponse) ProtoMessage()
- func (x *GetDocumentsResponse) ProtoReflect() protoreflect.Message
- func (x *GetDocumentsResponse) Reset()
- func (x *GetDocumentsResponse) String() string
- type GetNamespacesData
- func (*GetNamespacesData) Descriptor() ([]byte, []int)deprecated
- func (x *GetNamespacesData) GetNamespaces() []string
- func (*GetNamespacesData) ProtoMessage()
- func (x *GetNamespacesData) ProtoReflect() protoreflect.Message
- func (x *GetNamespacesData) Reset()
- func (x *GetNamespacesData) String() string
- type GetNamespacesResponse
- func (*GetNamespacesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetNamespacesResponse) GetData() *GetNamespacesData
- func (x *GetNamespacesResponse) GetErrors() *ResponseErrors
- func (*GetNamespacesResponse) ProtoMessage()
- func (x *GetNamespacesResponse) ProtoReflect() protoreflect.Message
- func (x *GetNamespacesResponse) Reset()
- func (x *GetNamespacesResponse) String() string
- type GoodmatchClient
- type GoodmatchServer
- type Highlights
- type InsertDocumentsData
- func (*InsertDocumentsData) Descriptor() ([]byte, []int)deprecated
- func (x *InsertDocumentsData) GetDocumentIds() []string
- func (*InsertDocumentsData) ProtoMessage()
- func (x *InsertDocumentsData) ProtoReflect() protoreflect.Message
- func (x *InsertDocumentsData) Reset()
- func (x *InsertDocumentsData) String() string
- type InsertDocumentsRequest
- func (*InsertDocumentsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *InsertDocumentsRequest) GetNamespace() string
- func (x *InsertDocumentsRequest) GetNewDocuments() *NewDocuments
- func (*InsertDocumentsRequest) ProtoMessage()
- func (x *InsertDocumentsRequest) ProtoReflect() protoreflect.Message
- func (x *InsertDocumentsRequest) Reset()
- func (x *InsertDocumentsRequest) String() string
- type InsertDocumentsResponse
- func (*InsertDocumentsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *InsertDocumentsResponse) GetData() *InsertDocumentsData
- func (x *InsertDocumentsResponse) GetErrors() *ResponseErrors
- func (*InsertDocumentsResponse) ProtoMessage()
- func (x *InsertDocumentsResponse) ProtoReflect() protoreflect.Message
- func (x *InsertDocumentsResponse) Reset()
- func (x *InsertDocumentsResponse) String() string
- type NewDocuments
- type Query
- type QueryForClassification
- func (*QueryForClassification) Descriptor() ([]byte, []int)deprecated
- func (x *QueryForClassification) GetK() int64
- func (x *QueryForClassification) GetText() string
- func (*QueryForClassification) ProtoMessage()
- func (x *QueryForClassification) ProtoReflect() protoreflect.Message
- func (x *QueryForClassification) Reset()
- func (x *QueryForClassification) String() string
- type Range
- func (*Range) Descriptor() ([]byte, []int)deprecated
- func (x *Range) GetEnd() int32
- func (x *Range) GetRelevanceScore() float32
- func (x *Range) GetStart() int32
- func (x *Range) GetText() string
- func (*Range) ProtoMessage()
- func (x *Range) ProtoReflect() protoreflect.Message
- func (x *Range) Reset()
- func (x *Range) String() string
- type ResponseError
- type ResponseErrors
- type SearchDocumentTagsData
- func (*SearchDocumentTagsData) Descriptor() ([]byte, []int)deprecated
- func (x *SearchDocumentTagsData) GetHits() []*SearchDocumentTagsHit
- func (*SearchDocumentTagsData) ProtoMessage()
- func (x *SearchDocumentTagsData) ProtoReflect() protoreflect.Message
- func (x *SearchDocumentTagsData) Reset()
- func (x *SearchDocumentTagsData) String() string
- type SearchDocumentTagsHit
- func (*SearchDocumentTagsHit) Descriptor() ([]byte, []int)deprecated
- func (x *SearchDocumentTagsHit) GetScore() float32
- func (x *SearchDocumentTagsHit) GetTag() string
- func (*SearchDocumentTagsHit) ProtoMessage()
- func (x *SearchDocumentTagsHit) ProtoReflect() protoreflect.Message
- func (x *SearchDocumentTagsHit) Reset()
- func (x *SearchDocumentTagsHit) String() string
- type SearchDocumentsData
- func (*SearchDocumentsData) Descriptor() ([]byte, []int)deprecated
- func (x *SearchDocumentsData) GetHits() []*SearchDocumentsHit
- func (*SearchDocumentsData) ProtoMessage()
- func (x *SearchDocumentsData) ProtoReflect() protoreflect.Message
- func (x *SearchDocumentsData) Reset()
- func (x *SearchDocumentsData) String() string
- type SearchDocumentsHit
- func (*SearchDocumentsHit) Descriptor() ([]byte, []int)deprecated
- func (x *SearchDocumentsHit) GetBodyHighlights() *Highlights
- func (x *SearchDocumentsHit) GetDocument() *Document
- func (x *SearchDocumentsHit) GetId() string
- func (x *SearchDocumentsHit) GetScore() float32
- func (x *SearchDocumentsHit) GetTitleHighlights() *Highlights
- func (*SearchDocumentsHit) ProtoMessage()
- func (x *SearchDocumentsHit) ProtoReflect() protoreflect.Message
- func (x *SearchDocumentsHit) Reset()
- func (x *SearchDocumentsHit) String() string
- type SearchDocumentsRequest
- func (*SearchDocumentsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SearchDocumentsRequest) GetNamespace() string
- func (x *SearchDocumentsRequest) GetQuery() *Query
- func (*SearchDocumentsRequest) ProtoMessage()
- func (x *SearchDocumentsRequest) ProtoReflect() protoreflect.Message
- func (x *SearchDocumentsRequest) Reset()
- func (x *SearchDocumentsRequest) String() string
- type SearchDocumentsResponse
- func (*SearchDocumentsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SearchDocumentsResponse) GetData() *SearchDocumentsData
- func (x *SearchDocumentsResponse) GetErrors() *ResponseErrors
- func (*SearchDocumentsResponse) ProtoMessage()
- func (x *SearchDocumentsResponse) ProtoReflect() protoreflect.Message
- func (x *SearchDocumentsResponse) Reset()
- func (x *SearchDocumentsResponse) String() string
- type UnimplementedGoodmatchServer
- func (UnimplementedGoodmatchServer) Classify(context.Context, *ClassifyRequest) (*ClassifyResponse, error)
- func (UnimplementedGoodmatchServer) Consolidate(context.Context, *ConsolidateRequest) (*ConsolidateResponse, error)
- func (UnimplementedGoodmatchServer) CreateNamespace(context.Context, *CreateNamespaceRequest) (*CreateNamespaceResponse, error)
- func (UnimplementedGoodmatchServer) DeleteDocument(context.Context, *DeleteDocumentRequest) (*DeleteDocumentResponse, error)
- func (UnimplementedGoodmatchServer) DeleteNamespace(context.Context, *DeleteNamespaceRequest) (*DeleteNamespaceResponse, error)
- func (UnimplementedGoodmatchServer) GetDocument(context.Context, *GetDocumentRequest) (*GetDocumentResponse, error)
- func (UnimplementedGoodmatchServer) GetDocuments(context.Context, *GetDocumentsRequest) (*GetDocumentsResponse, error)
- func (UnimplementedGoodmatchServer) GetNamespaces(context.Context, *emptypb.Empty) (*GetNamespacesResponse, error)
- func (UnimplementedGoodmatchServer) InsertDocuments(context.Context, *InsertDocumentsRequest) (*InsertDocumentsResponse, error)
- func (UnimplementedGoodmatchServer) SearchDocuments(context.Context, *SearchDocumentsRequest) (*SearchDocumentsResponse, error)
- type UnsafeGoodmatchServer
Constants ¶
This section is empty.
Variables ¶
var File_goodmatch_proto protoreflect.FileDescriptor
var Goodmatch_ServiceDesc = grpc.ServiceDesc{ ServiceName: "goodmatch.Goodmatch", HandlerType: (*GoodmatchServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetDocument", Handler: _Goodmatch_GetDocument_Handler, }, { MethodName: "DeleteDocument", Handler: _Goodmatch_DeleteDocument_Handler, }, { MethodName: "GetDocuments", Handler: _Goodmatch_GetDocuments_Handler, }, { MethodName: "CreateNamespace", Handler: _Goodmatch_CreateNamespace_Handler, }, { MethodName: "InsertDocuments", Handler: _Goodmatch_InsertDocuments_Handler, }, { MethodName: "DeleteNamespace", Handler: _Goodmatch_DeleteNamespace_Handler, }, { MethodName: "GetNamespaces", Handler: _Goodmatch_GetNamespaces_Handler, }, { MethodName: "SearchDocuments", Handler: _Goodmatch_SearchDocuments_Handler, }, { MethodName: "Classify", Handler: _Goodmatch_Classify_Handler, }, { MethodName: "Consolidate", Handler: _Goodmatch_Consolidate_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "goodmatch.proto", }
Goodmatch_ServiceDesc is the grpc.ServiceDesc for Goodmatch service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterGoodmatchHandler ¶
func RegisterGoodmatchHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterGoodmatchHandler registers the http handlers for service Goodmatch to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterGoodmatchHandlerClient ¶
func RegisterGoodmatchHandlerClient(ctx context.Context, mux *runtime.ServeMux, client GoodmatchClient) error
RegisterGoodmatchHandlerClient registers the http handlers for service Goodmatch to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "GoodmatchClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "GoodmatchClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "GoodmatchClient" to call the correct interceptors.
func RegisterGoodmatchHandlerFromEndpoint ¶
func RegisterGoodmatchHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterGoodmatchHandlerFromEndpoint is same as RegisterGoodmatchHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterGoodmatchHandlerServer ¶
func RegisterGoodmatchHandlerServer(ctx context.Context, mux *runtime.ServeMux, server GoodmatchServer) error
RegisterGoodmatchHandlerServer registers the http handlers for service Goodmatch to "mux". UnaryRPC :call GoodmatchServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterGoodmatchHandlerFromEndpoint instead.
func RegisterGoodmatchServer ¶
func RegisterGoodmatchServer(s grpc.ServiceRegistrar, srv GoodmatchServer)
Types ¶
type ClassifyRequest ¶
type ClassifyRequest struct { Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` QueryForClassification *QueryForClassification `` /* 129-byte string literal not displayed */ // contains filtered or unexported fields }
ClassifyParameters holds parameters to Classify
func (*ClassifyRequest) Descriptor
deprecated
func (*ClassifyRequest) Descriptor() ([]byte, []int)
Deprecated: Use ClassifyRequest.ProtoReflect.Descriptor instead.
func (*ClassifyRequest) GetNamespace ¶
func (x *ClassifyRequest) GetNamespace() string
func (*ClassifyRequest) GetQueryForClassification ¶
func (x *ClassifyRequest) GetQueryForClassification() *QueryForClassification
func (*ClassifyRequest) ProtoMessage ¶
func (*ClassifyRequest) ProtoMessage()
func (*ClassifyRequest) ProtoReflect ¶
func (x *ClassifyRequest) ProtoReflect() protoreflect.Message
func (*ClassifyRequest) Reset ¶
func (x *ClassifyRequest) Reset()
func (*ClassifyRequest) String ¶
func (x *ClassifyRequest) String() string
type ClassifyResponse ¶
type ClassifyResponse struct { Data *SearchDocumentTagsData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` Errors *ResponseErrors `protobuf:"bytes,2,opt,name=errors,proto3" json:"errors,omitempty"` // contains filtered or unexported fields }
func (*ClassifyResponse) Descriptor
deprecated
func (*ClassifyResponse) Descriptor() ([]byte, []int)
Deprecated: Use ClassifyResponse.ProtoReflect.Descriptor instead.
func (*ClassifyResponse) GetData ¶
func (x *ClassifyResponse) GetData() *SearchDocumentTagsData
func (*ClassifyResponse) GetErrors ¶
func (x *ClassifyResponse) GetErrors() *ResponseErrors
func (*ClassifyResponse) ProtoMessage ¶
func (*ClassifyResponse) ProtoMessage()
func (*ClassifyResponse) ProtoReflect ¶
func (x *ClassifyResponse) ProtoReflect() protoreflect.Message
func (*ClassifyResponse) Reset ¶
func (x *ClassifyResponse) Reset()
func (*ClassifyResponse) String ¶
func (x *ClassifyResponse) String() string
type ConsolidateRequest ¶
type ConsolidateRequest struct { Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // contains filtered or unexported fields }
ConsolidateParameters holds parameters to Consolidate
func (*ConsolidateRequest) Descriptor
deprecated
func (*ConsolidateRequest) Descriptor() ([]byte, []int)
Deprecated: Use ConsolidateRequest.ProtoReflect.Descriptor instead.
func (*ConsolidateRequest) GetNamespace ¶
func (x *ConsolidateRequest) GetNamespace() string
func (*ConsolidateRequest) ProtoMessage ¶
func (*ConsolidateRequest) ProtoMessage()
func (*ConsolidateRequest) ProtoReflect ¶
func (x *ConsolidateRequest) ProtoReflect() protoreflect.Message
func (*ConsolidateRequest) Reset ¶
func (x *ConsolidateRequest) Reset()
func (*ConsolidateRequest) String ¶
func (x *ConsolidateRequest) String() string
type ConsolidateResponse ¶
type ConsolidateResponse struct { Errors *ResponseErrors `protobuf:"bytes,1,opt,name=errors,proto3" json:"errors,omitempty"` // contains filtered or unexported fields }
func (*ConsolidateResponse) Descriptor
deprecated
func (*ConsolidateResponse) Descriptor() ([]byte, []int)
Deprecated: Use ConsolidateResponse.ProtoReflect.Descriptor instead.
func (*ConsolidateResponse) GetErrors ¶
func (x *ConsolidateResponse) GetErrors() *ResponseErrors
func (*ConsolidateResponse) ProtoMessage ¶
func (*ConsolidateResponse) ProtoMessage()
func (*ConsolidateResponse) ProtoReflect ¶
func (x *ConsolidateResponse) ProtoReflect() protoreflect.Message
func (*ConsolidateResponse) Reset ¶
func (x *ConsolidateResponse) Reset()
func (*ConsolidateResponse) String ¶
func (x *ConsolidateResponse) String() string
type CreateNamespaceRequest ¶
type CreateNamespaceRequest struct { Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // contains filtered or unexported fields }
CreateNamespaceParameters holds parameters to CreateNamespace
func (*CreateNamespaceRequest) Descriptor
deprecated
func (*CreateNamespaceRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateNamespaceRequest.ProtoReflect.Descriptor instead.
func (*CreateNamespaceRequest) GetNamespace ¶
func (x *CreateNamespaceRequest) GetNamespace() string
func (*CreateNamespaceRequest) ProtoMessage ¶
func (*CreateNamespaceRequest) ProtoMessage()
func (*CreateNamespaceRequest) ProtoReflect ¶
func (x *CreateNamespaceRequest) ProtoReflect() protoreflect.Message
func (*CreateNamespaceRequest) Reset ¶
func (x *CreateNamespaceRequest) Reset()
func (*CreateNamespaceRequest) String ¶
func (x *CreateNamespaceRequest) String() string
type CreateNamespaceResponse ¶
type CreateNamespaceResponse struct { Errors *ResponseErrors `protobuf:"bytes,1,opt,name=errors,proto3" json:"errors,omitempty"` // contains filtered or unexported fields }
func (*CreateNamespaceResponse) Descriptor
deprecated
func (*CreateNamespaceResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateNamespaceResponse.ProtoReflect.Descriptor instead.
func (*CreateNamespaceResponse) GetErrors ¶
func (x *CreateNamespaceResponse) GetErrors() *ResponseErrors
func (*CreateNamespaceResponse) ProtoMessage ¶
func (*CreateNamespaceResponse) ProtoMessage()
func (*CreateNamespaceResponse) ProtoReflect ¶
func (x *CreateNamespaceResponse) ProtoReflect() protoreflect.Message
func (*CreateNamespaceResponse) Reset ¶
func (x *CreateNamespaceResponse) Reset()
func (*CreateNamespaceResponse) String ¶
func (x *CreateNamespaceResponse) String() string
type DeleteDocumentRequest ¶
type DeleteDocumentRequest struct { Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` DocumentId string `protobuf:"bytes,2,opt,name=document_id,json=documentId,proto3" json:"document_id,omitempty"` // contains filtered or unexported fields }
DeleteDocumentParameters holds parameters to DeleteDocument
func (*DeleteDocumentRequest) Descriptor
deprecated
func (*DeleteDocumentRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteDocumentRequest.ProtoReflect.Descriptor instead.
func (*DeleteDocumentRequest) GetDocumentId ¶
func (x *DeleteDocumentRequest) GetDocumentId() string
func (*DeleteDocumentRequest) GetNamespace ¶
func (x *DeleteDocumentRequest) GetNamespace() string
func (*DeleteDocumentRequest) ProtoMessage ¶
func (*DeleteDocumentRequest) ProtoMessage()
func (*DeleteDocumentRequest) ProtoReflect ¶
func (x *DeleteDocumentRequest) ProtoReflect() protoreflect.Message
func (*DeleteDocumentRequest) Reset ¶
func (x *DeleteDocumentRequest) Reset()
func (*DeleteDocumentRequest) String ¶
func (x *DeleteDocumentRequest) String() string
type DeleteDocumentResponse ¶
type DeleteDocumentResponse struct { Errors *ResponseErrors `protobuf:"bytes,1,opt,name=errors,proto3" json:"errors,omitempty"` // contains filtered or unexported fields }
func (*DeleteDocumentResponse) Descriptor
deprecated
func (*DeleteDocumentResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteDocumentResponse.ProtoReflect.Descriptor instead.
func (*DeleteDocumentResponse) GetErrors ¶
func (x *DeleteDocumentResponse) GetErrors() *ResponseErrors
func (*DeleteDocumentResponse) ProtoMessage ¶
func (*DeleteDocumentResponse) ProtoMessage()
func (*DeleteDocumentResponse) ProtoReflect ¶
func (x *DeleteDocumentResponse) ProtoReflect() protoreflect.Message
func (*DeleteDocumentResponse) Reset ¶
func (x *DeleteDocumentResponse) Reset()
func (*DeleteDocumentResponse) String ¶
func (x *DeleteDocumentResponse) String() string
type DeleteNamespaceRequest ¶
type DeleteNamespaceRequest struct { Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // contains filtered or unexported fields }
DeleteNamespaceParameters holds parameters to DeleteNamespace
func (*DeleteNamespaceRequest) Descriptor
deprecated
func (*DeleteNamespaceRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteNamespaceRequest.ProtoReflect.Descriptor instead.
func (*DeleteNamespaceRequest) GetNamespace ¶
func (x *DeleteNamespaceRequest) GetNamespace() string
func (*DeleteNamespaceRequest) ProtoMessage ¶
func (*DeleteNamespaceRequest) ProtoMessage()
func (*DeleteNamespaceRequest) ProtoReflect ¶
func (x *DeleteNamespaceRequest) ProtoReflect() protoreflect.Message
func (*DeleteNamespaceRequest) Reset ¶
func (x *DeleteNamespaceRequest) Reset()
func (*DeleteNamespaceRequest) String ¶
func (x *DeleteNamespaceRequest) String() string
type DeleteNamespaceResponse ¶
type DeleteNamespaceResponse struct { Errors *ResponseErrors `protobuf:"bytes,1,opt,name=errors,proto3" json:"errors,omitempty"` // contains filtered or unexported fields }
func (*DeleteNamespaceResponse) Descriptor
deprecated
func (*DeleteNamespaceResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteNamespaceResponse.ProtoReflect.Descriptor instead.
func (*DeleteNamespaceResponse) GetErrors ¶
func (x *DeleteNamespaceResponse) GetErrors() *ResponseErrors
func (*DeleteNamespaceResponse) ProtoMessage ¶
func (*DeleteNamespaceResponse) ProtoMessage()
func (*DeleteNamespaceResponse) ProtoReflect ¶
func (x *DeleteNamespaceResponse) ProtoReflect() protoreflect.Message
func (*DeleteNamespaceResponse) Reset ¶
func (x *DeleteNamespaceResponse) Reset()
func (*DeleteNamespaceResponse) String ¶
func (x *DeleteNamespaceResponse) String() string
type Document ¶
type Document struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Body string `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` Tags []string `protobuf:"bytes,3,rep,name=tags,proto3" json:"tags,omitempty"` // contains filtered or unexported fields }
func (*Document) Descriptor
deprecated
func (*Document) ProtoMessage ¶
func (*Document) ProtoMessage()
func (*Document) ProtoReflect ¶
func (x *Document) ProtoReflect() protoreflect.Message
type DocumentDraft ¶
type DocumentDraft struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Body string `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` Tags []string `protobuf:"bytes,3,rep,name=tags,proto3" json:"tags,omitempty"` // contains filtered or unexported fields }
func (*DocumentDraft) Descriptor
deprecated
func (*DocumentDraft) Descriptor() ([]byte, []int)
Deprecated: Use DocumentDraft.ProtoReflect.Descriptor instead.
func (*DocumentDraft) GetBody ¶
func (x *DocumentDraft) GetBody() string
func (*DocumentDraft) GetTags ¶
func (x *DocumentDraft) GetTags() []string
func (*DocumentDraft) GetTitle ¶
func (x *DocumentDraft) GetTitle() string
func (*DocumentDraft) ProtoMessage ¶
func (*DocumentDraft) ProtoMessage()
func (*DocumentDraft) ProtoReflect ¶
func (x *DocumentDraft) ProtoReflect() protoreflect.Message
func (*DocumentDraft) Reset ¶
func (x *DocumentDraft) Reset()
func (*DocumentDraft) String ¶
func (x *DocumentDraft) String() string
type GetDocumentData ¶
type GetDocumentData struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Document *Document `protobuf:"bytes,2,opt,name=document,proto3" json:"document,omitempty"` // contains filtered or unexported fields }
func (*GetDocumentData) Descriptor
deprecated
func (*GetDocumentData) Descriptor() ([]byte, []int)
Deprecated: Use GetDocumentData.ProtoReflect.Descriptor instead.
func (*GetDocumentData) GetDocument ¶
func (x *GetDocumentData) GetDocument() *Document
func (*GetDocumentData) GetId ¶
func (x *GetDocumentData) GetId() string
func (*GetDocumentData) ProtoMessage ¶
func (*GetDocumentData) ProtoMessage()
func (*GetDocumentData) ProtoReflect ¶
func (x *GetDocumentData) ProtoReflect() protoreflect.Message
func (*GetDocumentData) Reset ¶
func (x *GetDocumentData) Reset()
func (*GetDocumentData) String ¶
func (x *GetDocumentData) String() string
type GetDocumentRequest ¶
type GetDocumentRequest struct { Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` DocumentId string `protobuf:"bytes,2,opt,name=document_id,json=documentId,proto3" json:"document_id,omitempty"` // contains filtered or unexported fields }
GetDocumentParameters holds parameters to GetDocument
func (*GetDocumentRequest) Descriptor
deprecated
func (*GetDocumentRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetDocumentRequest.ProtoReflect.Descriptor instead.
func (*GetDocumentRequest) GetDocumentId ¶
func (x *GetDocumentRequest) GetDocumentId() string
func (*GetDocumentRequest) GetNamespace ¶
func (x *GetDocumentRequest) GetNamespace() string
func (*GetDocumentRequest) ProtoMessage ¶
func (*GetDocumentRequest) ProtoMessage()
func (*GetDocumentRequest) ProtoReflect ¶
func (x *GetDocumentRequest) ProtoReflect() protoreflect.Message
func (*GetDocumentRequest) Reset ¶
func (x *GetDocumentRequest) Reset()
func (*GetDocumentRequest) String ¶
func (x *GetDocumentRequest) String() string
type GetDocumentResponse ¶
type GetDocumentResponse struct { Data *GetDocumentData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` Errors *ResponseErrors `protobuf:"bytes,2,opt,name=errors,proto3" json:"errors,omitempty"` // contains filtered or unexported fields }
func (*GetDocumentResponse) Descriptor
deprecated
func (*GetDocumentResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetDocumentResponse.ProtoReflect.Descriptor instead.
func (*GetDocumentResponse) GetData ¶
func (x *GetDocumentResponse) GetData() *GetDocumentData
func (*GetDocumentResponse) GetErrors ¶
func (x *GetDocumentResponse) GetErrors() *ResponseErrors
func (*GetDocumentResponse) ProtoMessage ¶
func (*GetDocumentResponse) ProtoMessage()
func (*GetDocumentResponse) ProtoReflect ¶
func (x *GetDocumentResponse) ProtoReflect() protoreflect.Message
func (*GetDocumentResponse) Reset ¶
func (x *GetDocumentResponse) Reset()
func (*GetDocumentResponse) String ¶
func (x *GetDocumentResponse) String() string
type GetDocumentsData ¶
type GetDocumentsData struct { Documents []*GetDocumentsItem `protobuf:"bytes,1,rep,name=documents,proto3" json:"documents,omitempty"` // contains filtered or unexported fields }
func (*GetDocumentsData) Descriptor
deprecated
func (*GetDocumentsData) Descriptor() ([]byte, []int)
Deprecated: Use GetDocumentsData.ProtoReflect.Descriptor instead.
func (*GetDocumentsData) GetDocuments ¶
func (x *GetDocumentsData) GetDocuments() []*GetDocumentsItem
func (*GetDocumentsData) ProtoMessage ¶
func (*GetDocumentsData) ProtoMessage()
func (*GetDocumentsData) ProtoReflect ¶
func (x *GetDocumentsData) ProtoReflect() protoreflect.Message
func (*GetDocumentsData) Reset ¶
func (x *GetDocumentsData) Reset()
func (*GetDocumentsData) String ¶
func (x *GetDocumentsData) String() string
type GetDocumentsItem ¶
type GetDocumentsItem struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Document *Document `protobuf:"bytes,2,opt,name=document,proto3" json:"document,omitempty"` // contains filtered or unexported fields }
func (*GetDocumentsItem) Descriptor
deprecated
func (*GetDocumentsItem) Descriptor() ([]byte, []int)
Deprecated: Use GetDocumentsItem.ProtoReflect.Descriptor instead.
func (*GetDocumentsItem) GetDocument ¶
func (x *GetDocumentsItem) GetDocument() *Document
func (*GetDocumentsItem) GetId ¶
func (x *GetDocumentsItem) GetId() string
func (*GetDocumentsItem) ProtoMessage ¶
func (*GetDocumentsItem) ProtoMessage()
func (*GetDocumentsItem) ProtoReflect ¶
func (x *GetDocumentsItem) ProtoReflect() protoreflect.Message
func (*GetDocumentsItem) Reset ¶
func (x *GetDocumentsItem) Reset()
func (*GetDocumentsItem) String ¶
func (x *GetDocumentsItem) String() string
type GetDocumentsRequest ¶
type GetDocumentsRequest struct { Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` First int64 `protobuf:"varint,2,opt,name=first,proto3" json:"first,omitempty"` After string `protobuf:"bytes,3,opt,name=after,proto3" json:"after,omitempty"` // contains filtered or unexported fields }
GetDocumentsParameters holds parameters to GetDocuments
func (*GetDocumentsRequest) Descriptor
deprecated
func (*GetDocumentsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetDocumentsRequest.ProtoReflect.Descriptor instead.
func (*GetDocumentsRequest) GetAfter ¶
func (x *GetDocumentsRequest) GetAfter() string
func (*GetDocumentsRequest) GetFirst ¶
func (x *GetDocumentsRequest) GetFirst() int64
func (*GetDocumentsRequest) GetNamespace ¶
func (x *GetDocumentsRequest) GetNamespace() string
func (*GetDocumentsRequest) ProtoMessage ¶
func (*GetDocumentsRequest) ProtoMessage()
func (*GetDocumentsRequest) ProtoReflect ¶
func (x *GetDocumentsRequest) ProtoReflect() protoreflect.Message
func (*GetDocumentsRequest) Reset ¶
func (x *GetDocumentsRequest) Reset()
func (*GetDocumentsRequest) String ¶
func (x *GetDocumentsRequest) String() string
type GetDocumentsResponse ¶
type GetDocumentsResponse struct { Data *GetDocumentsData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` Errors *ResponseErrors `protobuf:"bytes,2,opt,name=errors,proto3" json:"errors,omitempty"` // contains filtered or unexported fields }
func (*GetDocumentsResponse) Descriptor
deprecated
func (*GetDocumentsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetDocumentsResponse.ProtoReflect.Descriptor instead.
func (*GetDocumentsResponse) GetData ¶
func (x *GetDocumentsResponse) GetData() *GetDocumentsData
func (*GetDocumentsResponse) GetErrors ¶
func (x *GetDocumentsResponse) GetErrors() *ResponseErrors
func (*GetDocumentsResponse) ProtoMessage ¶
func (*GetDocumentsResponse) ProtoMessage()
func (*GetDocumentsResponse) ProtoReflect ¶
func (x *GetDocumentsResponse) ProtoReflect() protoreflect.Message
func (*GetDocumentsResponse) Reset ¶
func (x *GetDocumentsResponse) Reset()
func (*GetDocumentsResponse) String ¶
func (x *GetDocumentsResponse) String() string
type GetNamespacesData ¶
type GetNamespacesData struct { Namespaces []string `protobuf:"bytes,1,rep,name=namespaces,proto3" json:"namespaces,omitempty"` // contains filtered or unexported fields }
func (*GetNamespacesData) Descriptor
deprecated
func (*GetNamespacesData) Descriptor() ([]byte, []int)
Deprecated: Use GetNamespacesData.ProtoReflect.Descriptor instead.
func (*GetNamespacesData) GetNamespaces ¶
func (x *GetNamespacesData) GetNamespaces() []string
func (*GetNamespacesData) ProtoMessage ¶
func (*GetNamespacesData) ProtoMessage()
func (*GetNamespacesData) ProtoReflect ¶
func (x *GetNamespacesData) ProtoReflect() protoreflect.Message
func (*GetNamespacesData) Reset ¶
func (x *GetNamespacesData) Reset()
func (*GetNamespacesData) String ¶
func (x *GetNamespacesData) String() string
type GetNamespacesResponse ¶
type GetNamespacesResponse struct { Data *GetNamespacesData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` Errors *ResponseErrors `protobuf:"bytes,2,opt,name=errors,proto3" json:"errors,omitempty"` // contains filtered or unexported fields }
func (*GetNamespacesResponse) Descriptor
deprecated
func (*GetNamespacesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetNamespacesResponse.ProtoReflect.Descriptor instead.
func (*GetNamespacesResponse) GetData ¶
func (x *GetNamespacesResponse) GetData() *GetNamespacesData
func (*GetNamespacesResponse) GetErrors ¶
func (x *GetNamespacesResponse) GetErrors() *ResponseErrors
func (*GetNamespacesResponse) ProtoMessage ¶
func (*GetNamespacesResponse) ProtoMessage()
func (*GetNamespacesResponse) ProtoReflect ¶
func (x *GetNamespacesResponse) ProtoReflect() protoreflect.Message
func (*GetNamespacesResponse) Reset ¶
func (x *GetNamespacesResponse) Reset()
func (*GetNamespacesResponse) String ¶
func (x *GetNamespacesResponse) String() string
type GoodmatchClient ¶
type GoodmatchClient interface { GetDocument(ctx context.Context, in *GetDocumentRequest, opts ...grpc.CallOption) (*GetDocumentResponse, error) DeleteDocument(ctx context.Context, in *DeleteDocumentRequest, opts ...grpc.CallOption) (*DeleteDocumentResponse, error) GetDocuments(ctx context.Context, in *GetDocumentsRequest, opts ...grpc.CallOption) (*GetDocumentsResponse, error) CreateNamespace(ctx context.Context, in *CreateNamespaceRequest, opts ...grpc.CallOption) (*CreateNamespaceResponse, error) InsertDocuments(ctx context.Context, in *InsertDocumentsRequest, opts ...grpc.CallOption) (*InsertDocumentsResponse, error) DeleteNamespace(ctx context.Context, in *DeleteNamespaceRequest, opts ...grpc.CallOption) (*DeleteNamespaceResponse, error) GetNamespaces(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetNamespacesResponse, error) SearchDocuments(ctx context.Context, in *SearchDocumentsRequest, opts ...grpc.CallOption) (*SearchDocumentsResponse, error) Classify(ctx context.Context, in *ClassifyRequest, opts ...grpc.CallOption) (*ClassifyResponse, error) Consolidate(ctx context.Context, in *ConsolidateRequest, opts ...grpc.CallOption) (*ConsolidateResponse, error) }
GoodmatchClient is the client API for Goodmatch 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 NewGoodmatchClient ¶
func NewGoodmatchClient(cc grpc.ClientConnInterface) GoodmatchClient
type GoodmatchServer ¶
type GoodmatchServer interface { GetDocument(context.Context, *GetDocumentRequest) (*GetDocumentResponse, error) DeleteDocument(context.Context, *DeleteDocumentRequest) (*DeleteDocumentResponse, error) GetDocuments(context.Context, *GetDocumentsRequest) (*GetDocumentsResponse, error) CreateNamespace(context.Context, *CreateNamespaceRequest) (*CreateNamespaceResponse, error) InsertDocuments(context.Context, *InsertDocumentsRequest) (*InsertDocumentsResponse, error) DeleteNamespace(context.Context, *DeleteNamespaceRequest) (*DeleteNamespaceResponse, error) GetNamespaces(context.Context, *emptypb.Empty) (*GetNamespacesResponse, error) SearchDocuments(context.Context, *SearchDocumentsRequest) (*SearchDocumentsResponse, error) Classify(context.Context, *ClassifyRequest) (*ClassifyResponse, error) Consolidate(context.Context, *ConsolidateRequest) (*ConsolidateResponse, error) // contains filtered or unexported methods }
GoodmatchServer is the server API for Goodmatch service. All implementations must embed UnimplementedGoodmatchServer for forward compatibility
type Highlights ¶
type Highlights struct { Value []*Range `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Highlights) Descriptor
deprecated
func (*Highlights) Descriptor() ([]byte, []int)
Deprecated: Use Highlights.ProtoReflect.Descriptor instead.
func (*Highlights) GetValue ¶
func (x *Highlights) GetValue() []*Range
func (*Highlights) ProtoMessage ¶
func (*Highlights) ProtoMessage()
func (*Highlights) ProtoReflect ¶
func (x *Highlights) ProtoReflect() protoreflect.Message
func (*Highlights) Reset ¶
func (x *Highlights) Reset()
func (*Highlights) String ¶
func (x *Highlights) String() string
type InsertDocumentsData ¶
type InsertDocumentsData struct { DocumentIds []string `protobuf:"bytes,1,rep,name=document_ids,json=documentIds,proto3" json:"document_ids,omitempty"` // contains filtered or unexported fields }
func (*InsertDocumentsData) Descriptor
deprecated
func (*InsertDocumentsData) Descriptor() ([]byte, []int)
Deprecated: Use InsertDocumentsData.ProtoReflect.Descriptor instead.
func (*InsertDocumentsData) GetDocumentIds ¶
func (x *InsertDocumentsData) GetDocumentIds() []string
func (*InsertDocumentsData) ProtoMessage ¶
func (*InsertDocumentsData) ProtoMessage()
func (*InsertDocumentsData) ProtoReflect ¶
func (x *InsertDocumentsData) ProtoReflect() protoreflect.Message
func (*InsertDocumentsData) Reset ¶
func (x *InsertDocumentsData) Reset()
func (*InsertDocumentsData) String ¶
func (x *InsertDocumentsData) String() string
type InsertDocumentsRequest ¶
type InsertDocumentsRequest struct { Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` NewDocuments *NewDocuments `protobuf:"bytes,2,opt,name=new_documents,json=newDocuments,proto3" json:"new_documents,omitempty"` // contains filtered or unexported fields }
InsertDocumentsParameters holds parameters to InsertDocuments
func (*InsertDocumentsRequest) Descriptor
deprecated
func (*InsertDocumentsRequest) Descriptor() ([]byte, []int)
Deprecated: Use InsertDocumentsRequest.ProtoReflect.Descriptor instead.
func (*InsertDocumentsRequest) GetNamespace ¶
func (x *InsertDocumentsRequest) GetNamespace() string
func (*InsertDocumentsRequest) GetNewDocuments ¶
func (x *InsertDocumentsRequest) GetNewDocuments() *NewDocuments
func (*InsertDocumentsRequest) ProtoMessage ¶
func (*InsertDocumentsRequest) ProtoMessage()
func (*InsertDocumentsRequest) ProtoReflect ¶
func (x *InsertDocumentsRequest) ProtoReflect() protoreflect.Message
func (*InsertDocumentsRequest) Reset ¶
func (x *InsertDocumentsRequest) Reset()
func (*InsertDocumentsRequest) String ¶
func (x *InsertDocumentsRequest) String() string
type InsertDocumentsResponse ¶
type InsertDocumentsResponse struct { Data *InsertDocumentsData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` Errors *ResponseErrors `protobuf:"bytes,2,opt,name=errors,proto3" json:"errors,omitempty"` // contains filtered or unexported fields }
func (*InsertDocumentsResponse) Descriptor
deprecated
func (*InsertDocumentsResponse) Descriptor() ([]byte, []int)
Deprecated: Use InsertDocumentsResponse.ProtoReflect.Descriptor instead.
func (*InsertDocumentsResponse) GetData ¶
func (x *InsertDocumentsResponse) GetData() *InsertDocumentsData
func (*InsertDocumentsResponse) GetErrors ¶
func (x *InsertDocumentsResponse) GetErrors() *ResponseErrors
func (*InsertDocumentsResponse) ProtoMessage ¶
func (*InsertDocumentsResponse) ProtoMessage()
func (*InsertDocumentsResponse) ProtoReflect ¶
func (x *InsertDocumentsResponse) ProtoReflect() protoreflect.Message
func (*InsertDocumentsResponse) Reset ¶
func (x *InsertDocumentsResponse) Reset()
func (*InsertDocumentsResponse) String ¶
func (x *InsertDocumentsResponse) String() string
type NewDocuments ¶
type NewDocuments struct { Value []*DocumentDraft `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*NewDocuments) Descriptor
deprecated
func (*NewDocuments) Descriptor() ([]byte, []int)
Deprecated: Use NewDocuments.ProtoReflect.Descriptor instead.
func (*NewDocuments) GetValue ¶
func (x *NewDocuments) GetValue() []*DocumentDraft
func (*NewDocuments) ProtoMessage ¶
func (*NewDocuments) ProtoMessage()
func (*NewDocuments) ProtoReflect ¶
func (x *NewDocuments) ProtoReflect() protoreflect.Message
func (*NewDocuments) Reset ¶
func (x *NewDocuments) Reset()
func (*NewDocuments) String ¶
func (x *NewDocuments) String() string
type Query ¶
type Query struct { Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` Offset int64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` Size int64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"` // contains filtered or unexported fields }
func (*Query) Descriptor
deprecated
func (*Query) ProtoMessage ¶
func (*Query) ProtoMessage()
func (*Query) ProtoReflect ¶
func (x *Query) ProtoReflect() protoreflect.Message
type QueryForClassification ¶
type QueryForClassification struct { Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` K int64 `protobuf:"varint,2,opt,name=k,proto3" json:"k,omitempty"` // contains filtered or unexported fields }
func (*QueryForClassification) Descriptor
deprecated
func (*QueryForClassification) Descriptor() ([]byte, []int)
Deprecated: Use QueryForClassification.ProtoReflect.Descriptor instead.
func (*QueryForClassification) GetK ¶
func (x *QueryForClassification) GetK() int64
func (*QueryForClassification) GetText ¶
func (x *QueryForClassification) GetText() string
func (*QueryForClassification) ProtoMessage ¶
func (*QueryForClassification) ProtoMessage()
func (*QueryForClassification) ProtoReflect ¶
func (x *QueryForClassification) ProtoReflect() protoreflect.Message
func (*QueryForClassification) Reset ¶
func (x *QueryForClassification) Reset()
func (*QueryForClassification) String ¶
func (x *QueryForClassification) String() string
type Range ¶
type Range struct { Start int32 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"` End int32 `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"` Text string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"` RelevanceScore float32 `protobuf:"fixed32,4,opt,name=relevance_score,json=relevanceScore,proto3" json:"relevance_score,omitempty"` // contains filtered or unexported fields }
func (*Range) Descriptor
deprecated
func (*Range) GetRelevanceScore ¶
func (*Range) ProtoMessage ¶
func (*Range) ProtoMessage()
func (*Range) ProtoReflect ¶
func (x *Range) ProtoReflect() protoreflect.Message
type ResponseError ¶
type ResponseError struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*ResponseError) Descriptor
deprecated
func (*ResponseError) Descriptor() ([]byte, []int)
Deprecated: Use ResponseError.ProtoReflect.Descriptor instead.
func (*ResponseError) GetMessage ¶
func (x *ResponseError) GetMessage() string
func (*ResponseError) ProtoMessage ¶
func (*ResponseError) ProtoMessage()
func (*ResponseError) ProtoReflect ¶
func (x *ResponseError) ProtoReflect() protoreflect.Message
func (*ResponseError) Reset ¶
func (x *ResponseError) Reset()
func (*ResponseError) String ¶
func (x *ResponseError) String() string
type ResponseErrors ¶
type ResponseErrors struct { Value []*ResponseError `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*ResponseErrors) Descriptor
deprecated
func (*ResponseErrors) Descriptor() ([]byte, []int)
Deprecated: Use ResponseErrors.ProtoReflect.Descriptor instead.
func (*ResponseErrors) GetValue ¶
func (x *ResponseErrors) GetValue() []*ResponseError
func (*ResponseErrors) ProtoMessage ¶
func (*ResponseErrors) ProtoMessage()
func (*ResponseErrors) ProtoReflect ¶
func (x *ResponseErrors) ProtoReflect() protoreflect.Message
func (*ResponseErrors) Reset ¶
func (x *ResponseErrors) Reset()
func (*ResponseErrors) String ¶
func (x *ResponseErrors) String() string
type SearchDocumentTagsData ¶
type SearchDocumentTagsData struct { Hits []*SearchDocumentTagsHit `protobuf:"bytes,1,rep,name=hits,proto3" json:"hits,omitempty"` // contains filtered or unexported fields }
func (*SearchDocumentTagsData) Descriptor
deprecated
func (*SearchDocumentTagsData) Descriptor() ([]byte, []int)
Deprecated: Use SearchDocumentTagsData.ProtoReflect.Descriptor instead.
func (*SearchDocumentTagsData) GetHits ¶
func (x *SearchDocumentTagsData) GetHits() []*SearchDocumentTagsHit
func (*SearchDocumentTagsData) ProtoMessage ¶
func (*SearchDocumentTagsData) ProtoMessage()
func (*SearchDocumentTagsData) ProtoReflect ¶
func (x *SearchDocumentTagsData) ProtoReflect() protoreflect.Message
func (*SearchDocumentTagsData) Reset ¶
func (x *SearchDocumentTagsData) Reset()
func (*SearchDocumentTagsData) String ¶
func (x *SearchDocumentTagsData) String() string
type SearchDocumentTagsHit ¶
type SearchDocumentTagsHit struct { Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"` Score float32 `protobuf:"fixed32,2,opt,name=score,proto3" json:"score,omitempty"` // contains filtered or unexported fields }
func (*SearchDocumentTagsHit) Descriptor
deprecated
func (*SearchDocumentTagsHit) Descriptor() ([]byte, []int)
Deprecated: Use SearchDocumentTagsHit.ProtoReflect.Descriptor instead.
func (*SearchDocumentTagsHit) GetScore ¶
func (x *SearchDocumentTagsHit) GetScore() float32
func (*SearchDocumentTagsHit) GetTag ¶
func (x *SearchDocumentTagsHit) GetTag() string
func (*SearchDocumentTagsHit) ProtoMessage ¶
func (*SearchDocumentTagsHit) ProtoMessage()
func (*SearchDocumentTagsHit) ProtoReflect ¶
func (x *SearchDocumentTagsHit) ProtoReflect() protoreflect.Message
func (*SearchDocumentTagsHit) Reset ¶
func (x *SearchDocumentTagsHit) Reset()
func (*SearchDocumentTagsHit) String ¶
func (x *SearchDocumentTagsHit) String() string
type SearchDocumentsData ¶
type SearchDocumentsData struct { Hits []*SearchDocumentsHit `protobuf:"bytes,1,rep,name=hits,proto3" json:"hits,omitempty"` // contains filtered or unexported fields }
func (*SearchDocumentsData) Descriptor
deprecated
func (*SearchDocumentsData) Descriptor() ([]byte, []int)
Deprecated: Use SearchDocumentsData.ProtoReflect.Descriptor instead.
func (*SearchDocumentsData) GetHits ¶
func (x *SearchDocumentsData) GetHits() []*SearchDocumentsHit
func (*SearchDocumentsData) ProtoMessage ¶
func (*SearchDocumentsData) ProtoMessage()
func (*SearchDocumentsData) ProtoReflect ¶
func (x *SearchDocumentsData) ProtoReflect() protoreflect.Message
func (*SearchDocumentsData) Reset ¶
func (x *SearchDocumentsData) Reset()
func (*SearchDocumentsData) String ¶
func (x *SearchDocumentsData) String() string
type SearchDocumentsHit ¶
type SearchDocumentsHit struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Score float32 `protobuf:"fixed32,2,opt,name=score,proto3" json:"score,omitempty"` Document *Document `protobuf:"bytes,3,opt,name=document,proto3" json:"document,omitempty"` TitleHighlights *Highlights `protobuf:"bytes,4,opt,name=title_highlights,json=titleHighlights,proto3" json:"title_highlights,omitempty"` BodyHighlights *Highlights `protobuf:"bytes,5,opt,name=body_highlights,json=bodyHighlights,proto3" json:"body_highlights,omitempty"` // contains filtered or unexported fields }
func (*SearchDocumentsHit) Descriptor
deprecated
func (*SearchDocumentsHit) Descriptor() ([]byte, []int)
Deprecated: Use SearchDocumentsHit.ProtoReflect.Descriptor instead.
func (*SearchDocumentsHit) GetBodyHighlights ¶
func (x *SearchDocumentsHit) GetBodyHighlights() *Highlights
func (*SearchDocumentsHit) GetDocument ¶
func (x *SearchDocumentsHit) GetDocument() *Document
func (*SearchDocumentsHit) GetId ¶
func (x *SearchDocumentsHit) GetId() string
func (*SearchDocumentsHit) GetScore ¶
func (x *SearchDocumentsHit) GetScore() float32
func (*SearchDocumentsHit) GetTitleHighlights ¶
func (x *SearchDocumentsHit) GetTitleHighlights() *Highlights
func (*SearchDocumentsHit) ProtoMessage ¶
func (*SearchDocumentsHit) ProtoMessage()
func (*SearchDocumentsHit) ProtoReflect ¶
func (x *SearchDocumentsHit) ProtoReflect() protoreflect.Message
func (*SearchDocumentsHit) Reset ¶
func (x *SearchDocumentsHit) Reset()
func (*SearchDocumentsHit) String ¶
func (x *SearchDocumentsHit) String() string
type SearchDocumentsRequest ¶
type SearchDocumentsRequest struct { Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` Query *Query `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` // contains filtered or unexported fields }
SearchDocumentsParameters holds parameters to SearchDocuments
func (*SearchDocumentsRequest) Descriptor
deprecated
func (*SearchDocumentsRequest) Descriptor() ([]byte, []int)
Deprecated: Use SearchDocumentsRequest.ProtoReflect.Descriptor instead.
func (*SearchDocumentsRequest) GetNamespace ¶
func (x *SearchDocumentsRequest) GetNamespace() string
func (*SearchDocumentsRequest) GetQuery ¶
func (x *SearchDocumentsRequest) GetQuery() *Query
func (*SearchDocumentsRequest) ProtoMessage ¶
func (*SearchDocumentsRequest) ProtoMessage()
func (*SearchDocumentsRequest) ProtoReflect ¶
func (x *SearchDocumentsRequest) ProtoReflect() protoreflect.Message
func (*SearchDocumentsRequest) Reset ¶
func (x *SearchDocumentsRequest) Reset()
func (*SearchDocumentsRequest) String ¶
func (x *SearchDocumentsRequest) String() string
type SearchDocumentsResponse ¶
type SearchDocumentsResponse struct { Data *SearchDocumentsData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` Errors *ResponseErrors `protobuf:"bytes,2,opt,name=errors,proto3" json:"errors,omitempty"` // contains filtered or unexported fields }
func (*SearchDocumentsResponse) Descriptor
deprecated
func (*SearchDocumentsResponse) Descriptor() ([]byte, []int)
Deprecated: Use SearchDocumentsResponse.ProtoReflect.Descriptor instead.
func (*SearchDocumentsResponse) GetData ¶
func (x *SearchDocumentsResponse) GetData() *SearchDocumentsData
func (*SearchDocumentsResponse) GetErrors ¶
func (x *SearchDocumentsResponse) GetErrors() *ResponseErrors
func (*SearchDocumentsResponse) ProtoMessage ¶
func (*SearchDocumentsResponse) ProtoMessage()
func (*SearchDocumentsResponse) ProtoReflect ¶
func (x *SearchDocumentsResponse) ProtoReflect() protoreflect.Message
func (*SearchDocumentsResponse) Reset ¶
func (x *SearchDocumentsResponse) Reset()
func (*SearchDocumentsResponse) String ¶
func (x *SearchDocumentsResponse) String() string
type UnimplementedGoodmatchServer ¶
type UnimplementedGoodmatchServer struct { }
UnimplementedGoodmatchServer must be embedded to have forward compatible implementations.
func (UnimplementedGoodmatchServer) Classify ¶
func (UnimplementedGoodmatchServer) Classify(context.Context, *ClassifyRequest) (*ClassifyResponse, error)
func (UnimplementedGoodmatchServer) Consolidate ¶
func (UnimplementedGoodmatchServer) Consolidate(context.Context, *ConsolidateRequest) (*ConsolidateResponse, error)
func (UnimplementedGoodmatchServer) CreateNamespace ¶
func (UnimplementedGoodmatchServer) CreateNamespace(context.Context, *CreateNamespaceRequest) (*CreateNamespaceResponse, error)
func (UnimplementedGoodmatchServer) DeleteDocument ¶
func (UnimplementedGoodmatchServer) DeleteDocument(context.Context, *DeleteDocumentRequest) (*DeleteDocumentResponse, error)
func (UnimplementedGoodmatchServer) DeleteNamespace ¶
func (UnimplementedGoodmatchServer) DeleteNamespace(context.Context, *DeleteNamespaceRequest) (*DeleteNamespaceResponse, error)
func (UnimplementedGoodmatchServer) GetDocument ¶
func (UnimplementedGoodmatchServer) GetDocument(context.Context, *GetDocumentRequest) (*GetDocumentResponse, error)
func (UnimplementedGoodmatchServer) GetDocuments ¶
func (UnimplementedGoodmatchServer) GetDocuments(context.Context, *GetDocumentsRequest) (*GetDocumentsResponse, error)
func (UnimplementedGoodmatchServer) GetNamespaces ¶
func (UnimplementedGoodmatchServer) GetNamespaces(context.Context, *emptypb.Empty) (*GetNamespacesResponse, error)
func (UnimplementedGoodmatchServer) InsertDocuments ¶
func (UnimplementedGoodmatchServer) InsertDocuments(context.Context, *InsertDocumentsRequest) (*InsertDocumentsResponse, error)
func (UnimplementedGoodmatchServer) SearchDocuments ¶
func (UnimplementedGoodmatchServer) SearchDocuments(context.Context, *SearchDocumentsRequest) (*SearchDocumentsResponse, error)
type UnsafeGoodmatchServer ¶
type UnsafeGoodmatchServer interface {
// contains filtered or unexported methods
}
UnsafeGoodmatchServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GoodmatchServer will result in compilation errors.