search

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: 22 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 search 提供 pixiv search、pixiv novel search 与反向搜图命令。

包的组成:New 组装作品搜索,NewNovel 组装小说搜索,ReverseSearchPort 接入反向搜图; 本地作品筛选、小说和反向搜图分别在 artworks.go、novel.go、reverse.go。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(env environment.Env, executeSDK environment.PixivExecutor, reverseSearch ReverseSearchPort) *cobra.Command

New 构造根级 `pixiv search` 命令,覆盖作品、小说、用户和反向搜图入口。

func NewNovel

func NewNovel(env environment.Env, executeSDK environment.PixivExecutor) *cobra.Command

NewNovel 构造 `pixiv novel` 命令组,其 search 叶子与 `pixiv search --type novel` 共用同一套执行逻辑。

Types

type ReverseSearchFunc

type ReverseSearchFunc func(context.Context, ReverseSearchRequest) (reversesearch.Response, error)

ReverseSearchFunc 让 CLI owner 在不依赖 provider 包的情况下执行反向搜图。

type ReverseSearchPort

type ReverseSearchPort func(context.Context, ReverseSearchRequest) (reversesearch.Response, error)

ReverseSearchPort 执行一次反向搜图;这条路径不打开 Pixiv 客户端。

type ReverseSearchRequest

type ReverseSearchRequest struct {
	Source             string
	Provider           reversesearch.Provider
	HTTPSProxyOverride *string
}

ReverseSearchRequest 保存 search owner 传给反向搜图端口的一次请求。 具体 provider client、凭据和快照生命周期仍由上层组合与 reversesearch.Service 管理。

Jump to

Keyboard shortcuts

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