tmanager

package
v0.0.0-...-768bafe Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2025 License: MIT Imports: 12 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,
) (*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) 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