handler

package
v0.22.5 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2022 License: AGPL-3.0, AGPL-3.0-only Imports: 43 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Module("handler",
	fx.Provide(
		New,
		common.New,
		user.New,
		person.New,
		subject.New,
		character.New,
	),
)

Functions

This section is empty.

Types

type Handler

type Handler struct {
	common.Common
	Subject   subject.Subject
	Character character.Character
	Person    person.Person

	User user.User
	// contains filtered or unexported fields
}

func New

func New(
	common common.Common,
	cfg config.AppConfig,
	a domain.AuthService,
	r domain.RevisionRepo,
	topic domain.TopicRepo,
	g domain.GroupRepo,
	index domain.IndexRepo,
	user domain.UserRepo,
	cache cache.Cache,
	app app.App,
	captcha captcha.Manager,
	session session.Manager,
	rateLimit rate.Manager,
	userHandler user.User,
	personHandler person.Person,
	log *zap.Logger,
	subject subject.Subject,
	engine frontend.TemplateEngine,
	character character.Character,
	oauth oauth.Manager,
) (Handler, error)

func (Handler) CreatePersonalAccessToken added in v0.18.0

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

func (Handler) DeletePersonalAccessToken added in v0.18.0

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

func (Handler) GetCharacterComments added in v0.22.0

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

func (Handler) GetCharacterRevision

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

func (Handler) GetEpisode

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

func (Handler) GetEpisodeComments added in v0.22.0

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

func (Handler) GetGroupProfileByNamePrivate added in v0.20.9

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

func (Handler) GetGroupTopic added in v0.22.0

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

func (Handler) GetIndex

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

func (Handler) GetIndexComments added in v0.22.0

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

func (Handler) GetIndexSubjects

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

func (Handler) GetPersonComments added in v0.22.0

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

func (Handler) GetPersonRevision

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

func (Handler) GetSubjectRevision

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

func (Handler) GetSubjectTopic added in v0.22.0

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

func (Handler) ListCharacterRevision

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

func (Handler) ListEpisode

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

func (Handler) ListGroupMembersPrivate added in v0.20.9

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

func (Handler) ListGroupTopics added in v0.22.0

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

func (Handler) ListPersonRevision

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

func (Handler) ListSubjectRevision

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

func (Handler) ListSubjectTopics added in v0.22.0

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

func (Handler) PageCreateAccessToken added in v0.18.0

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

func (Handler) PageListAccessToken added in v0.18.0

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

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

func (Handler) PageLogin added in v0.16.0

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

func (Handler) PrivateLogin

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

func (Handler) PrivateLogout

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

func (Handler) RevokeSession

func (h Handler) RevokeSession(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