Documentation
¶
Index ¶
- type CreateIndexOptions
- type DB
- func (d *DB) Delete(ctx context.Context, ids []string) error
- func (d *DB) Drop(ctx context.Context) error
- func (d *DB) Insert(ctx context.Context, datas []index.Data) error
- func (d *DB) IsEmpty(ctx context.Context) (bool, error)
- func (d *DB) Search(ctx context.Context, values []float64, options *option.Options) (index.SearchResults, error)
- func (d *DB) WithAPIKey(apiKey string) *DB
- type MetadataConfig
- type Options
- type Pod
- type Serverless
- type ServerlessCloud
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateIndexOptions ¶
type CreateIndexOptions struct { Dimension int Metric string Serverless *Serverless Pod *Pod }
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) WithAPIKey ¶ added in v0.1.0
type MetadataConfig ¶ added in v0.1.0
type MetadataConfig struct {
Indexed []string
}
type Options ¶
type Options struct { IndexName string Namespace string CreateIndexOptions *CreateIndexOptions }
type Serverless ¶ added in v0.1.0
type Serverless struct { Cloud ServerlessCloud Region string }
type ServerlessCloud ¶ added in v0.1.0
type ServerlessCloud string
const ( ServerlessCloudAWS ServerlessCloud = "aws" ServerlessCloudGCP ServerlessCloud = "gcp" ServerlessCloudAzure ServerlessCloud = "azure" )
Click to show internal directories.
Click to hide internal directories.