Documentation ¶
Overview ¶
Package usecase provides business logic.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetParserUseCase ¶
func SetParserUseCase(uc *ParserUseCase)
Types ¶
type BotUseCase ¶
type BotUseCase struct {
// contains filtered or unexported fields
}
BotUseCase object capable of interacting with BotUseCase
func NewBotUseCase ¶
func NewBotUseCase(ctx context.Context, cfg *entity.BotConfig, log *logger.Zerolog, db *database.Database, usersRepo UsersRepo) (*BotUseCase, error)
NewBotUseCase creates a new BotUseCase
func (*BotUseCase) CreateExifMessage ¶
func (uc *BotUseCase) CreateExifMessage(exif map[string]*entity.ExifResultItem, lang string) string
func (*BotUseCase) Start ¶
func (uc *BotUseCase) Start()
type ParserUseCase ¶
type ParserUseCase struct {
// contains filtered or unexported fields
}
func NewParserUseCase ¶
func NewParserUseCase(ctx context.Context, cfg *entity.ParserConfig, log *logger.Zerolog) (*ParserUseCase, error)
func (*ParserUseCase) GetChannel ¶
func (uc *ParserUseCase) GetChannel() chan *entity.ParserJob
func (*ParserUseCase) Parse ¶
func (uc *ParserUseCase) Parse(url string) (map[string]*entity.ExifResultItem, error)
Click to show internal directories.
Click to hide internal directories.