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 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
func (*Auth) EditPassword ¶
func (*Auth) UpdatePassword ¶
type AuthConfig ¶
type IdxReader ¶ added in v3.3.0
type IdxReader interface { Search(keywords string, page, resultsPerPage int) (*index.PaginatedResult, error) Count() (uint64, error) Close() error Document(ID string) (index.Document, error) SameSubjects(slug string, quantity int) ([]index.Document, error) SameAuthors(slug string, quantity int) ([]index.Document, error) SameSeries(slug string, quantity int) ([]index.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.