author

package
v4.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: GPL-3.0 Imports: 9 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 {
	WordsPerMinute float64
}

type Controller

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

func NewController

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

func (*Controller) Search

func (a *Controller) Search(c *fiber.Ctx) error

type IdxReader

type IdxReader interface {
	SearchByAuthor(authorSlug string, page, resultsPerPage int) (result.Paginated[[]index.Document], error)
	Author(slug string) (index.Author, error)
}

IdxReader defines a set of author reading operations over an index

type Sender

type Sender interface {
	From() string
}

Jump to

Keyboard shortcuts

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