poll

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseVideoJSON

func ParseVideoJSON(body []byte) (url string, done bool, err error)

ParseVideoJSON 解析任务 JSON:若已完成则 Done=true;若失败则 Err 非空。

Types

type VideoTask

type VideoTask struct {
	Status string `json:"status"`
	URL    string `json:"url"`
	Error  *struct {
		Message string `json:"message"`
		Code    any    `json:"code"`
	} `json:"error"`
}

VideoTask 与 New API 统一视频轮询、Kling 等 JSON 形态一致。

Jump to

Keyboard shortcuts

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