api

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package api is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

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

Deprecated: Use Document.ProtoReflect.Descriptor instead.

func (*Document) GetBody

func (x *Document) GetBody() string

func (*Document) GetTags

func (x *Document) GetTags() []string

func (*Document) GetTitle

func (x *Document) GetTitle() string

func (*Document) ProtoMessage

func (*Document) ProtoMessage()

func (*Document) ProtoReflect

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

func (*Document) Reset

func (x *Document) Reset()

func (*Document) String

func (x *Document) String() string

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 (*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

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

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

Deprecated: Use Query.ProtoReflect.Descriptor instead.

func (*Query) GetOffset

func (x *Query) GetOffset() int64

func (*Query) GetSize

func (x *Query) GetSize() int64

func (*Query) GetText

func (x *Query) GetText() string

func (*Query) ProtoMessage

func (*Query) ProtoMessage()

func (*Query) ProtoReflect

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

func (*Query) Reset

func (x *Query) Reset()

func (*Query) String

func (x *Query) String() string

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

Deprecated: Use Range.ProtoReflect.Descriptor instead.

func (*Range) GetEnd

func (x *Range) GetEnd() int32

func (*Range) GetRelevanceScore

func (x *Range) GetRelevanceScore() float32

func (*Range) GetStart

func (x *Range) GetStart() int32

func (*Range) GetText

func (x *Range) GetText() string

func (*Range) ProtoMessage

func (*Range) ProtoMessage()

func (*Range) ProtoReflect

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

func (*Range) Reset

func (x *Range) Reset()

func (*Range) String

func (x *Range) String() string

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 (*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 (*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) Consolidate

func (UnimplementedGoodmatchServer) CreateNamespace

func (UnimplementedGoodmatchServer) DeleteDocument

func (UnimplementedGoodmatchServer) DeleteNamespace

func (UnimplementedGoodmatchServer) GetDocument

func (UnimplementedGoodmatchServer) GetDocuments

func (UnimplementedGoodmatchServer) GetNamespaces

func (UnimplementedGoodmatchServer) InsertDocuments

func (UnimplementedGoodmatchServer) SearchDocuments

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.

Jump to

Keyboard shortcuts

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