http

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 License: ISC Imports: 5 Imported by: 0

Documentation

Index

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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