internal

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2021 License: ISC Imports: 28 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(cfg config.Config, services *RestDeps, g *echo.Group)

SetupHTTPEndpoints will register the http endpoints.

func SetupHealthEndpoint

func SetupHealthEndpoint(cfg config.Config, g *echo.Group, c *client.Client)

SetupHealthEndpoint setup the health check.

func SetupSocketClient

func SetupSocketClient(cfg config.Config, deps *SocketDeps, c *client.Client)

SetupSocketClient will setup handlers and socket server.

func SetupSocketHTTPEndpoints

func SetupSocketHTTPEndpoints(cfg config.Deployment, services *SocketDeps, g *echo.Group)

SetupSocketHTTPEndpoints will register the http endpoints used for sockets, there are some differences between this and the standard http endpoints in terms of data repos used.

func SetupSocketServer

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

SetupSocketServer will setup and return a socket server.

func SetupSwagger

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

SetupSwagger will enable the swagger endpoints.

Types

type RestDeps

type RestDeps struct {
	DestinationService    payd.DestinationsService
	PaymentService        payd.PaymentsService
	PaymentRequestService payd.PaymentRequestService
	PayService            payd.PayService
	EnvelopeService       payd.EnvelopeService
	InvoiceService        payd.InvoiceService
	BalanceService        payd.BalanceService
	ProofService          payd.ProofsService
	OwnerService          payd.OwnerService
	TransactionService    payd.TransactionService
}

RestDeps contains all dependencies used for the rest client.

func SetupRestDeps

func SetupRestDeps(cfg *config.Config, l log.Logger, db *sqlx.DB, c *client.Client) *RestDeps

SetupRestDeps will setup dependencies used in the rest server.

type SocketDeps

type SocketDeps struct {
	DestinationService    payd.DestinationsService
	PaymentService        payd.PaymentsService
	PayService            payd.PayService
	EnvelopeService       payd.EnvelopeService
	InvoiceService        payd.InvoiceService
	BalanceService        payd.BalanceService
	ProofService          payd.ProofsService
	OwnerService          payd.OwnerService
	PaymentRequestService payd.PaymentRequestService
	ConnectService        payd.ConnectService
	TransactionService    payd.TransactionService
}

SocketDeps contains all dependencies of the socket server.

func SetupSocketDeps

func SetupSocketDeps(cfg *config.Config, l log.Logger, db *sqlx.DB, c *client.Client) *SocketDeps

SetupSocketDeps will setup dependencies used in the socket server.

Jump to

Keyboard shortcuts

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