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 DownloaderOption ¶ added in v0.35.0
type DownloaderStatusSource ¶
type DownloaderStatusSource interface {
GetAllDownloaderStatus() []downloader.DownloaderStatus
}
DownloaderStatusSource 抽象 *downloader.DownloaderManager.GetAllDownloaderStatus()。
type IDNameOption ¶ added in v0.35.0
type RSSWizardService ¶ added in v0.35.0
type RSSWizardService interface {
AppendRSSToSite(siteName string, entry models.RSSConfig) (models.RSSConfig, error)
ListRSSForSite(siteName string) ([]models.RSSConfig, error)
DeleteRSSFromSite(siteName string, rssID uint) (models.RSSConfig, error)
ListDownloaders(ctx context.Context) ([]DownloaderOption, error)
ListFilterRules(ctx context.Context) ([]IDNameOption, error)
ListNotificationChannels(ctx context.Context) ([]IDNameOption, error)
}
type Services ¶
type Services struct {
Task app.TaskService
Torrent app.TorrentService
Site app.SiteService
Binding app.BindingService
Downloader DownloaderStatusSource
RSSWizard RSSWizardService
Bindings BindingResolver
Sessions chatops.SessionStoreAPI
}
Services 是 chatops 命令访问的业务依赖集合。
Click to show internal directories.
Click to hide internal directories.