Documentation ¶
Index ¶
- func NewBalance(store payd.BalanceReader) *balance
- func NewConnect(wtr payd.ConnectWriter, invRdr payd.InvoiceReader, p4cfg *config.P4) *connect
- func NewDestinationsService(deployCfg *config.Wallet, privKeySvc payd.PrivateKeyService, ...) *destinations
- func NewEnvelopes(pkSvc payd.PrivateKeyService, destWtr payd.DestinationsWriter, ...) *envelopes
- func NewHealthService(c *client.Client, cfg *config.P4) payd.HealthService
- func NewInvoice(cfg *config.Server, wallCfg *config.Wallet, store payd.InvoiceReaderWriter, ...) *invoice
- func NewOwnerService(str payd.OwnerStore) payd.OwnerService
- func NewPayChannel(wtr payd.PayWriter) *payChannel
- func NewPayService(storeTx payd.Transacter, p4 http.P4, spvc payd.EnvelopeService, ...) payd.PayService
- func NewPayStrategy() payd.PayStrategy
- func NewPaymentRequest(cfg *config.Wallet, destSvc payd.DestinationsService, ownSvc payd.OwnerStore) *paymentRequest
- func NewPayments(l log.Logger, paymentVerify spv.PaymentVerifier, txWtr payd.TransactionWriter, ...) *payments
- func NewPrivateKeys(store payd.PrivateKeyReaderWriter, useMainNet bool) *privateKey
- func NewProofsService(wtr payd.ProofsWriter) *proofs
- func NewSeedService() payd.SeedService
- func NewTimestampService() payd.TimestampService
- func NewTransactions(transacter payd.Transacter, destRdr payd.DestinationsReaderWriter, ...) *transactions
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
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
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.