Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Repo ¶ added in v0.27.4
type Repo interface {
// Get return a repository model.
Get(ctx context.Context, id model.SubjectID, filter Filter) (model.Subject, error)
GetByIDs(ctx context.Context, ids []model.SubjectID, filter Filter) (map[model.SubjectID]model.Subject, error)
GetPersonRelated(ctx context.Context, personID model.PersonID) ([]domain.SubjectPersonRelation, error)
GetCharacterRelated(ctx context.Context, characterID model.CharacterID) ([]domain.SubjectCharacterRelation, error)
GetSubjectRelated(ctx context.Context, subjectID model.SubjectID) ([]domain.SubjectInternalRelation, error)
GetActors(
ctx context.Context, subjectID model.SubjectID, characterIDs []model.CharacterID,
) (map[model.CharacterID][]model.PersonID, error)
}
Click to show internal directories.
Click to hide internal directories.