bot

package
v0.0.0-...-79821a0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bot

type Bot interface {
	SetTask(entity.TaskModel) error
	ViewTasks(ctx context.Context, userID string) ([]*entity.TaskRaw, error)
	DeleteTask(ctx context.Context, link string)
	Status(ctx context.Context) ([]*entity.Status, error)

	StorageServer(server entity.ServerModel) error

	CleanHistory(ctx context.Context)
}

func NewBotUsecases

func NewBotUsecases(db persistent.SQLRepo, loader loader.Loader) Bot

type BotCases

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

func (*BotCases) CleanHistory

func (b *BotCases) CleanHistory(ctx context.Context)

func (*BotCases) DeleteTask

func (b *BotCases) DeleteTask(ctx context.Context, link string)

!!!

func (*BotCases) SetTask

func (b *BotCases) SetTask(task entity.TaskModel) error

func (*BotCases) Status

func (b *BotCases) Status(ctx context.Context) ([]*entity.Status, error)

func (*BotCases) StorageServer

func (b *BotCases) StorageServer(server entity.ServerModel) error

func (*BotCases) ViewTasks

func (b *BotCases) ViewTasks(ctx context.Context, userID string) ([]*entity.TaskRaw, error)

Jump to

Keyboard shortcuts

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