Documentation ¶
Index ¶
- func CreateLoggingMiddleware(logger *lecho.Logger) echo.MiddlewareFunc
- func CreateRateLimitMiddleware(requestsPerSecond int, burst int) echo.MiddlewareFunc
- func InitEcho(c *service.Config, logger *lecho.Logger) (e *echo.Echo)
- func RegisterLegacyEndpoints(svc *service.LndhubService, e *echo.Echo, secured *echo.Group, ...)
- func RegisterV2Endpoints(svc *service.LndhubService, e *echo.Echo, secured *echo.Group, ...)
- func StartPrometheusEcho(logger *lecho.Logger, svc *service.LndhubService, e *echo.Echo)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateLoggingMiddleware ¶
func CreateLoggingMiddleware(logger *lecho.Logger) echo.MiddlewareFunc
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.
Click to show internal directories.
Click to hide internal directories.