server

package
v0.0.0-...-14f5618 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(domainWhitelist []string, logger *zap.Logger, env *config.Config) *echo.Echo

Types

type AuthMiddleware

type AuthMiddleware struct {
	Logger     *zap.Logger
	TokenUtils *utils.TokenUtils
}

func (*AuthMiddleware) New

func (am *AuthMiddleware) New(next echo.HandlerFunc) echo.HandlerFunc

type CustomValidator

type CustomValidator struct {
	// contains filtered or unexported fields
}

func (*CustomValidator) Validate

func (cv *CustomValidator) Validate(i interface{}) error

type LogMiddleware

type LogMiddleware struct {
	Logger *zap.Logger
}

func (*LogMiddleware) New

func (lm *LogMiddleware) New(next echo.HandlerFunc) echo.HandlerFunc

Jump to

Keyboard shortcuts

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