Documentation ¶
Index ¶
- type AutoSearch
- type AutoSearchProgram
- type DTVUsecase
- func (dtv *DTVUsecase) CheckCompletedTask(ctx context.Context) error
- func (dtv *DTVUsecase) CheckFailedTask(ctx context.Context) error
- func (dtv *DTVUsecase) CheckUpdateTask(ctx context.Context, version string) error
- func (dtv *DTVUsecase) CreateAutoSearch(userID string, name string, title string, channel string, genre string, ...) error
- func (dtv *DTVUsecase) DeleteAutoSearch(ctx context.Context, threadID string) error
- func (dtv *DTVUsecase) InitializeServiceChannels(ctx context.Context) error
- func (dtv *DTVUsecase) ListAutoSearchForServiceName(ctx context.Context, serviceName string) ([]*AutoSearch, error)
- func (dtv *DTVUsecase) ListChannelNames() ([]string, error)
- func (dtv *DTVUsecase) OnProgramsUpdated(ctx context.Context, serviceId uint) error
- func (dtv *DTVUsecase) OnRecordingEmojiAdd(ctx context.Context, reaction *discordgo.MessageReactionAdd) error
- func (dtv *DTVUsecase) OnRecordingEmojiRemove(ctx context.Context, reaction *discordgo.MessageReactionRemove) error
- func (dtv *DTVUsecase) OnRecordingFailed(ctx context.Context, programId int64, reason string) error
- func (dtv *DTVUsecase) OnRecordingStarted(ctx context.Context, programId int64) error
- func (dtv *DTVUsecase) OnRecordingStopped(ctx context.Context, programId int64) error
- func (dtv *DTVUsecase) Reindex(ctx context.Context) error
- type GitHubRelease
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutoSearch ¶
type AutoSearch struct { Title string Channel string Genre string KanaMatch bool FuzzyMatch bool RegexMatch bool ThreadID string }
func (*AutoSearch) IsMatchProgram ¶
func (a *AutoSearch) IsMatchProgram(program *AutoSearchProgram) bool
func (*AutoSearch) IsMatchService ¶
func (a *AutoSearch) IsMatchService(serviceName string) bool
type AutoSearchProgram ¶
type AutoSearchProgram struct { Title string TitleKana string Genre string GenreKana string EndAt int64 }
func NewAutoSearchProgram ¶
func NewAutoSearchProgram(p db.Program) *AutoSearchProgram
type DTVUsecase ¶
type DTVUsecase struct {
// contains filtered or unexported fields
}
func NewDTVUsecase ¶
func NewDTVUsecase( cfg config.Config, asynqClient *asynq.Client, inspector *asynq.Inspector, discordClient *discord_client.DiscordClient, mirakcClient *mirakc_client.MirakcClient, scheduler *gocron.Scheduler, queries *db.Queries, logger *zap.Logger, gpt *gpt.GPTClient, meili *meili.MeiliSearchClient, ) (*DTVUsecase, error)
func (*DTVUsecase) CheckCompletedTask ¶
func (dtv *DTVUsecase) CheckCompletedTask(ctx context.Context) error
func (*DTVUsecase) CheckFailedTask ¶
func (dtv *DTVUsecase) CheckFailedTask(ctx context.Context) error
func (*DTVUsecase) CheckUpdateTask ¶
func (dtv *DTVUsecase) CheckUpdateTask(ctx context.Context, version string) error
func (*DTVUsecase) CreateAutoSearch ¶ added in v0.14.0
func (*DTVUsecase) DeleteAutoSearch ¶ added in v0.14.0
func (dtv *DTVUsecase) DeleteAutoSearch(ctx context.Context, threadID string) error
func (*DTVUsecase) InitializeServiceChannels ¶
func (dtv *DTVUsecase) InitializeServiceChannels(ctx context.Context) error
func (*DTVUsecase) ListAutoSearchForServiceName ¶
func (dtv *DTVUsecase) ListAutoSearchForServiceName(ctx context.Context, serviceName string) ([]*AutoSearch, error)
func (*DTVUsecase) ListChannelNames ¶ added in v0.14.0
func (dtv *DTVUsecase) ListChannelNames() ([]string, error)
func (*DTVUsecase) OnProgramsUpdated ¶
func (dtv *DTVUsecase) OnProgramsUpdated(ctx context.Context, serviceId uint) error
func (*DTVUsecase) OnRecordingEmojiAdd ¶
func (dtv *DTVUsecase) OnRecordingEmojiAdd(ctx context.Context, reaction *discordgo.MessageReactionAdd) error
func (*DTVUsecase) OnRecordingEmojiRemove ¶
func (dtv *DTVUsecase) OnRecordingEmojiRemove(ctx context.Context, reaction *discordgo.MessageReactionRemove) error
func (*DTVUsecase) OnRecordingFailed ¶
func (*DTVUsecase) OnRecordingStarted ¶
func (dtv *DTVUsecase) OnRecordingStarted(ctx context.Context, programId int64) error
func (*DTVUsecase) OnRecordingStopped ¶
func (dtv *DTVUsecase) OnRecordingStopped(ctx context.Context, programId int64) error
type GitHubRelease ¶
Source Files ¶
- auto_search.go
- check_completed_task.go
- check_failed_task.go
- check_recording_schedule.go
- check_updated_task.go
- create_auto_seach.go
- delete_auto_search.go
- dtv_usecase.go
- get_content_path.go
- initialize_channels.go
- list_channel_names.go
- on_program_updated.go
- on_recording_emoji_add.go
- on_recording_emoji_remove.go
- on_recording_failed.go
- on_recording_started.go
- on_recording_stopped.go
- reindex.go
Click to show internal directories.
Click to hide internal directories.