mirror of
https://github.com/edouardparis/lntop
synced 2024-11-06 03:20:21 +00:00
18 lines
424 B
Go
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
|
|
}
|