target

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: MIT Imports: 3 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 target 只保留六类实体命令共享的查询用例。

Execute 统一实体解析、tag 解析、单页/全部页查询、影片过滤与实体 metadata 行为; 不创建 Cobra command、不写输出、不编码 JSON。命名实体投影位于 internal/display。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	ResolveEntity(context.Context, string, string, string) (string, error)
	ResolveTags(context.Context, []string, string) ([]string, error)
	AllEntityMovies(context.Context, string, string, javdb.EntityMoviesOptions, int) ([]map[string]any, error)
	EntityMovies(context.Context, string, string, javdb.EntityMoviesOptions) (javdb.SearchResult, error)
	EntityDetail(context.Context, string, string) (map[string]any, error)
}

Client is the public SDK capability used by entity queries.

type Options

type Options struct {
	Zone       string
	Sort       string
	Order      string
	Page       int
	Limit      int
	TagRefs    []string
	Main       []string
	AllPages   bool
	HasMagnets bool
}

Options 是实体查询的 flag 投影。

type Result

type Result struct {
	Entity   map[string]any
	EntityID string
	Movies   []map[string]any
}

Result 是实体查询结果。

func Execute

func Execute(ctx context.Context, client Client, kind, ref string, options Options) (Result, error)

Execute 执行一个实体命令的查询用例。kind 是 actor/series/maker/director/code/list。

Jump to

Keyboard shortcuts

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