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) InitializeServiceChannels(ctx context.Context) error
- func (dtv *DTVUsecase) ListAutoSearchForServiceName(serviceName string) ([]*AutoSearch, error)
- func (dtv *DTVUsecase) OnOkEmojiAdd(ctx context.Context, reaction *discordgo.MessageReactionAdd) 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
- 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 `yaml:"タイトル"` Channel string `yaml:"チャンネル"` Genre string `yaml:"ジャンル"` NotifyUsers []*discordgo.User `yaml:"-"` RecordingUsers []*discordgo.User `yaml:"-"` ThreadID string `yaml:"-"` }
func (*AutoSearch) IsMatchProgram ¶
func (a *AutoSearch) IsMatchProgram(program *AutoSearchProgram, fuzzyMatch bool) bool
func (*AutoSearch) IsMatchService ¶
func (a *AutoSearch) IsMatchService(serviceName string, kanaMatch bool, fuzzyMatch bool) bool
type AutoSearchProgram ¶
func NewAutoSearchProgram ¶
func NewAutoSearchProgram(p db.Program, kanaMatch bool) *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, kanaMatch bool, fuzzyMatch bool, gpt *gpt.GPTClient, ) (*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) InitializeServiceChannels ¶
func (dtv *DTVUsecase) InitializeServiceChannels(ctx context.Context) error
func (*DTVUsecase) ListAutoSearchForServiceName ¶
func (dtv *DTVUsecase) ListAutoSearchForServiceName(serviceName string) ([]*AutoSearch, error)
func (*DTVUsecase) OnOkEmojiAdd ¶
func (dtv *DTVUsecase) OnOkEmojiAdd(ctx context.Context, reaction *discordgo.MessageReactionAdd) 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_updated_task.go
- dtv_usecase.go
- get_content_path.go
- initialize_channels.go
- on_ok_emoji_add.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
Click to show internal directories.
Click to hide internal directories.