api

package
v0.0.0-...-0064678 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: GPL-3.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBinder

func NewBinder() echo.Binder

func NewValidator

func NewValidator() echo.Validator

Types

type APIService

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

func NewAPIService

func NewAPIService(log *logrus.Entry, dbConn *mongo.Database, debug bool, grpcConn *grpc.ClientConn) (*APIService, error)

func (*APIService) AccessLogMiddleware

func (svc *APIService) AccessLogMiddleware() echo.MiddlewareFunc

func (*APIService) AuthMiddlewareMicro

func (svc *APIService) AuthMiddlewareMicro(rep cl.AuthRepository) echo.MiddlewareFunc

func (*APIService) CSRFMiddleware

func (svc *APIService) CSRFMiddleware() echo.MiddlewareFunc

func (*APIService) LoggingMiddleware

func (svc *APIService) LoggingMiddleware() echo.MiddlewareFunc

func (*APIService) OAuthTelegramMiddleware

func (svc *APIService) OAuthTelegramMiddleware() echo.MiddlewareFunc

func (*APIService) Serve

func (svc *APIService) Serve()

func (*APIService) Shutdown

func (svc *APIService) Shutdown(ctx context.Context) error

func (*APIService) XRequestIDMiddleware

func (svc *APIService) XRequestIDMiddleware() echo.MiddlewareFunc

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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