transport

package
v0.0.0-...-5abcb53 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateLoggingMiddleware

func CreateLoggingMiddleware(logger *lecho.Logger) echo.MiddlewareFunc

func CreateRateLimitMiddleware

func CreateRateLimitMiddleware(requestsPerSecond int, burst int) echo.MiddlewareFunc

func InitEcho

func InitEcho(c *service.Config, logger *lecho.Logger) (e *echo.Echo)

func RegisterLegacyEndpoints

func RegisterLegacyEndpoints(svc *service.LndhubService, e *echo.Echo, secured *echo.Group, securedWithStrictRateLimit *echo.Group, strictRateLimitMiddleware echo.MiddlewareFunc, adminMw echo.MiddlewareFunc, logMw echo.MiddlewareFunc)

func RegisterV2Endpoints

func RegisterV2Endpoints(svc *service.LndhubService, e *echo.Echo, secured *echo.Group, securedWithStrictRateLimit *echo.Group, strictRateLimitMiddleware echo.MiddlewareFunc, adminMw echo.MiddlewareFunc, logMw echo.MiddlewareFunc)

func StartPrometheusEcho

func StartPrometheusEcho(logger *lecho.Logger, svc *service.LndhubService, e *echo.Echo)

Types

This section is empty.

Jump to

Keyboard shortcuts

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