mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 11:04:25 +00:00
8dcbbc87ca
* fix: adaot config to commands (and queries) * remove dependency on vv2 in v1 * add queries user to operator * set password for queries on tests * set password for queries on tests * fix config
24 lines
422 B
Go
24 lines
422 B
Go
package v1
|
|
|
|
import (
|
|
"github.com/caos/zitadel/internal/cache/config"
|
|
"github.com/caos/zitadel/internal/eventstore/v1/internal/repository/sql"
|
|
)
|
|
|
|
type Config struct {
|
|
Repository sql.Config
|
|
ServiceName string
|
|
Cache *config.CacheConfig
|
|
}
|
|
|
|
func Start(conf Config) (Eventstore, error) {
|
|
repo, _, err := sql.Start(conf.Repository)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return &eventstore{
|
|
repo: repo,
|
|
}, nil
|
|
}
|