mirror of
https://github.com/edouardparis/lntop
synced 2024-11-13 13:10:34 +00:00
17 lines
318 B
Go
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
|
|
}
|