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 命令访问的业务依赖集合。
Click to show internal directories.
Click to hide internal directories.