mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-13 03:24:26 +00:00
428ef4acdb
* fix: move user by id to query side * fix: move get passwordless to query side # Conflicts: # internal/user/repository/eventsourcing/eventstore.go * fix: move get passwordless to query side * remove user eventstore * remove unused models * org changes * org changes * fix: move org queries to query side * fix: remove org eventstore * fix: remove org eventstore * fix: remove org eventstore * remove project from es v1 * project cleanup * project cleanup * fix: remove org eventstore * fix: remove iam eventstore Co-authored-by: Livio Amstutz <livio.a@gmail.com>
47 lines
1.4 KiB
Go
47 lines
1.4 KiB
Go
package eventsourcing
|
|
|
|
//
|
|
//import (
|
|
// "github.com/caos/zitadel/internal/cache/config"
|
|
// sd "github.com/caos/zitadel/internal/config/systemdefaults"
|
|
// "github.com/caos/zitadel/internal/crypto"
|
|
// es_int "github.com/caos/zitadel/internal/eventstore"
|
|
// "github.com/caos/zitadel/internal/id"
|
|
//)
|
|
//
|
|
//const (
|
|
// projectOwnerRole = "PROJECT_OWNER"
|
|
// projectOwnerGlobalRole = "PROJECT_OWNER_GLOBAL"
|
|
//)
|
|
//
|
|
//type ProjectEventstore struct {
|
|
// es_int.Eventstore
|
|
// projectCache *ProjectCache
|
|
// passwordAlg crypto.HashAlgorithm
|
|
// pwGenerator crypto.Generator
|
|
// idGenerator id.Generator
|
|
// ClientKeySize int
|
|
//}
|
|
//
|
|
//type ProjectConfig struct {
|
|
// es_int.Eventstore
|
|
// Cache *config.CacheConfig
|
|
//}
|
|
//
|
|
//func StartProject(conf ProjectConfig, systemDefaults sd.SystemDefaults) (*ProjectEventstore, error) {
|
|
// projectCache, err := StartCache(conf.Cache)
|
|
// if err != nil {
|
|
// return nil, err
|
|
// }
|
|
// passwordAlg := crypto.NewBCrypt(systemDefaults.SecretGenerators.PasswordSaltCost)
|
|
// pwGenerator := crypto.NewHashGenerator(systemDefaults.SecretGenerators.ClientSecretGenerator, passwordAlg)
|
|
// return &ProjectEventstore{
|
|
// Eventstore: conf.Eventstore,
|
|
// projectCache: projectCache,
|
|
// passwordAlg: passwordAlg,
|
|
// pwGenerator: pwGenerator,
|
|
// idGenerator: id.SonyFlakeGenerator,
|
|
// ClientKeySize: int(systemDefaults.SecretGenerators.ApplicationKeySize),
|
|
// }, nil
|
|
//}
|