Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Author ¶
type Author interface {
BirthName() string
Description(language string) string
InstanceOf() float64
Gender() float64
DateOfBirth() precisiondate.PrecisionDate
DateOfDeath() precisiondate.PrecisionDate
Image() string
Website() string
WikipediaLink(language string) string
SourceID() string
RetrievedOn() time.Time
Pseudonyms() []string
}
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(hlRepository highlightsRepository, sender Sender, idx IdxReader, cfg Config, dataSource DataSource, appFs afero.Fs) *Controller
type DataSource ¶ added in v4.7.0
type IdxReader ¶
type IdxReader interface {
SearchByAuthor(authorSlug string, page, resultsPerPage int) (result.Paginated[[]index.Document], error)
Author(slug, lang string) (index.Author, error)
IndexAuthor(author index.Author) error
}
IdxReader defines a set of author reading operations over an index
Click to show internal directories.
Click to hide internal directories.