customer/internal/initialize/clients.go

26 lines
523 B
Go
Raw Normal View History

2023-05-16 01:12:07 +00:00
package initialize
import (
2023-05-17 20:27:09 +00:00
"go.uber.org/zap"
2023-05-16 04:01:55 +00:00
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/client"
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
2023-05-16 01:12:07 +00:00
)
type ClientsDeps struct {
2023-05-17 20:27:09 +00:00
Logger *zap.Logger
AuthURL *models.AuthMicroServiceURL
2023-05-16 01:12:07 +00:00
}
type Clients struct {
2023-05-16 04:01:55 +00:00
AuthClient *client.AuthClient
2023-05-16 01:12:07 +00:00
}
func NewClients(deps *ClientsDeps) *Clients {
return &Clients{
AuthClient: client.NewAuthClient(&client.AuthClientDeps{
Logger: deps.Logger,
URLs: deps.AuthURL,
}),
}
}