Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterSearchServer(s grpc.ServiceRegistrar, srv SearchServer)
- type BuildRequest
- func (*BuildRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BuildRequest) GetConfig() *SearchConfig
- func (x *BuildRequest) GetRuntimeStats() bool
- func (x *BuildRequest) GetTimeout() int32
- func (*BuildRequest) ProtoMessage()
- func (x *BuildRequest) ProtoReflect() protoreflect.Message
- func (x *BuildRequest) Reset()
- func (x *BuildRequest) String() string
- type BuildResponse
- func (*BuildResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BuildResponse) GetDocumentCount() uint64
- func (x *BuildResponse) GetTimePerDocument() float64
- func (*BuildResponse) ProtoMessage()
- func (x *BuildResponse) ProtoReflect() protoreflect.Message
- func (x *BuildResponse) Reset()
- func (x *BuildResponse) String() string
- type CouchDBConfig
- func (*CouchDBConfig) Descriptor() ([]byte, []int)deprecated
- func (x *CouchDBConfig) GetHost() string
- func (x *CouchDBConfig) GetPassword() string
- func (x *CouchDBConfig) GetPort() uint32
- func (x *CouchDBConfig) GetUser() string
- func (*CouchDBConfig) ProtoMessage()
- func (x *CouchDBConfig) ProtoReflect() protoreflect.Message
- func (x *CouchDBConfig) Reset()
- func (x *CouchDBConfig) String() string
- type MeiliConfig
- func (*MeiliConfig) Descriptor() ([]byte, []int)deprecated
- func (x *MeiliConfig) GetHost() string
- func (x *MeiliConfig) GetMasterKey() string
- func (x *MeiliConfig) GetPort() uint32
- func (*MeiliConfig) ProtoMessage()
- func (x *MeiliConfig) ProtoReflect() protoreflect.Message
- func (x *MeiliConfig) Reset()
- func (x *MeiliConfig) String() string
- type SearchClient
- type SearchConfig
- func (*SearchConfig) Descriptor() ([]byte, []int)deprecated
- func (x *SearchConfig) GetCouchDb() *CouchDBConfig
- func (x *SearchConfig) GetIndexPath() string
- func (x *SearchConfig) GetMeili() *MeiliConfig
- func (x *SearchConfig) GetProvider() SearchConfig_PROVIDER
- func (*SearchConfig) ProtoMessage()
- func (x *SearchConfig) ProtoReflect() protoreflect.Message
- func (x *SearchConfig) Reset()
- func (x *SearchConfig) String() string
- type SearchConfig_PROVIDER
- func (SearchConfig_PROVIDER) Descriptor() protoreflect.EnumDescriptor
- func (x SearchConfig_PROVIDER) Enum() *SearchConfig_PROVIDER
- func (SearchConfig_PROVIDER) EnumDescriptor() ([]byte, []int)deprecated
- func (x SearchConfig_PROVIDER) Number() protoreflect.EnumNumber
- func (x SearchConfig_PROVIDER) String() string
- func (SearchConfig_PROVIDER) Type() protoreflect.EnumType
- type SearchServer
- type UnimplementedSearchServer
- type UnsafeSearchServer
Constants ¶
const (
Search_BuildIndex_FullMethodName = "/search.Search/BuildIndex"
)
Variables ¶
var ( SearchConfig_PROVIDER_name = map[int32]string{ 0: "MEILI", 1: "BLEVE", } SearchConfig_PROVIDER_value = map[string]int32{ "MEILI": 0, "BLEVE": 1, } )
Enum value maps for SearchConfig_PROVIDER.
var File_search_index_proto protoreflect.FileDescriptor
var Search_ServiceDesc = grpc.ServiceDesc{ ServiceName: "search.Search", HandlerType: (*SearchServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "BuildIndex", Handler: _Search_BuildIndex_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "search/index.proto", }
Search_ServiceDesc is the grpc.ServiceDesc for Search service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSearchServer ¶
func RegisterSearchServer(s grpc.ServiceRegistrar, srv SearchServer)
Types ¶
type BuildRequest ¶
type BuildRequest struct { Timeout int32 `protobuf:"varint,1,opt,name=timeout,proto3" json:"timeout,omitempty"` RuntimeStats bool `protobuf:"varint,2,opt,name=runtime_stats,json=runtimeStats,proto3" json:"runtime_stats,omitempty"` Config *SearchConfig `protobuf:"bytes,3,opt,name=config,proto3" json:"config,omitempty"` // contains filtered or unexported fields }
func (*BuildRequest) Descriptor
deprecated
func (*BuildRequest) Descriptor() ([]byte, []int)
Deprecated: Use BuildRequest.ProtoReflect.Descriptor instead.
func (*BuildRequest) GetConfig ¶ added in v0.2.1
func (x *BuildRequest) GetConfig() *SearchConfig
func (*BuildRequest) GetRuntimeStats ¶
func (x *BuildRequest) GetRuntimeStats() bool
func (*BuildRequest) GetTimeout ¶
func (x *BuildRequest) GetTimeout() int32
func (*BuildRequest) ProtoMessage ¶
func (*BuildRequest) ProtoMessage()
func (*BuildRequest) ProtoReflect ¶
func (x *BuildRequest) ProtoReflect() protoreflect.Message
func (*BuildRequest) Reset ¶
func (x *BuildRequest) Reset()
func (*BuildRequest) String ¶
func (x *BuildRequest) String() string
type BuildResponse ¶
type BuildResponse struct { TimePerDocument float64 `protobuf:"fixed64,1,opt,name=time_per_document,json=timePerDocument,proto3" json:"time_per_document,omitempty"` DocumentCount uint64 `protobuf:"varint,2,opt,name=document_count,json=documentCount,proto3" json:"document_count,omitempty"` // contains filtered or unexported fields }
func (*BuildResponse) Descriptor
deprecated
func (*BuildResponse) Descriptor() ([]byte, []int)
Deprecated: Use BuildResponse.ProtoReflect.Descriptor instead.
func (*BuildResponse) GetDocumentCount ¶
func (x *BuildResponse) GetDocumentCount() uint64
func (*BuildResponse) GetTimePerDocument ¶
func (x *BuildResponse) GetTimePerDocument() float64
func (*BuildResponse) ProtoMessage ¶
func (*BuildResponse) ProtoMessage()
func (*BuildResponse) ProtoReflect ¶
func (x *BuildResponse) ProtoReflect() protoreflect.Message
func (*BuildResponse) Reset ¶
func (x *BuildResponse) Reset()
func (*BuildResponse) String ¶
func (x *BuildResponse) String() string
type CouchDBConfig ¶ added in v0.2.5
type CouchDBConfig struct { Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` User string `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*CouchDBConfig) Descriptor
deprecated
added in
v0.2.5
func (*CouchDBConfig) Descriptor() ([]byte, []int)
Deprecated: Use CouchDBConfig.ProtoReflect.Descriptor instead.
func (*CouchDBConfig) GetHost ¶ added in v0.2.5
func (x *CouchDBConfig) GetHost() string
func (*CouchDBConfig) GetPassword ¶ added in v0.2.5
func (x *CouchDBConfig) GetPassword() string
func (*CouchDBConfig) GetPort ¶ added in v0.2.5
func (x *CouchDBConfig) GetPort() uint32
func (*CouchDBConfig) GetUser ¶ added in v0.2.5
func (x *CouchDBConfig) GetUser() string
func (*CouchDBConfig) ProtoMessage ¶ added in v0.2.5
func (*CouchDBConfig) ProtoMessage()
func (*CouchDBConfig) ProtoReflect ¶ added in v0.2.5
func (x *CouchDBConfig) ProtoReflect() protoreflect.Message
func (*CouchDBConfig) Reset ¶ added in v0.2.5
func (x *CouchDBConfig) Reset()
func (*CouchDBConfig) String ¶ added in v0.2.5
func (x *CouchDBConfig) String() string
type MeiliConfig ¶ added in v0.2.5
type MeiliConfig struct { Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` MasterKey string `protobuf:"bytes,3,opt,name=master_key,json=masterKey,proto3" json:"master_key,omitempty"` // contains filtered or unexported fields }
func (*MeiliConfig) Descriptor
deprecated
added in
v0.2.5
func (*MeiliConfig) Descriptor() ([]byte, []int)
Deprecated: Use MeiliConfig.ProtoReflect.Descriptor instead.
func (*MeiliConfig) GetHost ¶ added in v0.2.5
func (x *MeiliConfig) GetHost() string
func (*MeiliConfig) GetMasterKey ¶ added in v0.2.5
func (x *MeiliConfig) GetMasterKey() string
func (*MeiliConfig) GetPort ¶ added in v0.2.5
func (x *MeiliConfig) GetPort() uint32
func (*MeiliConfig) ProtoMessage ¶ added in v0.2.5
func (*MeiliConfig) ProtoMessage()
func (*MeiliConfig) ProtoReflect ¶ added in v0.2.5
func (x *MeiliConfig) ProtoReflect() protoreflect.Message
func (*MeiliConfig) Reset ¶ added in v0.2.5
func (x *MeiliConfig) Reset()
func (*MeiliConfig) String ¶ added in v0.2.5
func (x *MeiliConfig) String() string
type SearchClient ¶
type SearchClient interface {
BuildIndex(ctx context.Context, in *BuildRequest, opts ...grpc.CallOption) (*BuildResponse, error)
}
SearchClient is the client API for Search 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 NewSearchClient ¶
func NewSearchClient(cc grpc.ClientConnInterface) SearchClient
type SearchConfig ¶ added in v0.2.1
type SearchConfig struct { Provider SearchConfig_PROVIDER `protobuf:"varint,1,opt,name=provider,proto3,enum=search.SearchConfig_PROVIDER" json:"provider,omitempty"` Meili *MeiliConfig `protobuf:"bytes,2,opt,name=meili,proto3,oneof" json:"meili,omitempty"` CouchDb *CouchDBConfig `protobuf:"bytes,3,opt,name=couch_db,json=couchDb,proto3" json:"couch_db,omitempty"` IndexPath string `protobuf:"bytes,4,opt,name=index_path,json=indexPath,proto3" json:"index_path,omitempty"` // contains filtered or unexported fields }
func (*SearchConfig) Descriptor
deprecated
added in
v0.2.1
func (*SearchConfig) Descriptor() ([]byte, []int)
Deprecated: Use SearchConfig.ProtoReflect.Descriptor instead.
func (*SearchConfig) GetCouchDb ¶ added in v0.2.5
func (x *SearchConfig) GetCouchDb() *CouchDBConfig
func (*SearchConfig) GetIndexPath ¶ added in v0.2.1
func (x *SearchConfig) GetIndexPath() string
func (*SearchConfig) GetMeili ¶ added in v0.2.5
func (x *SearchConfig) GetMeili() *MeiliConfig
func (*SearchConfig) GetProvider ¶ added in v0.2.3
func (x *SearchConfig) GetProvider() SearchConfig_PROVIDER
func (*SearchConfig) ProtoMessage ¶ added in v0.2.1
func (*SearchConfig) ProtoMessage()
func (*SearchConfig) ProtoReflect ¶ added in v0.2.1
func (x *SearchConfig) ProtoReflect() protoreflect.Message
func (*SearchConfig) Reset ¶ added in v0.2.1
func (x *SearchConfig) Reset()
func (*SearchConfig) String ¶ added in v0.2.1
func (x *SearchConfig) String() string
type SearchConfig_PROVIDER ¶ added in v0.2.5
type SearchConfig_PROVIDER int32
const ( SearchConfig_MEILI SearchConfig_PROVIDER = 0 SearchConfig_BLEVE SearchConfig_PROVIDER = 1 )
func (SearchConfig_PROVIDER) Descriptor ¶ added in v0.2.5
func (SearchConfig_PROVIDER) Descriptor() protoreflect.EnumDescriptor
func (SearchConfig_PROVIDER) Enum ¶ added in v0.2.5
func (x SearchConfig_PROVIDER) Enum() *SearchConfig_PROVIDER
func (SearchConfig_PROVIDER) EnumDescriptor
deprecated
added in
v0.2.5
func (SearchConfig_PROVIDER) EnumDescriptor() ([]byte, []int)
Deprecated: Use SearchConfig_PROVIDER.Descriptor instead.
func (SearchConfig_PROVIDER) Number ¶ added in v0.2.5
func (x SearchConfig_PROVIDER) Number() protoreflect.EnumNumber
func (SearchConfig_PROVIDER) String ¶ added in v0.2.5
func (x SearchConfig_PROVIDER) String() string
func (SearchConfig_PROVIDER) Type ¶ added in v0.2.5
func (SearchConfig_PROVIDER) Type() protoreflect.EnumType
type SearchServer ¶
type SearchServer interface { BuildIndex(context.Context, *BuildRequest) (*BuildResponse, error) // contains filtered or unexported methods }
SearchServer is the server API for Search service. All implementations must embed UnimplementedSearchServer for forward compatibility
type UnimplementedSearchServer ¶
type UnimplementedSearchServer struct { }
UnimplementedSearchServer must be embedded to have forward compatible implementations.
func (UnimplementedSearchServer) BuildIndex ¶
func (UnimplementedSearchServer) BuildIndex(context.Context, *BuildRequest) (*BuildResponse, error)
type UnsafeSearchServer ¶
type UnsafeSearchServer interface {
// contains filtered or unexported methods
}
UnsafeSearchServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SearchServer will result in compilation errors.