mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-14 20:08:02 +00:00
47 lines
1.3 KiB
Go
47 lines
1.3 KiB
Go
|
package handlers
|
||
|
|
||
|
import (
|
||
|
"net/http"
|
||
|
|
||
|
"github.com/zitadel/zitadel/internal/crypto"
|
||
|
"github.com/zitadel/zitadel/internal/eventstore"
|
||
|
_ "github.com/zitadel/zitadel/internal/notification/statik"
|
||
|
"github.com/zitadel/zitadel/internal/query"
|
||
|
)
|
||
|
|
||
|
type NotificationQueries struct {
|
||
|
*query.Queries
|
||
|
es *eventstore.Eventstore
|
||
|
externalPort uint16
|
||
|
externalSecure bool
|
||
|
fileSystemPath string
|
||
|
UserDataCrypto crypto.EncryptionAlgorithm
|
||
|
SMTPPasswordCrypto crypto.EncryptionAlgorithm
|
||
|
SMSTokenCrypto crypto.EncryptionAlgorithm
|
||
|
statikDir http.FileSystem
|
||
|
}
|
||
|
|
||
|
func NewNotificationQueries(
|
||
|
baseQueries *query.Queries,
|
||
|
es *eventstore.Eventstore,
|
||
|
externalPort uint16,
|
||
|
externalSecure bool,
|
||
|
fileSystemPath string,
|
||
|
userDataCrypto crypto.EncryptionAlgorithm,
|
||
|
smtpPasswordCrypto crypto.EncryptionAlgorithm,
|
||
|
smsTokenCrypto crypto.EncryptionAlgorithm,
|
||
|
statikDir http.FileSystem,
|
||
|
) *NotificationQueries {
|
||
|
return &NotificationQueries{
|
||
|
Queries: baseQueries,
|
||
|
es: es,
|
||
|
externalPort: externalPort,
|
||
|
externalSecure: externalSecure,
|
||
|
fileSystemPath: fileSystemPath,
|
||
|
UserDataCrypto: userDataCrypto,
|
||
|
SMTPPasswordCrypto: smtpPasswordCrypto,
|
||
|
SMSTokenCrypto: smsTokenCrypto,
|
||
|
statikDir: statikDir,
|
||
|
}
|
||
|
}
|