vector

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: MIT Imports: 26 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package vector 提供向量索引的配置、同步、添加、搜索、状态和清理命令。

New 构造命令树;模型与索引操作由各自领域包负责。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(env environment.Env, store config.Store, open OpenClient, search SearchFunc) *cobra.Command

New 构造 vector 命令组,配置存储由组合根注入。

Types

type OpenClient

type OpenClient func(context.Context, environment.PixivRequest) (int64, *pixiv.Client, func() error, error)

OpenClient 由组合根选择固定账号;返回的关闭函数释放 Pixiv 操作通道。

type SearchFunc

SearchFunc 由组合根读取实时配置并载入图片来源,再调用共享搜索流程。

Jump to

Keyboard shortcuts

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