Documentation ¶
Index ¶
- type Handler
- func (h Handler) AccessTokenAuthMiddleware(ctx *fiber.Ctx) error
- func (h Handler) CreatePersonalAccessToken(c *fiber.Ctx) error
- func (h Handler) DeletePersonalAccessToken(c *fiber.Ctx) error
- func (h Handler) GetCharacter(c *fiber.Ctx) error
- func (h Handler) GetCharacterImage(c *fiber.Ctx) error
- func (h Handler) GetCharacterRelatedPersons(c *fiber.Ctx) error
- func (h Handler) GetCharacterRelatedSubjects(c *fiber.Ctx) error
- func (h Handler) GetCharacterRevision(c *fiber.Ctx) error
- func (h Handler) GetCollection(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) GetPersonImage(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) GetSubjectImage(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) GetSubjectRevision(c *fiber.Ctx) error
- func (h Handler) GetUser(c *fiber.Ctx) error
- func (h Handler) InternalServerError(c *fiber.Ctx, err error, message string) error
- func (h Handler) ListCharacterRevision(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) ListSubjectRevision(c *fiber.Ctx) error
- func (h Handler) PageCreateAccessToken(c *fiber.Ctx) error
- func (h Handler) PageListAccessToken(c *fiber.Ctx) error
- func (h Handler) PageLogin(c *fiber.Ctx) error
- func (h Handler) PrivateLogin(c *fiber.Ctx) error
- func (h Handler) PrivateLogout(c *fiber.Ctx) error
- func (h Handler) RevokeSession(c *fiber.Ctx) error
- func (h Handler) SessionAuthMiddleware(c *fiber.Ctx) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func New ¶
func New( cfg config.AppConfig, s domain.SubjectService, c domain.CharacterService, p domain.PersonService, a domain.AuthService, e domain.EpisodeRepo, r domain.RevisionRepo, index domain.IndexRepo, user domain.UserRepo, cache cache.Generic, captcha captcha.Manager, session session.Manager, rateLimit rate.Manager, log *zap.Logger, engine frontend.TemplateEngine, oauth oauth.Manager, ) (Handler, error)
func (Handler) AccessTokenAuthMiddleware ¶
func (Handler) CreatePersonalAccessToken ¶ added in v0.18.0
func (Handler) DeletePersonalAccessToken ¶ added in v0.18.0
func (Handler) GetCharacter ¶
func (Handler) GetCharacterImage ¶ added in v0.17.0
func (Handler) GetCharacterRelatedPersons ¶
func (Handler) GetCharacterRelatedSubjects ¶
func (Handler) GetCharacterRevision ¶
func (Handler) GetCollection ¶
func (Handler) GetCurrentUser ¶
func (Handler) GetEpisode ¶
func (Handler) GetIndexSubjects ¶
func (Handler) GetPersonImage ¶ added in v0.17.0
func (Handler) GetPersonRelatedCharacters ¶
func (Handler) GetPersonRelatedSubjects ¶
func (Handler) GetPersonRevision ¶
func (Handler) GetSubject ¶
func (Handler) GetSubjectImage ¶ added in v0.17.0
func (Handler) GetSubjectRelatedCharacters ¶
func (Handler) GetSubjectRelatedPersons ¶
func (Handler) GetSubjectRelatedSubjects ¶
func (Handler) GetSubjectRevision ¶
func (Handler) InternalServerError ¶ added in v0.19.0
func (Handler) ListCharacterRevision ¶
func (Handler) ListCollection ¶
func (Handler) ListEpisode ¶
func (Handler) ListPersonRevision ¶
func (Handler) ListSubjectRevision ¶
func (Handler) PageCreateAccessToken ¶ added in v0.18.0
func (Handler) PageListAccessToken ¶ added in v0.18.0
PageListAccessToken 直接调用了 `query.Query`。 因为这只是个demo网页,在后续重构为 api 的时候仍然应该替换为 service 。
func (Handler) PrivateLogin ¶
func (Handler) PrivateLogout ¶
func (Handler) RevokeSession ¶
func (Handler) SessionAuthMiddleware ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.