home

package
v4.9.1 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2025 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	LibraryPath     string
	CoverMaxWidth   int
	LatestDocsLimit int
}

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

func NewController

func NewController(hlRepository highlightsRepository, readingRepository readingRepository, sender Sender, idx IdxReaderWriter, cfg Config) *Controller

func (*Controller) Index

func (d *Controller) Index(c *fiber.Ctx) error

type IdxReaderWriter

type IdxReaderWriter interface {
	DocumentByID(ID string) (index.Document, error)
	Count(t string) (uint64, error)
	LatestDocs(limit int) ([]index.Document, error)
}

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

type Sender

type Sender interface {
	SendDocument(address, subject, libraryPath, fileName string) error
	From() string
}

Jump to

Keyboard shortcuts

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