Versions in this module Expand all Collapse all v1 v1.0.0 Feb 3, 2026 Changes in this version + var ProjectName = "search" + var Version = "dev" + type AutodiscoverResponse struct + API struct{ ... } + Cluster struct{ ... } + Server struct{ ... } + type BuildInfo struct + BuildDate string + CommitID string + type Client struct + BaseURL string + ClusterNodes []string + HTTPClient *http.Client + Token string + UserContext string + func NewClient(baseURL, token string, timeout int) *Client + func (c *Client) AdminAddOrgMember(orgname, username, role string) error + func (c *Client) AdminCreateOrg(orgname, displayName, description string) (interface{}, error) + func (c *Client) AdminCreateToken(name, expires, scopes string) (interface{}, error) + func (c *Client) AdminCreateUser(username, email, role string) (interface{}, error) + func (c *Client) AdminDeleteOrg(orgname string) error + func (c *Client) AdminDeleteUser(username string) error + func (c *Client) AdminDisableUser2FA(username string) error + func (c *Client) AdminGetConfig(key string) (interface{}, error) + func (c *Client) AdminGetOrg(orgname string) (interface{}, error) + func (c *Client) AdminGetStatsOverview() (interface{}, error) + func (c *Client) AdminGetStatsPerformance() (interface{}, error) + func (c *Client) AdminGetStatsStorage() (interface{}, error) + func (c *Client) AdminGetStatsUsers() (interface{}, error) + func (c *Client) AdminGetTokenInfo(tokenID string) (interface{}, error) + func (c *Client) AdminGetUser(username string) (interface{}, error) + func (c *Client) AdminInviteServerAdmin(username, email string) error + func (c *Client) AdminListConfig(category string) (interface{}, error) + func (c *Client) AdminListOrgMembers(orgname, role string) (interface{}, error) + func (c *Client) AdminListOrgs(limit, offset int) (interface{}, error) + func (c *Client) AdminListServerAdmins() (interface{}, error) + func (c *Client) AdminListTokens(limit int, user string) (interface{}, error) + func (c *Client) AdminListUsers(limit, offset int, status string) (interface{}, error) + func (c *Client) AdminRemoveOrgMember(orgname, username string) error + func (c *Client) AdminRemoveServerAdmin(username string) error + func (c *Client) AdminResetConfig(key string) error + func (c *Client) AdminResetServerAdminPassword(username string) error + func (c *Client) AdminResetUserPassword(username string) error + func (c *Client) AdminRevokeToken(tokenID string) error + func (c *Client) AdminSetConfig(key, value string, reload bool) error + func (c *Client) AdminSuspendUser(username string) error + func (c *Client) AdminUnsuspendUser(username string) error + func (c *Client) Autodiscover() (*AutodiscoverResponse, error) + func (c *Client) GetClusterNodes() []string + func (c *Client) GetVersion() (string, error) + func (c *Client) Health() (*HealthResponse, error) + func (c *Client) Search(query string, page, perPage int) (*SearchResponse, error) + func (c *Client) SetClusterNodes(nodes []string) + func (c *Client) SetUserContext(ctx string) + type ClusterInfo struct + Enabled bool + Nodes int + Status string + type HealthResponse struct + Build *BuildInfo + Checks map[string]string + Cluster *ClusterInfo + Features map[string]bool + GoVersion string + Mode string + Node *NodeInfo + PendingRestart bool + RestartReason []string + Stats *HealthStats + Status string + Timestamp string + Uptime string + Version string + type HealthStats struct + ActiveConnections int + Requests24h int64 + RequestsTotal int64 + type NodeInfo struct + Hostname string + ID string + type SearchPagination struct + Limit int + Page int + Pages int + Total int + type SearchResponse struct + Category string + Engines []string + Pagination SearchPagination + Query string + Results []SearchResult + SearchTime float64 + type SearchResult struct + Category string + Description string + Domain string + Engine string + Score float64 + Thumbnail string + Title string + URL string