common

package
v0.22.1 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2022 License: AGPL-3.0, AGPL-3.0-only Imports: 13 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 {
	// contains filtered or unexported fields
}

func New

func New(
	log *zap.Logger,
	auth domain.AuthService,
	session session.Manager,
) (Common, error)

func (Common) GetHTTPAccessor

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

func (Common) InternalError

func (h Common) InternalError(c *fiber.Ctx, err error, message string, logFields ...zap.Field) error

func (Common) MiddlewareAccessTokenAuth

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

func (Common) MiddlewareSessionAuth

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

Jump to

Keyboard shortcuts

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