Documentation
¶
Index ¶
- func Handler(r StudentsRepo, logger *slog.Logger) http.Handler
- type ID
- type Repo
- func (d *Repo) Add(ctx context.Context, student Student) error
- func (d *Repo) Delete(ctx context.Context, id ID) error
- func (d *Repo) GetByAccount(ctx context.Context, account string) (Student, error)
- func (d *Repo) GetByName(ctx context.Context, name string) (Student, error)
- func (d *Repo) List(ctx context.Context) ([]Student, error)
- type Student
- type StudentsRepo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.