Documentation ¶
Index ¶
- Constants
- func NewBalance(svc payd.BalanceService) *balance
- func NewDestinations(svc payd.DestinationsService) *destinations
- func NewInvoice(svc payd.InvoiceService) *invoices
- func NewOwnersHandler(svc payd.OwnerService) *owners
- func NewPayHandler(svc payd.PayService) *pay
- func NewPayments(svc payd.PaymentsService) *payments
- func NewProofs(svc payd.ProofsService) *proofs
Constants ¶
View Source
const ( RouteV1Invoice = "api/v1/invoices/:invoiceID" RouteV1Invoices = "api/v1/invoices" RouteV1Balance = "api/v1/balance" RouteV1Owner = "api/v1/owner" RouteV1Pay = "api/v1/pay" RouteV1Proofs = "api/v1/proofs/:txid" RouteV1Destination = "api/v1/destinations/:invoiceID" RouteV1Payment = "api/v1/payments/:invoiceID" )
Routes used in the http handlers.
Variables ¶
This section is empty.
Functions ¶
func NewBalance ¶
func NewBalance(svc payd.BalanceService) *balance
NewBalance will setup and return a balance handler.
func NewDestinations ¶
func NewDestinations(svc payd.DestinationsService) *destinations
NewDestinations will setup and return a new destinations http handler.
func NewInvoice ¶
func NewInvoice(svc payd.InvoiceService) *invoices
NewInvoice will setup and return a new invoices handler.
func NewOwnersHandler ¶
func NewOwnersHandler(svc payd.OwnerService) *owners
NewOwnersHandler returns a new handler for owner endpoints.
func NewPayHandler ¶ added in v0.0.2
func NewPayHandler(svc payd.PayService) *pay
NewPayHandler returns a new handler for pay endpoints.
func NewPayments ¶
func NewPayments(svc payd.PaymentsService) *payments
NewPayments will setup and return a new payments http handler.
func NewProofs ¶
func NewProofs(svc payd.ProofsService) *proofs
NewProofs will setup and return a new proofs http handler.
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.