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.
lntop/network/models/payment.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
}