mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-13 19:44:21 +00:00
17 lines
376 B
Go
17 lines
376 B
Go
|
package eventstore
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
"github.com/caos/zitadel/internal/iam/model"
|
||
|
iam_event "github.com/caos/zitadel/internal/iam/repository/eventsourcing"
|
||
|
)
|
||
|
|
||
|
type IamRepository struct {
|
||
|
IamID string
|
||
|
IamEvents *iam_event.IamEventstore
|
||
|
}
|
||
|
|
||
|
func (repo *IamRepository) GetIam(ctx context.Context) (*model.Iam, error) {
|
||
|
return repo.IamEvents.IamByID(ctx, repo.IamID)
|
||
|
}
|