sync: migrate ai-operator to Gitea (2026-08-10)

This commit is contained in:
konturai-ops
2026-08-10 15:26:52 +00:00
commit 53652b95ad
173 changed files with 16676 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
package app
import (
"context"
"log/slog"
"ai-operator/internal/config"
)
type App struct {
logger *slog.Logger
cfg config.Config
}
func New(logger *slog.Logger, cfg config.Config) *App {
return &App{logger: logger, cfg: cfg}
}
func (a *App) Start(ctx context.Context) error {
a.logger.InfoContext(ctx, "skeleton app started", "ari_app", a.cfg.Asterisk.ARIApp, "media_mode", a.cfg.Asterisk.MediaMode)
return nil
}
func (a *App) Stop(ctx context.Context) error {
a.logger.InfoContext(ctx, "skeleton app stopping")
return nil
}
+9
View File
@@ -0,0 +1,9 @@
package app
const Name = "ai-operator"
var (
Version = "0.1.0-tz01"
GitCommit = "unknown"
BuildTime = "unknown"
)