Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(readingRepository readingRepository, idxReader idxReader) *Controller
func (*Controller) Completed ¶
func (c *Controller) Completed(ctx fiber.Ctx) error
Completed renders the list of documents completed by the user
func (*Controller) ToggleComplete ¶
func (c *Controller) ToggleComplete(ctx fiber.Ctx) error
ToggleComplete marks a document as complete or incomplete. If a date is provided in the request body, it sets the completion date to that value. If no date is provided (POST), it toggles between complete (with current date) and incomplete.
Click to show internal directories.
Click to hide internal directories.