Documentation
¶
Index ¶
- func Cover(c *fiber.Ctx, homeDir, libraryPath string, ...) error
- func Delete(c *fiber.Ctx, libraryPath string, writer IdxWriter, appFs afero.Fs) error
- func DocReader(c *fiber.Ctx, libraryPath string, idx IdxReader) error
- func Document(c *fiber.Ctx, libraryPath string, sender Sender, idx IdxReader, ...) error
- func Download(c *fiber.Ctx, homeDir, libraryPath string, idx IdxReader) error
- func Root(c *fiber.Ctx) error
- func Search(c *fiber.Ctx, idx IdxReader, sender Sender, wordsPerMinute float64, ...) error
- func Send(c *fiber.Ctx, libraryPath string, sender Sender, idx IdxReader) error
- type Auth
- func (a *Auth) EditPassword(c *fiber.Ctx) error
- func (a *Auth) Login(c *fiber.Ctx) error
- func (a *Auth) Recover(c *fiber.Ctx) error
- func (a *Auth) Request(c *fiber.Ctx) error
- func (a *Auth) SignIn(c *fiber.Ctx) error
- func (a *Auth) SignOut(c *fiber.Ctx) error
- func (a *Auth) UpdatePassword(c *fiber.Ctx) error
- type AuthConfig
- type Highlights
- type IdxReader
- type IdxWriter
- type Page
- type PagesNavigator
- type Sender
- type Users
- type UsersConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Auth ¶
type Auth struct {
// contains filtered or unexported fields
}
func NewAuth ¶
func NewAuth(repository authRepository, sender recoveryEmail, cfg AuthConfig, printers map[string]*message.Printer) *Auth
type AuthConfig ¶
type Highlights ¶ added in v3.8.0
type Highlights struct {
// contains filtered or unexported fields
}
func NewHighlights ¶ added in v3.8.0
func NewHighlights(hlRepository highlightsRepository, usrRepository usersRepository, sender Sender, wordsPerMinute float64, idx IdxReader) *Highlights
func (*Highlights) Highlights ¶ added in v3.8.0
func (h *Highlights) Highlights(c *fiber.Ctx) error
type IdxReader ¶ added in v3.3.0
type IdxReader interface {
Search(keywords string, page, resultsPerPage int) (*search.PaginatedResult, error)
Count() (uint64, error)
Close() error
Document(Slug string) (search.Document, error)
Documents(IDs []string) ([]search.Document, error)
SameSubjects(slug string, quantity int) ([]search.Document, error)
SameAuthors(slug string, quantity int) ([]search.Document, error)
SameSeries(slug string, quantity int) ([]search.Document, error)
}
IdxReader defines a set of reading operations over an index
type PagesNavigator ¶
type PagesNavigator struct {
}
PagesNavigator contains all pages links, as well as links to the previous and next pages from the current one
type Users ¶
type Users struct {
// contains filtered or unexported fields
}
func NewUsers ¶
func NewUsers(repository usersRepository, usersCfg UsersConfig) *Users
NewUsers returns a new instance of the users controller
func (*Users) Create ¶
Create gathers information coming from the new user form and creates a new user
type UsersConfig ¶ added in v3.1.1
Click to show internal directories.
Click to hide internal directories.