mirror of https://github.com/edouardparis/lntop
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.
25 lines
568 B
Go
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
|
|
}
|