Versions in this module Expand all Collapse all v1 v1.0.0 Feb 3, 2026 Changes in this version + const APIPrefix + const APIVersion + type APIMeta struct + ProcessTime float64 + RequestID string + Version string + type APIResponse struct + Data interface{} + Error string + Message string + Meta *APIMeta + OK bool + type AuthHandler struct + func NewAuthHandler(cfg *config.Config, db *sql.DB, authManager *userpkg.AuthManager, ...) *AuthHandler + func (h *AuthHandler) RegisterRoutes(mux *http.ServeMux) + type AutodiscoverResponse struct + API struct{ ... } + Cluster struct{ ... } + Server struct{ ... } + type BangInfo struct + Aliases []string + Category string + Description string + Name string + Shortcut string + URL string + type BuildInfo struct + Commit string + Date string + type CategoryInfo struct + Description string + ID string + Icon string + Name string + type ChangePasswordRequest struct + CurrentPassword string + NewPassword string + type ChecksInfo struct + Cache string + Cluster string + Database string + Disk string + Scheduler string + Tor string + type ClusterInfo struct + Enabled bool + NodeCount int + Nodes []string + Primary string + Role string + Status string + type CreateTokenRequest struct + ExpiresIn int + Name string + Permissions []string + type DirectAnswerResponse struct + CacheTTL int + Content string + Data map[string]interface{} + Description string + Error string + Found bool + Source string + SourceURL string + Term string + Title string + Type string + type Disable2FARequest struct + Code string + Password string + type Enable2FARequest struct + Code string + type EngineInfo struct + Categories []string + Description string + Enabled bool + Homepage string + ID string + Name string + Priority int + type EnginesSummary struct + Enabled int + Total int + type FeaturesInfo struct + GeoIP bool + MultiUser bool + Organizations bool + Tor TorInfo + type ForgotPasswordRequest struct + Email string + type GraphQLHandler struct + func NewGraphQLHandler(h *Handler) (*GraphQLHandler, error) + func (g *GraphQLHandler) ServeGraphiQL(w http.ResponseWriter, r *http.Request) + func (g *GraphQLHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) + type Handler struct + func NewHandler(cfg *config.Config, registry *engines.Registry, aggregator *search.Aggregator) *Handler + func (h *Handler) HandleAutocomplete(w http.ResponseWriter, r *http.Request) + func (h *Handler) RegisterGraphQLRoutes(mux *http.ServeMux) error + func (h *Handler) RegisterOpenAPIRoutes(mux *http.ServeMux) + func (h *Handler) RegisterRoutes(mux *http.ServeMux) + func (h *Handler) ServeOpenAPISpec(w http.ResponseWriter, r *http.Request) + func (h *Handler) ServeSwaggerUI(w http.ResponseWriter, r *http.Request) + func (h *Handler) SetDirectManager(dm *direct.Manager) + func (h *Handler) SetInstantManager(im *instant.Manager) + func (h *Handler) SetRelatedSearches(rs *search.RelatedSearches) + func (h *Handler) SetWidgetManager(wm *widget.Manager) + type HealthResponse struct + Build BuildInfo + Checks ChecksInfo + Cluster ClusterInfo + Features FeaturesInfo + GoVersion string + Mode string + PendingRestart bool + Project ProjectInfo + RestartReason []string + Stats StatsInfo + Status string + Timestamp string + Uptime string + Version string + type InfoResponse struct + Description string + Engines EnginesSummary + Features map[string]bool + Mode string + Name string + System SystemInfo + Uptime string + Version string + type InstantAnswerResponse struct + Content string + Data map[string]interface{} + Found bool + Query string + Source string + Title string + Type string + type LoginRequest struct + Password string + RememberMe bool + TOTPCode string + Username string + type LoginResponse struct + ExpiresAt time.Time + Requires2FA bool + SessionID string + User UserResponse + type NodeInfo struct + Hostname string + ID string + type PageSection struct + Content string + ID string + Title string + type Pagination struct + Limit int + Page int + Pages int + Total int + type ProjectInfo struct + Description string + Name string + Tagline string + type RecoveryKeyRequest struct + RecoveryKey string + Username string + type RegisterRequest struct + Email string + Password string + Username string + type RelatedSearchResponse struct + Count int + Query string + Suggestions []string + type ResetPasswordRequest struct + NewPassword string + Token string + type SearchRequest struct + Category string + Engines []string + Language string + Limit int + Page int + Query string + SafeSearch string + TimeRange string + type SearchResponse struct + Category string + Engines []string + Pagination Pagination + Query string + Results []SearchResult + SearchTime float64 + type SearchResult struct + Category string + Date string + Description string + Domain string + Engine string + Score float64 + Thumbnail string + Title string + URL string + type ServerPageResponse struct + Content string + Description string + Metadata map[string]string + Sections []PageSection + Title string + type SessionInfo struct + CreatedAt time.Time + DeviceName string + ExpiresAt time.Time + ID int64 + IPAddress string + IsCurrent bool + LastUsed time.Time + type Setup2FARequest struct + Password string + type StatsInfo struct + ActiveConns int + Requests24h int64 + RequestsTotal int64 + type SwaggerUIData struct + SpecURL string + type SystemInfo struct + GoVersion string + MemAlloc string + NumCPU int + NumGoroutine int + type TorInfo struct + Enabled bool + Hostname string + Running bool + Status string + type TwoFactorVerifyRequest struct + Code string + SessionID string + type UpdateProfileRequest struct + AvatarURL string + Bio string + DisplayName string + NotificationEmail string + type UserHandler struct + func NewUserHandler(cfg *config.Config, db *sql.DB, authManager *userpkg.AuthManager, ...) *UserHandler + func (h *UserHandler) RegisterRoutes(mux *http.ServeMux) + type UserResponse struct + AvatarURL string + CreatedAt time.Time + DisplayName string + Email string + EmailVerified bool + ID int64 + LastLogin *time.Time + Role string + Username string + type VerifyEmailRequest struct + Token string