Files
sendico/api/pkg/mutil/helpers/factory.go
Stephan D 62a6631b9a
All checks were successful
ci/woodpecker/push/db Pipeline was successful
ci/woodpecker/push/nats Pipeline was successful
service backend
2025-11-07 18:35:26 +01:00

28 lines
609 B
Go

package helpers
import (
"github.com/tech/sendico/pkg/auth"
"github.com/tech/sendico/pkg/db/account"
"github.com/tech/sendico/pkg/db/organization"
"github.com/tech/sendico/pkg/db/policy"
"github.com/tech/sendico/pkg/mlogger"
"github.com/tech/sendico/pkg/mutil/helpers/internal"
)
// NewAccountManager creates a new AccountManager instance
func NewAccountManager(
logger mlogger.Logger,
accountDB account.DB,
orgDB organization.DB,
policyDB policy.DB,
authManager auth.Manager,
) AccountManager {
return internal.NewAccountManager(
logger,
accountDB,
orgDB,
policyDB,
authManager,
)
}