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.IndexID) (model.Index, error)
New(ctx context.Context, i *model.Index) error
Update(ctx context.Context, id model.IndexID, title string, desc string) error
Delete(ctx context.Context, id model.IndexID) error
CountSubjects(ctx context.Context, id model.IndexID, subjectType model.SubjectType) (int64, error)
ListSubjects(
ctx context.Context, id model.IndexID, subjectType model.SubjectType, limit, offset int,
) ([]Subject, error)
AddOrUpdateIndexSubject(
ctx context.Context, id model.IndexID, subjectID model.SubjectID, sort uint32, comment string,
) (*Subject, error)
DeleteIndexSubject(
ctx context.Context, id model.IndexID, subjectID model.SubjectID,
) error
}
Click to show internal directories.
Click to hide internal directories.