common

package
v0.30.4 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2022 License: AGPL-3.0, AGPL-3.0-only Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Common

type Common struct {
	Config config.AppConfig

	V *validator.Validate
	// contains filtered or unexported fields
}

func New

func New(
	log *zap.Logger,
	auth auth.Service,
	session session.Manager,
	config config.AppConfig,
) (Common, error)

func (Common) GetHTTPAccessor

func (h Common) GetHTTPAccessor(c *fiber.Ctx) *accessor.Accessor

func (Common) MiddlewareAccessTokenAuth

func (h Common) MiddlewareAccessTokenAuth(ctx *fiber.Ctx) error

func (Common) MiddlewareSessionAuth

func (h Common) MiddlewareSessionAuth(c *fiber.Ctx) error

func (Common) NeedLogin

func (h Common) NeedLogin(c *fiber.Ctx) error

func (Common) ValidationError

func (h Common) ValidationError(c *fiber.Ctx, err error) error

Jump to

Keyboard shortcuts

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