Documentation
¶
Index ¶
- func PrintDev(e *echo.Echo)
- func ResumeActiveChannels(deps *SocketDeps) error
- func SetupEcho(l log.Logger) *echo.Echo
- func SetupHTTPEndpoints(cfg config.Config, services *RestDeps, g *echo.Group)
- func SetupHealthEndpoint(cfg config.Config, g *echo.Group, c *client.Client)
- func SetupSocketClient(cfg config.Config, deps *SocketDeps, c *client.Client)
- func SetupSocketHTTPEndpoints(cfg config.Deployment, services *SocketDeps, g *echo.Group)
- func SetupSocketServer(cfg config.Socket, e *echo.Echo) *server.SocketServer
- func SetupSwagger(cfg config.Server, e *echo.Echo)
- type RestDeps
- type SocketDeps
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintDev ¶
PrintDev outputs some useful dev information such as http routes and current settings being used.
func ResumeActiveChannels ¶ added in v0.1.3
func ResumeActiveChannels(deps *SocketDeps) error
ResumeActiveChannels resume listening to active peer channels.
func SetupHTTPEndpoints ¶
SetupHTTPEndpoints will register the http endpoints.
func SetupHealthEndpoint ¶
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 ¶
SetupSocketServer will setup and return a socket server.
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
UserService payd.UserService
TransactionService payd.TransactionService
}
RestDeps contains all dependencies used for the rest client.
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
PeerChannelsService payd.PeerChannelsService
PeerChannelsNotifyService payd.PeerChannelsNotifyService
}
SocketDeps contains all dependencies of the socket server.