func encodePeerInfoTag(info PeerInfo) map[string]string {
	return map[string]string{
		"name":           info.Name,
		"type":           string(info.Type),
		"daemon_address": info.DaemonAddress,
		"daemon_nonce":   info.DaemonNonce,
	}
}
encodeTagPeerInfo encodes the peer information for the node tags.
package members
import (
	"github.com/pkg/errors"
)
type PeerType string
func (p PeerType) String() string {
	return string(p)
}
type PeerInfo struct {
	Name          string   `json:"name"`
	Type          PeerType `json:"type"`
	DaemonAddress string   `json:"daemon_address"`
	DaemonNonce   string   `json:"daemon_nonce"`
}