Documentation ¶
Index ¶
- Variables
- type Service
- func (s *Service) DeleteByID(ctx context.Context, request *pb.DeleteByIDRequest) (*pb.DeleteByIDResponse, error)
- func (s *Service) Index(ctx context.Context, in *pb.IndexObject) (*pb.IndexResponse, error)
- func (s *Service) Register(name driver.Type, implement driver.SearchEngine) *Service
- func (s *Service) Search(ctx context.Context, request *pb.SearchRequest) (*pb.SearchResponse, error)
- func (s *Service) Use(opt driver.SelectDriveOption) *Service
- func (s Service) With(opt driver.SelectDriveOption) *Service
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrIndexParamInvalid = errors.New("invalid index params")
)
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
var GlobalService *Service
func NewService ¶
func NewService(registered map[driver.Type]driver.SearchEngine) *Service
func (*Service) DeleteByID ¶
func (s *Service) DeleteByID(ctx context.Context, request *pb.DeleteByIDRequest) (*pb.DeleteByIDResponse, error)
func (*Service) Index ¶
func (s *Service) Index(ctx context.Context, in *pb.IndexObject) (*pb.IndexResponse, error)
func (*Service) Search ¶
func (s *Service) Search(ctx context.Context, request *pb.SearchRequest) (*pb.SearchResponse, error)
Click to show internal directories.
Click to hide internal directories.