Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeletePagesHandler ¶
type DeletePagesHandler struct {
// contains filtered or unexported fields
}
DeletePagesHandler handles page deletion from WordPress plugin
func ProvideDeletePagesHandler ¶
func ProvideDeletePagesHandler( deleteService pageservice.DeletePagesService, logger *zap.Logger, ) *DeletePagesHandler
ProvideDeletePagesHandler creates a new DeletePagesHandler
func (*DeletePagesHandler) Handle ¶
func (h *DeletePagesHandler) Handle(w http.ResponseWriter, r *http.Request)
Handle handles the HTTP request for deleting pages This endpoint is protected by API key middleware
func (*DeletePagesHandler) HandleDeleteAll ¶
func (h *DeletePagesHandler) HandleDeleteAll(w http.ResponseWriter, r *http.Request)
HandleDeleteAll handles the HTTP request for deleting all pages
type PluginVerifyHandler ¶
type PluginVerifyHandler struct {
// contains filtered or unexported fields
}
PluginVerifyHandler handles domain verification from WordPress plugin
func ProvidePluginVerifyHandler ¶
func ProvidePluginVerifyHandler(service siteservice.VerifySiteService, logger *zap.Logger) *PluginVerifyHandler
ProvidePluginVerifyHandler creates a new PluginVerifyHandler
func (*PluginVerifyHandler) Handle ¶
func (h *PluginVerifyHandler) Handle(w http.ResponseWriter, r *http.Request)
Handle handles the HTTP request for verifying a site via plugin API Uses API key authentication (site context from middleware)
type SearchPagesHandler ¶
type SearchPagesHandler struct {
// contains filtered or unexported fields
}
SearchPagesHandler handles page search from WordPress plugin
func ProvideSearchPagesHandler ¶
func ProvideSearchPagesHandler( searchService pageservice.SearchPagesService, logger *zap.Logger, ) *SearchPagesHandler
ProvideSearchPagesHandler creates a new SearchPagesHandler
func (*SearchPagesHandler) Handle ¶
func (h *SearchPagesHandler) Handle(w http.ResponseWriter, r *http.Request)
Handle handles the HTTP request for searching pages This endpoint is protected by API key middleware
type StatusHandler ¶
type StatusHandler struct {
// contains filtered or unexported fields
}
StatusHandler handles WordPress plugin status/verification requests
func ProvideStatusHandler ¶
func ProvideStatusHandler( getSiteService siteservice.GetSiteService, logger *zap.Logger, ) *StatusHandler
ProvideStatusHandler creates a new StatusHandler
func (*StatusHandler) Handle ¶
func (h *StatusHandler) Handle(w http.ResponseWriter, r *http.Request)
Handle handles the HTTP request for plugin status verification This endpoint is protected by API key middleware, so if we reach here, the API key is valid
type StatusResponse ¶
type StatusResponse struct {
// Core Identity
SiteID string `json:"site_id"`
TenantID string `json:"tenant_id"`
Domain string `json:"domain"`
SiteURL string `json:"site_url"`
// Status & Verification
Status string `json:"status"`
IsVerified bool `json:"is_verified"`
VerificationStatus string `json:"verification_status"` // "pending" or "verified"
VerificationToken string `json:"verification_token,omitempty"` // Only if pending
VerificationInstructions string `json:"verification_instructions,omitempty"` // Only if pending
// Storage (usage tracking only - no quotas)
StorageUsedBytes int64 `json:"storage_used_bytes"`
// Usage tracking (monthly, resets for billing)
SearchRequestsCount int64 `json:"search_requests_count"`
MonthlyPagesIndexed int64 `json:"monthly_pages_indexed"`
TotalPagesIndexed int64 `json:"total_pages_indexed"` // All-time stat
// Search
SearchIndexName string `json:"search_index_name"`
// Additional Info
APIKeyPrefix string `json:"api_key_prefix"`
APIKeyLastFour string `json:"api_key_last_four"`
PluginVersion string `json:"plugin_version,omitempty"`
Language string `json:"language,omitempty"`
Timezone string `json:"timezone,omitempty"`
Message string `json:"message"`
}
StatusResponse represents the response for plugin status endpoint
type SyncPagesHandler ¶
type SyncPagesHandler struct {
// contains filtered or unexported fields
}
SyncPagesHandler handles page synchronization from WordPress plugin
func ProvideSyncPagesHandler ¶
func ProvideSyncPagesHandler( syncService pageservice.SyncPagesService, logger *zap.Logger, ) *SyncPagesHandler
ProvideSyncPagesHandler creates a new SyncPagesHandler
func (*SyncPagesHandler) Handle ¶
func (h *SyncPagesHandler) Handle(w http.ResponseWriter, r *http.Request)
Handle handles the HTTP request for syncing pages This endpoint is protected by API key middleware
type SyncStatusHandler ¶
type SyncStatusHandler struct {
// contains filtered or unexported fields
}
SyncStatusHandler handles sync status requests from WordPress plugin
func ProvideSyncStatusHandler ¶
func ProvideSyncStatusHandler( statusService pageservice.SyncStatusService, logger *zap.Logger, ) *SyncStatusHandler
ProvideSyncStatusHandler creates a new SyncStatusHandler
func (*SyncStatusHandler) Handle ¶
func (h *SyncStatusHandler) Handle(w http.ResponseWriter, r *http.Request)
Handle handles the HTTP request for getting sync status This endpoint is protected by API key middleware
func (*SyncStatusHandler) HandleGetPageDetails ¶
func (h *SyncStatusHandler) HandleGetPageDetails(w http.ResponseWriter, r *http.Request)
HandleGetPageDetails handles the HTTP request for getting page details
type VerifyResponse ¶
type VerifyResponse struct {
Success bool `json:"success"`
Status string `json:"status"`
Message string `json:"message"`
}
VerifyResponse represents the verification response
type VersionHandler ¶
type VersionHandler struct {
// contains filtered or unexported fields
}
VersionHandler handles version requests from WordPress plugin
func ProvideVersionHandler ¶
func ProvideVersionHandler(logger *zap.Logger) *VersionHandler
ProvideVersionHandler creates a new VersionHandler
func (*VersionHandler) Handle ¶
func (h *VersionHandler) Handle(w http.ResponseWriter, r *http.Request)
Handle processes GET /api/v1/plugin/version requests