mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-23 23:37:56 +00:00
bla
This commit is contained in:
20
backend/domain/domain.go
Normal file
20
backend/domain/domain.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package domain
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/zitadel/zitadel/backend/storage/database"
|
||||
)
|
||||
|
||||
type defaults struct {
|
||||
db database.Pool
|
||||
}
|
||||
|
||||
type clientSetter interface {
|
||||
setClient(database.QueryExecutor)
|
||||
}
|
||||
|
||||
func (d *defaults) acquire(ctx context.Context, setter clientSetter) {
|
||||
d.db.Acquire(ctx)
|
||||
setter.setClient(d.db)
|
||||
}
|
Reference in New Issue
Block a user