common

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 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) MiddlewareAccessTokenAuth

func (h Common) MiddlewareAccessTokenAuth(next echo.HandlerFunc) echo.HandlerFunc

func (Common) MiddlewareSessionAuth

func (h Common) MiddlewareSessionAuth(next echo.HandlerFunc) echo.HandlerFunc

func (Common) ValidationError

func (h Common) ValidationError(c echo.Context, err error) error

Jump to

Keyboard shortcuts

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