feat: initial commit

This commit is contained in:
2026-04-16 19:39:02 +02:00
commit 50d1686b1e
44 changed files with 2089 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
package port
import "context"
type FileDownloader interface {
Download(ctx context.Context, fileID string) ([]byte, string, error) // bytes, mimeType, error
}

View File

@@ -0,0 +1,10 @@
package port
import (
"context"
"github.com/paramah/gw_telegram/internal/domain/entity"
)
type IntentRouter interface {
Route(ctx context.Context, msg entity.Message) (entity.Route, error)
}

View File

@@ -0,0 +1,8 @@
package port
import "context"
type MessageGateway interface {
SendText(ctx context.Context, chatID int64, text string) error
SendTyping(ctx context.Context, chatID int64) error
}

View File

@@ -0,0 +1,12 @@
package port
import (
"context"
"github.com/paramah/gw_telegram/internal/domain/entity"
)
type SessionStore interface {
Get(ctx context.Context, userID int64) (entity.Session, error)
Set(ctx context.Context, session entity.Session) error
Delete(ctx context.Context, userID int64) error
}

View File

@@ -0,0 +1,7 @@
package port
import "context"
type SpeechTranscriber interface {
Transcribe(ctx context.Context, audioData []byte, mimeType string) (string, error)
}

View File

@@ -0,0 +1,10 @@
package port
import (
"context"
"github.com/paramah/gw_telegram/internal/domain/entity"
)
type WorkflowDispatcher interface {
Dispatch(ctx context.Context, req entity.WorkflowRequest) (entity.WorkflowResponse, error)
}