Documentation ¶
Overview ¶
Package grpc provides the Pydio grpc service for querying indexer.
Insertion in the index is not performed directly but via events broadcasted by the broker.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Name = common.SERVICE_GRPC_NAMESPACE_ + common.SERVICE_SEARCH
)
Functions ¶
This section is empty.
Types ¶
type EventsSubscriber ¶
type EventsSubscriber struct {
// contains filtered or unexported fields
}
EventsSubscriber definition
func (*EventsSubscriber) Handle ¶
func (e *EventsSubscriber) Handle(ctx context.Context, msg *tree.NodeChangeEvent) error
Handle the events received and send them to the subscriber
type SearchServer ¶
type SearchServer struct { Engine dao.SearchEngine TreeClient tree.NodeProviderClient // contains filtered or unexported fields }
func (*SearchServer) CreateNodeChangeSubscriber ¶
func (s *SearchServer) CreateNodeChangeSubscriber() *EventsSubscriber
CreateNodeChangeSubscriber that will treat events for the meta server
func (*SearchServer) Search ¶
func (s *SearchServer) Search(ctx context.Context, req *tree.SearchRequest, streamer tree.Searcher_SearchStream) error
func (*SearchServer) TriggerResync ¶
func (s *SearchServer) TriggerResync(c context.Context, req *protosync.ResyncRequest, resp *protosync.ResyncResponse) error
Click to show internal directories.
Click to hide internal directories.