processor

package
v0.0.0-...-9a938bf Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoUpdates        = errors.New("fetch no updates")
	ErrUnknownEventType = errors.New("unknown event type")
	ErrUnknownMetaType  = errors.New("unknown meta type")
	ErrUnknownDataType  = errors.New("unknown data type")
)

Functions

This section is empty.

Types

type Data

type Data struct {
	Text  string
	Voice tgClient.Voice
}

type Meta

type Meta struct {
	ChatID   int
	Username string
	UserId   int
}

type Processor

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

func New

func New(
	aiBot aiBot,
	speechAnalyzer speechAnalyzer,
	telegramClient *tgClient.Client,
	notionClient *notion.Client,
	repository storage.UserRepository,
) *Processor

func (*Processor) Fetch

func (p *Processor) Fetch(limit int) ([]events.Event, error)

func (*Processor) Process

func (p *Processor) Process(event events.Event) error

Jump to

Keyboard shortcuts

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