handler

package
v0.30.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 3, 2023 License: AGPL-3.0, AGPL-3.0-only Imports: 42 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Handler

type Handler struct {
	common.Common
	// contains filtered or unexported fields
}

func New

func New(
	common common.Common,
	a auth.Service,
	r revision.Repo,
	index index.Repo,
	cache cache.RedisCache,
	ctrl ctrl.Ctrl,
	captcha captcha.Manager,
	session session.Manager,
	rateLimit rate.Manager,
	search search.Handler,
	log *zap.Logger,
	engine frontend.TemplateEngine,
	oauth oauth.Manager,
) Handler

func (Handler) CreatePersonalAccessToken added in v0.30.3

func (h Handler) CreatePersonalAccessToken(c *fiber.Ctx) error

func (Handler) DeletePersonalAccessToken added in v0.30.3

func (h Handler) DeletePersonalAccessToken(c *fiber.Ctx) error

func (Handler) GetCharacterRevision added in v0.12.0

func (h Handler) GetCharacterRevision(c *fiber.Ctx) error

func (Handler) GetEpisode

func (h Handler) GetEpisode(c *fiber.Ctx) error

func (Handler) GetEpisodeRevision added in v0.30.3

func (h Handler) GetEpisodeRevision(c *fiber.Ctx) error

func (Handler) GetPersonRevision added in v0.10.1

func (h Handler) GetPersonRevision(c *fiber.Ctx) error

func (Handler) GetSubjectRevision added in v0.10.1

func (h Handler) GetSubjectRevision(c *fiber.Ctx) error

func (Handler) ListCharacterRevision added in v0.12.0

func (h Handler) ListCharacterRevision(c *fiber.Ctx) error

func (Handler) ListEpisode

func (h Handler) ListEpisode(c *fiber.Ctx) error

func (Handler) ListEpisodeRevision added in v0.30.3

func (h Handler) ListEpisodeRevision(c *fiber.Ctx) error

func (Handler) ListPersonRevision added in v0.10.1

func (h Handler) ListPersonRevision(c *fiber.Ctx) error

func (Handler) ListSubjectRevision added in v0.10.1

func (h Handler) ListSubjectRevision(c *fiber.Ctx) error

func (Handler) PageCreateAccessToken added in v0.30.3

func (h Handler) PageCreateAccessToken(c *fiber.Ctx) error

func (Handler) PageListAccessToken added in v0.30.3

func (h Handler) PageListAccessToken(c *fiber.Ctx) error

PageListAccessToken 直接调用了 `query.Query`。 因为这只是个demo网页,在后续重构为 api 的时候仍然应该替换为 service 。

func (Handler) PageLogin added in v0.30.3

func (h Handler) PageLogin(c *fiber.Ctx) error

func (Handler) PrivateLogin added in v0.12.4

func (h Handler) PrivateLogin(c *fiber.Ctx) error

func (Handler) PrivateLogout added in v0.13.0

func (h Handler) PrivateLogout(c *fiber.Ctx) error

func (Handler) Search added in v0.30.3

func (h Handler) Search(c *fiber.Ctx) error

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL