listener

package
v0.0.0-...-d2cc306 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2018 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTP

type HTTP interface {
	Do(req *http.Request) (resp *http.Response, err error)
}

HTTP represents an http client that a payment listener can use to make HTTP requests.

type PaymentListener

type PaymentListener struct {
	// contains filtered or unexported fields
}

PaymentListener is listening for a new payments received by ReceivingAccount

func NewPaymentListener

func NewPaymentListener(
	config *config.Config,
	database db.Database,
	horizon horizon.ClientInterface,
	now func() time.Time,
) (pl PaymentListener, err error)

NewPaymentListener creates a new PaymentListener

func (*PaymentListener) Listen

func (pl *PaymentListener) Listen() (err error)

Listen starts listening for new payments

func (*PaymentListener) ReprocessPayment

func (pl *PaymentListener) ReprocessPayment(payment horizon.Payment, force bool) error

Jump to

Keyboard shortcuts

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