sockets

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2022 License: ISC Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RoutePayment                = "payment"
	RoutePaymentACK             = "payment.ack"
	RouteProofCreate            = "proof.create"
	RoutePaymentRequestCreate   = "paymentrequest.create"
	RoutePaymentRequestResponse = "paymentrequest.response"
	RoutePaymentRequestError    = "paymentrequest.error"
)

Routes contain the unique keys for socket messages used in the payment protocol.

View Source
const (
	// HeaderOrigin identifies this client by id, used so the client doesn't handle its own messages.
	HeaderOrigin = "X-Origin-ID"
)

Common headers for sockets.

Variables

This section is empty.

Functions

func NewPaymentRequest

func NewPaymentRequest(transacter payd.Transacter, svc payd.PaymentRequestService, envSvc payd.EnvelopeService, dppCfg *config.DPP) *paymentRequest

NewPaymentRequest will setup and return a new PaymentRequest socket listener.

func NewPayments

func NewPayments(svc payd.PaymentsService) *payments

NewPayments will setup and return a new Payments socket listener.

func NewProofs

func NewProofs(svc payd.ProofsService, cli *client.Client) *proofs

NewProofs will setup proof handlers with their deps.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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