Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Exam ¶
type Service ¶
type Service interface { Save(ctx context.Context, exam Exam) (Exam, error) GetByID(ctx context.Context, id int32) (Exam, error) GetByPassword(ctx context.Context, password string) (Exam, error) List(ctx context.Context, size int32, page int32) ([]Exam, int32, error) Update(ctx context.Context, exam Exam) (Exam, error) Delete(ctx context.Context, id int32) error }
type Store ¶
type Store interface { Save(ctx context.Context, exam Exam) (Exam, error) GetByID(ctx context.Context, id int32) (Exam, error) GetByPassword(ctx context.Context, password string) (Exam, error) ListAll(ctx context.Context) ([]Exam, error) ListPaginated(ctx context.Context, offset int32, limit int32) ([]Exam, error) GetTotalSize(ctx context.Context) (int32, error) Update(ctx context.Context, exam Exam) (Exam, error) Delete(ctx context.Context, id int32) error }
Click to show internal directories.
Click to hide internal directories.