tmanager

package
v0.0.0-...-c78db46 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func New

func New(
	l logger.Logger,
	sqliteDB *sqlite.SQLite,
	processorService *processor.Processor,
	botService *bot.Bot,
	sttService *stt.Service,
	maxVoiceDuration int,
) (*Manager, error)

func (*Manager) AddProcessorTask

func (m *Manager) AddProcessorTask(ctx context.Context, userID int64, data string) error

AddProcessorTask adds a new processor task to the task manager

func (*Manager) AddVoiceTask

func (m *Manager) AddVoiceTask(ctx context.Context, userID int64, fileID string) error

AddVoiceTask adds a new voice transcription task to the task manager

func (*Manager) Name

func (m *Manager) Name() string

Name returns the name of the task manager

func (*Manager) Start

func (m *Manager) Start(ctx context.Context) error

Start starts the task manager

func (*Manager) Stop

func (m *Manager) Stop(ctx context.Context) error

Stop stops the task manager

Jump to

Keyboard shortcuts

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