2
0
mirror of https://github.com/edouardparis/lntop synced 2024-11-09 19:11:05 +00:00
lntop/network/models/info.go
2019-03-29 10:06:30 +01:00

25 lines
568 B
Go

package models
import "github.com/edouardparis/lntop/logging"
type Info struct {
PubKey string
Alias string
NumPendingChannels uint32
NumActiveChannels uint32
NumInactiveChannels uint32
NumPeers uint32
BlockHeight uint32
BlockHash string
Synced bool
Version string
Chains []string
Testnet bool
}
func (i Info) MarshalLogObject(enc logging.ObjectEncoder) error {
enc.AddString("pubkey", i.PubKey)
enc.AddString("Alias", i.Alias)
return nil
}