service

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: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBalance

func NewBalance(store payd.BalanceReader) *balance

NewBalance will setup and return the current balance of the wallet.

func NewConnect added in v0.1.1

func NewConnect(wtr payd.ConnectWriter, invRdr payd.InvoiceReader, p4cfg *config.P4) *connect

NewConnect will setup a new connect service used to connect this wallet to a p4 socket server.

func NewDestinationsService

func NewDestinationsService(deployCfg *config.Wallet, privKeySvc payd.PrivateKeyService, destRdrWtr payd.DestinationsReaderWriter, derivRdr payd.DerivationReader, invRdr payd.InvoiceReader, feeRdr payd.FeeReader, seed payd.SeedService) *destinations

NewDestinationsService will setup and return a new Output Service for creating and reading payment destination info.

func NewEnvelopes added in v0.1.1

func NewEnvelopes(pkSvc payd.PrivateKeyService, destWtr payd.DestinationsWriter, txWtr payd.TransactionWriter, txoWtr payd.TxoWriter, seedSvc payd.SeedService, spvc spv.EnvelopeCreator) *envelopes

NewEnvelopes will setup and return an Envelope service, used to create spv envelopes.

func NewHealthService added in v0.1.1

func NewHealthService(c *client.Client, cfg *config.P4) payd.HealthService

NewHealthService (NHS) will setup and return a new health service.

func NewInvoice

func NewInvoice(cfg *config.Server, wallCfg *config.Wallet, store payd.InvoiceReaderWriter, destSvc destinationCreator, transacter payd.Transacter, timeSvc payd.TimestampService) *invoice

NewInvoice will setup and return a new invoice service.

func NewOwnerService

func NewOwnerService(str payd.OwnerStore) payd.OwnerService

NewOwnerService returns a new owner service.

func NewPayChannel added in v0.1.1

func NewPayChannel(wtr payd.PayWriter) *payChannel

NewPayChannel will setup and return a new payment channel handler.

func NewPayService added in v0.0.2

func NewPayService(storeTx payd.Transacter, p4 http.P4, spvc payd.EnvelopeService, svrCfg *config.Server) payd.PayService

NewPayService returns a pay service.

func NewPayStrategy added in v0.1.1

func NewPayStrategy() payd.PayStrategy

NewPayStrategy returns a strategy based on url scheme.

func NewPaymentRequest added in v0.1.1

func NewPaymentRequest(cfg *config.Wallet, destSvc payd.DestinationsService, ownSvc payd.OwnerStore) *paymentRequest

NewPaymentRequest will setup a new paymentRequest service.

func NewPayments

func NewPayments(l log.Logger, paymentVerify spv.PaymentVerifier, txWtr payd.TransactionWriter, invRdr payd.InvoiceReaderWriter, destRdr payd.DestinationsReader, transacter payd.Transacter, broadcaster payd.BroadcastWriter, feeRdr payd.FeeReader, callbackWtr payd.ProofCallbackWriter) *payments

NewPayments will setup and return a payments service.

func NewPrivateKeys

func NewPrivateKeys(store payd.PrivateKeyReaderWriter, useMainNet bool) *privateKey

NewPrivateKeys will setup and return a new PrivateKey service.

func NewProofsService

func NewProofsService(wtr payd.ProofsWriter) *proofs

NewProofsService will setup and return a new merkle proof service.

func NewSeedService added in v0.1.1

func NewSeedService() payd.SeedService

NewSeedService returns a new service.

func NewTimestampService added in v0.1.1

func NewTimestampService() payd.TimestampService

NewTimestampService returns a new timestamp service.

func NewTransactions added in v0.1.1

func NewTransactions(transacter payd.Transacter, destRdr payd.DestinationsReaderWriter, tWtr payd.TransactionWriter, invRdr payd.InvoiceReaderWriter) *transactions

NewTransactions will setup and return a new Transaction service.

Types

This section is empty.

Jump to

Keyboard shortcuts

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