genwget

package
v0.0.57 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = &Config{Output: "stdout"}

Functions

This section is empty.

Types

type Config

type Config struct {
	DstRootPath string
	Input       string
	Output      string
}

type GetComicInfoResponse

type GetComicInfoResponse struct {
	Head httpwrap.ResponseHeadInfo `json:"head"`
	Body api.ComicInfo             `json:"body"`
}

type Manager

type Manager struct {
	*Config
}

func NewManager

func NewManager(cfg ...*Config) *Manager

func (*Manager) GenScript

func (m *Manager) GenScript(infos []*api.ComicInfo) error

func (*Manager) GetComicInfo

func (m *Manager) GetComicInfo(ctx context.Context, cid int64) (*api.ComicInfo, error)

func (*Manager) GetComicInfos

func (m *Manager) GetComicInfos(ctx context.Context) ([]*api.ComicInfo, error)

func (*Manager) Handle

func (m *Manager) Handle(ctx context.Context) error

Jump to

Keyboard shortcuts

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