Documentation ¶
Index ¶
- type Indexer
- func (i *Indexer) Index(w http.ResponseWriter, r *http.Request)
- func (i *Indexer) IndexStatus(w http.ResponseWriter, r *http.Request)
- func (i *Indexer) RegisterHooks(className string) error
- func (i *Indexer) Reindex(className string) error
- func (i *Indexer) Search(w http.ResponseWriter, r *http.Request)
- func (i *Indexer) Unindex(w http.ResponseWriter, r *http.Request)
- type Response
- type UI
- type WebhookRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Indexer ¶
type Indexer struct {
// contains filtered or unexported fields
}
Indexer manages the search index for a Parse app.
func NewIndexer ¶
NewIndexer prepares a new Indexer given the necessary Parse App credentials.
func (*Indexer) Index ¶
func (i *Indexer) Index(w http.ResponseWriter, r *http.Request)
Index is an http.HandlerFunc that accepts a parse afterSave webhook request.
It adds or updates the provided objet in the search index.
func (*Indexer) IndexStatus ¶
func (i *Indexer) IndexStatus(w http.ResponseWriter, r *http.Request)
IndexStatus lists the status of all current Reindexing processes.
func (*Indexer) RegisterHooks ¶
RegisterHooks auto-registers the search service with a Parse Application.
func (*Indexer) Reindex ¶
Reindex fetches all objects for a class and indexes them. Could be long-running.
type Response ¶
type Response struct { Error interface{} `json:"error,omitempty"` Success interface{} `json:"success,omitempty"` }
Response is a Parse Cloud Code Webhook response
type WebhookRequest ¶
type WebhookRequest struct { InstallationID string `json:"installationId,omitempty"` Master bool `json:"master,omitempty"` Object interface{} `json:"object,omitempty"` Params map[string]interface{} `json:"params,omitempty"` TriggerName string `json:"triggerName,omitempty"` }
WebhookRequest is a Parse Cloud Code Webhook request.
Click to show internal directories.
Click to hide internal directories.