mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-25 09:07:48 +00:00
21 lines
460 B
Go
21 lines
460 B
Go
|
package eventstore
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
"github.com/caos/zitadel/internal/iam/model"
|
||
|
iam_event "github.com/caos/zitadel/internal/iam/repository/eventsourcing"
|
||
|
)
|
||
|
|
||
|
type IamRepo struct {
|
||
|
IamID string
|
||
|
IamEvents *iam_event.IamEventstore
|
||
|
}
|
||
|
|
||
|
func (repo *IamRepo) Health(ctx context.Context) error {
|
||
|
return repo.IamEvents.Health(ctx)
|
||
|
}
|
||
|
|
||
|
func (repo *IamRepo) IamByID(ctx context.Context) (*model.Iam, error) {
|
||
|
return repo.IamEvents.IamByID(ctx, repo.IamID)
|
||
|
}
|