2
0
mirror of https://github.com/edouardparis/lntop synced 2024-11-09 19:11:05 +00:00
lntop/network/models/wallet.go
2019-03-15 17:02:16 +01:00

18 lines
424 B
Go

package models
import "github.com/edouardparis/lntop/logging"
type WalletBalance struct {
TotalBalance int64
ConfirmedBalance int64
UnconfirmedBalance int64
}
func (m WalletBalance) MarshalLogObject(enc logging.ObjectEncoder) error {
enc.AddInt64("total_balance", m.TotalBalance)
enc.AddInt64("confirmed_balance", m.ConfirmedBalance)
enc.AddInt64("unconfirmed_balance", m.UnconfirmedBalance)
return nil
}