mirror of https://github.com/edouardparis/lntop
ft network: Info
parent
e918c13c49
commit
bd04cacf4e
@ -0,0 +1,22 @@
|
||||
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
|
||||
}
|
||||
|
||||
func (i Info) MarshalLogObject(enc logging.ObjectEncoder) error {
|
||||
enc.AddString("pubkey", i.PubKey)
|
||||
enc.AddString("Alias", i.Alias)
|
||||
return nil
|
||||
}
|
Loading…
Reference in New Issue