commands

package
v0.31.3 Latest Latest
Warning

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

Go to latest
Published: May 17, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetServices

func SetServices(s *Services)

Types

type BindingResolver

type BindingResolver interface {
	FindByChannelUser(ctx context.Context, channelType, channelUserID string) (uint, bool, error)
}

BindingResolver 用于 /unbind 命令解析自身 binding ID。

type DownloaderStatusSource

type DownloaderStatusSource interface {
	GetAllDownloaderStatus() []downloader.DownloaderStatus
}

DownloaderStatusSource 抽象 *downloader.DownloaderManager.GetAllDownloaderStatus()。

type Services

type Services struct {
	Task       app.TaskService
	Torrent    app.TorrentService
	Site       app.SiteService
	Binding    app.BindingService
	Downloader DownloaderStatusSource
	Bindings   BindingResolver
	Sessions   chatops.SessionStoreAPI
}

Services 是 chatops 命令访问的业务依赖集合。

Jump to

Keyboard shortcuts

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