internal

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: ISC Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintDev

func PrintDev(e *echo.Echo)

PrintDev outputs some useful dev information such as http routes and current settings being used.

func SetupEcho

func SetupEcho(l log.Logger) *echo.Echo

SetupEcho will set up and return an echo server.

func SetupHTTPEndpoints

func SetupHTTPEndpoints(deps *Deps, e *echo.Echo)

SetupHTTPEndpoints will register the http endpoints.

func SetupHybrid

func SetupHybrid(cfg config.Config, l log.Logger, e *echo.Echo) *server.SocketServer

SetupHybrid will setup handlers for http=>socket communication.

func SetupSocketMetrics

func SetupSocketMetrics(s *server.SocketServer)

SetupSocketMetrics will setup the socket server metrics.

func SetupSockets

func SetupSockets(cfg config.Socket, e *echo.Echo) *server.SocketServer

SetupSockets will setup handlers and socket server.

func SetupSwagger

func SetupSwagger(cfg config.Server, e *echo.Echo)

SetupSwagger will enable the swagger endpoints.

Types

type Deps

type Deps struct {
	PaymentService        dpp.PaymentService
	PaymentRequestService dpp.PaymentRequestService
	ProofsService         dpp.ProofsService
}

Deps holds all the dependencies.

func SetupDeps

func SetupDeps(cfg config.Config, l log.Logger) *Deps

SetupDeps will setup all required dependent services.

Jump to

Keyboard shortcuts

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