Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repo ¶ added in v0.30.3
type Repo interface { Get(ctx context.Context, id model.PersonID) (model.Person, error) GetByIDs(ctx context.Context, ids []model.PersonID) (map[model.PersonID]model.Person, error) GetSubjectRelated(ctx context.Context, subjectID model.SubjectID) ([]domain.SubjectPersonRelation, error) GetCharacterRelated(ctx context.Context, subjectID model.CharacterID) ([]domain.PersonCharacterRelation, error) }
type Service ¶ added in v0.30.3
type Service interface { Get(ctx context.Context, id model.PersonID) (model.Person, error) GetSubjectRelated(ctx context.Context, subjectID model.SubjectID) ([]model.SubjectPersonRelation, error) GetCharacterRelated(ctx context.Context, characterID model.CharacterID) ([]model.PersonCharacterRelation, error) }
Service TODO: should use repo.
Click to show internal directories.
Click to hide internal directories.