service

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: ISC Imports: 10 Imported by: 0

README

PPCTL (Payment Protocol)

This contains structs and interfaces that allow payments to be made between a user and a merchant running a Bip-70 or BIP-270 server.

These have been implemented in the Service package which contains the business logic and some data packages that implement data store layers.

img.png

Packages

The root ppctl package contains the public struct and interface definitions.

service

Implements the service interfaces defined in the root ppctl package to enforce the business logic of the various domains within the payment protocol.

They are built to support paymail and wallet payments.

The services then call the storer interfaces to store and retrieve data.

data

Contains implementations of the Storer interfaces defined in the root ppctl package.

At the moment we support sqlite and a few noop implementations.

In future, we may support other stores such as postgres and mysql.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPayment

func NewPayment(l log.Logger, paymentWtr dpp.PaymentWriter) *payment

NewPayment will create and return a new payment service.

func NewPaymentRequest

func NewPaymentRequest(prRdr dpp.PaymentRequestReader) *paymentRequest

NewPaymentRequest will setup and return a new PaymentRequest service that will generate outputs using the provided outputter which is defined in server config.

func NewPaymentRequestProxy

func NewPaymentRequestProxy(preqRdr dpp.PaymentRequestReader, transCfg *config.Transports, walletCfg *config.Server) *paymentRequestProxy

NewPaymentRequestProxy will setup and return a new PaymentRequest service that will generate outputs using the provided outputter which is defined in server config.

func NewProof

func NewProof(store dpp.ProofsWriter) *proof

NewProof will setup a new proof service.

Types

This section is empty.

Jump to

Keyboard shortcuts

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