Versions in this module Expand all Collapse all v1 v1.1.4 Nov 11, 2026 Changes in this version type Client + func (c *Client) CreateDatabase(ctx context.Context, tenant string, cfg DatabaseConfig) (*DatabaseInfo, error) + func (c *Client) DeleteDatabase(ctx context.Context, tenant, database string) (int, error) + func (c *Client) GetDatabase(ctx context.Context, tenant, database string) (*DatabaseInfo, error) + func (c *Client) Health(ctx context.Context) (bool, error) + func (c *Client) IngestDatabase(ctx context.Context, tenant, database string, docs []Doc) (*IngestResponse, error) + func (c *Client) ListDatabases(ctx context.Context, tenant string) ([]DatabaseInfo, error) + type DatabaseConfig struct + DataType string + Database string + Mode string + NumShards int + RF int + type DatabaseInfo struct + ByteCount uint64 + DataType string + Database string + DocCount uint64 + ExplicitShards bool + Mode string + NumShards int + Partition string + PinnedShard int + RF int + Tag uint32 + Tenant string type Doc + Database string type DocResponse + Database string type IngestResponse + Database string + type LatencyBucket struct + Count uint64 + LeMs string + type LatencyStats struct + AvgMs float64 + Buckets []LatencyBucket + Count uint64 + P50Ms float64 + P95Ms float64 + P99Ms float64 type PatchRequest + Database string type SearchRequest + Database string type TenantQuota + MaxBytes uint64 type TenantSummary + DataType string + Database string + Mode string + NumShards int + Partition string + PinnedShard int + RF int type TenantUsage + LiveBytes uint64 + MaxBytes uint64 + PartitionCount int + SearchLatency LatencyStats type UsageReport + TotalLiveBytes uint64 v1.1.2 Nov 10, 2026 v1.1.0 Nov 10, 2026 Changes in this version + const Version + type APIError struct + Message string + StatusCode int + func (e *APIError) Error() string + type BatchSearchResponse struct + Results []SearchResponse + type Client struct + func New(opts Options) *Client + func NewClient(opts Options) (*Client, error) + func (c *Client) BatchGetDocs(ctx context.Context, tenant string, ids []string) ([]DocResponse, error) + func (c *Client) BatchSearch(ctx context.Context, queries []SearchRequest) (*BatchSearchResponse, error) + func (c *Client) Compact(ctx context.Context) error + func (c *Client) CreateTenantKey(ctx context.Context, tenant, key string) (string, error) + func (c *Client) DeleteDoc(ctx context.Context, tenant, id string) error + func (c *Client) DeleteTenant(ctx context.Context, tenant string) (int, error) + func (c *Client) ExportTenant(ctx context.Context, tenant string) ([]Doc, error) + func (c *Client) Flush(ctx context.Context) error + func (c *Client) GetDoc(ctx context.Context, tenant, id string) (*DocResponse, error) + func (c *Client) GetTenant(ctx context.Context, tenant string) (*TenantSummary, error) + func (c *Client) GetTenantQuota(ctx context.Context, tenant string) (*TenantQuota, error) + func (c *Client) GetTenantUsage(ctx context.Context, tenant string) (*TenantUsage, error) + func (c *Client) GoString() string + func (c *Client) ImportTenant(ctx context.Context, tenant string, docs []Doc) (int, error) + func (c *Client) Ingest(ctx context.Context, tenant string, docs []Doc) (*IngestResponse, error) + func (c *Client) ListTenants(ctx context.Context) ([]TenantSummary, error) + func (c *Client) ListUsage(ctx context.Context) (*UsageReport, error) + func (c *Client) PatchDoc(ctx context.Context, tenant, id string, req PatchRequest) (*DocResponse, error) + func (c *Client) Ready(ctx context.Context) (*ReadyStatus, error) + func (c *Client) RevokeTenantKey(ctx context.Context, tenant, key string) error + func (c *Client) Search(ctx context.Context, req SearchRequest) (*SearchResponse, error) + func (c *Client) SetTenantQuota(ctx context.Context, tenant string, quota TenantQuota) (*TenantQuota, error) + func (c *Client) String() string + type Doc struct + Category uint16 + Date uint16 + ID string + Metadata json.RawMessage + Vector []float32 + type DocResponse struct + Category uint16 + Date uint16 + Degraded bool + Found bool + ID string + Metadata json.RawMessage + Tenant string + type Hit struct + DocID uint64 + ID string + Metadata json.RawMessage + Score float32 + Shard int + type IngestResponse struct + Degraded bool + Ingested int + type Options struct + APIKey string + BaseURL string + HTTPClient *http.Client + MaxResponseBytes int64 + Timeout time.Duration + type PatchRequest struct + Category *uint16 + Date *uint16 + Metadata json.RawMessage + ReplaceMeta bool + type ReadyStatus struct + Ready bool + UnavailableShards []int + type SearchRequest struct + Categories []uint16 + Category *uint16 + HybridAlpha float32 + K int + MaxDate *uint16 + MetadataFilter map[string]any + MinDate *uint16 + MinScore *float32 + NProbe int + Offset int + QueryText string + RerankPool int + Tenant string + Vector []float32 + type SearchResponse struct + Hits []Hit + TookMs float64 + type TenantQuota struct + Burst int + MaxDocs uint64 + MaxQPS float64 + Plan string + Suspended bool + type TenantSummary struct + ByteCount uint64 + DocCount uint64 + Tenant string + type TenantUsage struct + LiveDocs uint64 + MaxDocs uint64 + MaxQPS float64 + Plan string + RateLimited uint64 + ReadRequests uint64 + ReadUnits uint64 + Suspended bool + Tenant string + UpdatedAt string + WriteRequests uint64 + WriteUnits uint64 + type UsageReport struct + Tenants []TenantUsage + TotalLiveDocs uint64 + TotalReadUnits uint64 + TotalWriteUnits uint64