mirror of https://github.com/edouardparis/lntop
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
318 B
Go
17 lines
318 B
Go
6 years ago
|
package models
|
||
|
|
||
|
import "github.com/edouardparis/lntop/logging"
|
||
|
|
||
|
type Payment struct {
|
||
|
PaymentError string
|
||
|
PaymentPreimage []byte
|
||
|
PayReq *PayReq
|
||
|
Route *Route
|
||
|
}
|
||
|
|
||
|
func (p Payment) MarshalLogObject(enc logging.ObjectEncoder) error {
|
||
|
enc.AddString("payment_error", p.PaymentError)
|
||
|
|
||
|
return nil
|
||
|
}
|