Documentation ¶
Index ¶
- Constants
- func NewBalance(svc payd.BalanceService) *balance
- func NewConnect(svc payd.ConnectService) *connect
- func NewHealthHandler(svc payd.HealthService) *health
- func NewInvoice(svc payd.InvoiceService) *invoices
- func NewOwnersHandler(svc payd.OwnerService) *owners
- func NewPayHandler(svc payd.PayService) *pay
- func NewPaymentRequests(svc payd.PaymentRequestService, p4Cfg *config.P4) *paymentRequest
- func NewPayments(svc payd.PaymentsService) *payments
- func NewProofs(svc payd.ProofsService) *proofs
- func NewTransactions(svc payd.TransactionService) *transactions
- func NewUsersHandler(svc payd.UserService) *users
Constants ¶
const ( // Receive payment endpoints. RouteV1Invoice = "api/v1/invoices/:invoiceID" RouteV1Invoices = "api/v1/invoices" RouteV1Payment = "api/v1/payments/:invoiceID" RouteV1Proofs = "api/v1/proofs/:txid" RouteV1Connect = "api/v1/socket/connect/:invoiceID" RouteV1Transaction = "api/v1/transactions/:invoiceID" // User management. RouteV1Balance = "api/v1/balance" RouteV1Owner = "api/v1/owner" RouteV1UserID = "api/v1/users/:id" RouteV1User = "api/v1/users" // Sending payments. RouteV1Pay = "api/v1/pay" RouteV1UnsignedOffTx = "api/v1/txs/unsignedoff" // TODO - fix this endpoint def. RouteV1Submit = "api/v1/submit" RouteV1Health = "api/v1/health" )
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 NewConnect ¶ added in v0.1.1
func NewConnect(svc payd.ConnectService) *connect
NewConnect will setup a connection handler.
func NewHealthHandler ¶ added in v0.1.1
func NewHealthHandler(svc payd.HealthService) *health
NewHealthHandler sets up and returns a new health 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 NewPaymentRequests ¶ added in v0.1.1
func NewPaymentRequests(svc payd.PaymentRequestService, p4Cfg *config.P4) *paymentRequest
NewPaymentRequests returns a new handler for payment request endpoint.
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.
func NewTransactions ¶ added in v0.1.1
func NewTransactions(svc payd.TransactionService) *transactions
NewTransactions will setup and return a new transactions handler.
func NewUsersHandler ¶ added in v0.1.3
func NewUsersHandler(svc payd.UserService) *users
NewUsersHandler returns a new handler for owner endpoints.
Types ¶
This section is empty.