memoryindexgrpc

package
v0.1.0-alpha.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package memoryindexgrpc adapts the generated memoryindex.v1 client to the provider-neutral MemoryIndex port.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func Dial

func Dial(_ context.Context, config Config) (*Client, error)

func New

func New(generated memoryindexv1.MemoryIndexClient, config Config) *Client

func (*Client) Close

func (client *Client) Close() error

func (*Client) Delete

func (client *Client) Delete(ctx context.Context, scope memoryindex.Scope, candidates []memoryindex.Candidate) error

func (*Client) Reset

func (client *Client) Reset(ctx context.Context) error

func (*Client) Search

func (client *Client) Search(ctx context.Context, query memoryindex.Query) ([]memoryindex.Candidate, error)

func (*Client) Upsert

func (client *Client) Upsert(ctx context.Context, documents []memoryindex.Document) error

type Config

type Config struct {
	Address     string
	RPCToken    string
	CallTimeout time.Duration
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL