func (edge *Server) Stats() Stats {
	s := Stats{}
	if edge.gateway != nil {
		s.GatewayAddr = edge.gateway.Addr()
		s.GatewayProtocol = edge.gateway.Protocol()
	}
	if edge.tunnel != nil {
		s.TunnelAddr = edge.tunnel.Addr()
	}
	if edge.cluster != nil {
		s.ReplicaSet = edge.cluster.ReplicaSet()
		s.Address = edge.cluster.Addr()
		s.Members = len(edge.cluster.Members())
	}
	return s
}
Stats exports some internal metrics data packed in 'Stats' struct
package edge
import (
	"github.com/ronaksoft/rony"
)
type Stats struct {
	Address         string
	ReplicaSet      uint64
	Members         int
	MembershipScore int
	TunnelAddr      []string
	GatewayProtocol rony.GatewayProtocol
	GatewayAddr     []string
}