highlight

package
v4.21.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2026 License: GPL-3.0 Imports: 7 Imported by: 0

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(hlRepository highlightsRepository, readingRepository readingRepository, usrRepository usersRepository, sender Sender, wordsPerMinute float64, idx IdxReaderWriter) *Controller

func (*Controller) Create

func (h *Controller) Create(c fiber.Ctx) error

func (*Controller) Delete

func (h *Controller) Delete(c fiber.Ctx) error

func (*Controller) List

func (h *Controller) List(c fiber.Ctx) error

type IdxReaderWriter

type IdxReaderWriter interface {
	Document(Slug string) (index.Document, error)
	Languages() ([]string, error)
}

IdxReaderWriter defines a set of reading and writing operations over an index

type Sender

type Sender interface {
	SendDocument(address, subject string, file []byte, fileName string) error
	From() string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL