core/internal/initialize/clients.go

25 lines
516 B
Go
Raw Normal View History

2024-10-25 15:26:03 +00:00
package initialize
import (
"context"
2025-02-24 17:06:12 +00:00
"gitea.pena/SQuiz/common/dal"
"gitea.pena/SQuiz/core/internal/clients/auth"
2024-10-25 15:26:03 +00:00
)
type Clients struct {
AuthClient *auth.AuthClient
2025-02-24 17:06:12 +00:00
//TgClient *telegram.TelegramClient
2024-10-25 15:26:03 +00:00
}
func NewClients(ctx context.Context, cfg Config, pgDAL *dal.DAL) (*Clients, error) {
2025-02-24 17:06:12 +00:00
//tgClient, err := telegram.NewTelegramClient(ctx, pgDAL)
//if err != nil {
// return nil, err
//}
2024-10-25 15:26:03 +00:00
return &Clients{
2025-02-24 17:06:12 +00:00
//TgClient: tgClient,
AuthClient: auth.NewAuthClient(cfg.AuthMicroserviceURL),
2024-10-25 15:26:03 +00:00
}, nil
}