Documentation ¶
Index ¶
- Constants
- func CastPersonData(raw map[string]interface{}) map[string]res.PersonRevisionDataItem
- func SafeDecodeExtra(k1 reflect.Type, k2 reflect.Type, input interface{}) (interface{}, error)
- type Handler
- func (h Handler) GetCharacter(c *fiber.Ctx) error
- func (h Handler) GetCharacterRelatedPersons(c *fiber.Ctx) error
- func (h Handler) GetCharacterRelatedSubjects(c *fiber.Ctx) error
- func (h Handler) GetCurrentUser(c *fiber.Ctx) error
- func (h Handler) GetEpisode(c *fiber.Ctx) error
- func (h Handler) GetIndex(c *fiber.Ctx) error
- func (h Handler) GetIndexSubjects(c *fiber.Ctx) error
- func (h Handler) GetPerson(c *fiber.Ctx) error
- func (h Handler) GetPersonRelatedCharacters(c *fiber.Ctx) error
- func (h Handler) GetPersonRelatedSubjects(c *fiber.Ctx) error
- func (h Handler) GetPersonRevision(c *fiber.Ctx) error
- func (h Handler) GetSubject(c *fiber.Ctx) error
- func (h Handler) GetSubjectRelatedCharacters(c *fiber.Ctx) error
- func (h Handler) GetSubjectRelatedPersons(c *fiber.Ctx) error
- func (h Handler) GetSubjectRelatedSubjects(c *fiber.Ctx) error
- func (h Handler) ListCollection(c *fiber.Ctx) error
- func (h Handler) ListEpisode(c *fiber.Ctx) error
- func (h Handler) ListPersonRevision(c *fiber.Ctx) error
- func (h Handler) MiddlewareAccessUser() fiber.Handler
Constants ¶
View Source
const CacheDuration = 300
Variables ¶
This section is empty.
Functions ¶
func CastPersonData ¶
func CastPersonData(raw map[string]interface{}) map[string]res.PersonRevisionDataItem
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func New ¶
func New( s domain.SubjectService, c domain.CharacterService, p domain.PersonService, a domain.AuthRepo, e domain.EpisodeRepo, r domain.RevisionRepo, index domain.IndexRepo, user domain.UserRepo, cache cache.Generic, log *zap.Logger, ) Handler
func (Handler) GetCharacter ¶
func (Handler) GetCharacterRelatedPersons ¶
func (Handler) GetCharacterRelatedSubjects ¶
func (Handler) GetCurrentUser ¶
func (Handler) GetEpisode ¶
func (Handler) GetIndexSubjects ¶
func (Handler) GetPersonRelatedCharacters ¶
func (Handler) GetPersonRelatedSubjects ¶
func (Handler) GetPersonRevision ¶ added in v0.10.1
func (Handler) GetSubject ¶
func (Handler) GetSubjectRelatedCharacters ¶
func (Handler) GetSubjectRelatedPersons ¶
func (Handler) GetSubjectRelatedSubjects ¶
func (Handler) ListCollection ¶
func (Handler) ListEpisode ¶
func (Handler) ListPersonRevision ¶ added in v0.10.1
func (Handler) MiddlewareAccessUser ¶
func (h Handler) MiddlewareAccessUser() fiber.Handler
Source Files ¶
Click to show internal directories.
Click to hide internal directories.