cover

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMissingBookID = errors.New("book id is required")
	ErrBookNotFound  = errors.New("book not found")
)

Functions

This section is empty.

Types

type Request

type Request struct {
	BookID       string
	ResizeHeight int
}

type Result

type Result struct {
	Data        []byte
	ContentType string
}

func GetBookCover

func GetBookCover(req Request) (Result, error)

GetBookCover 按书籍 ID 获取封面字节,供 HTTP 接口和 TUI 复用同一套封面解析逻辑。

Jump to

Keyboard shortcuts

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