2
0
mirror of https://github.com/edouardparis/lntop synced 2024-11-13 13:10:34 +00:00
lntop/network/models/payment.go
2019-03-15 17:02:16 +01:00

17 lines
318 B
Go

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
}