mirror of
https://github.com/datarhei/core.git
synced 2025-10-05 16:07:07 +08:00
Remove NodeID from ClusterAbout
This commit is contained in:
@@ -1380,7 +1380,6 @@ type ClusterAboutLeader struct {
|
||||
|
||||
type ClusterAbout struct {
|
||||
ID string
|
||||
NodeID string
|
||||
Domains []string
|
||||
Leader ClusterAboutLeader
|
||||
Status string
|
||||
@@ -1396,7 +1395,6 @@ func (c *cluster) About() (ClusterAbout, error) {
|
||||
|
||||
about := ClusterAbout{
|
||||
ID: c.id,
|
||||
NodeID: c.nodeID,
|
||||
Leader: ClusterAboutLeader{},
|
||||
Status: "online",
|
||||
Version: Version,
|
||||
|
@@ -57,7 +57,6 @@ type ClusterAboutLeader struct {
|
||||
|
||||
type ClusterAbout struct {
|
||||
ID string `json:"id"`
|
||||
NodeID string `json:"node_id"`
|
||||
Domains []string `json:"public_domains"`
|
||||
Leader ClusterAboutLeader `json:"leader"`
|
||||
Status string `json:"status"`
|
||||
|
@@ -58,7 +58,6 @@ func (h *ClusterHandler) About(c echo.Context) error {
|
||||
|
||||
about := api.ClusterAbout{
|
||||
ID: state.ID,
|
||||
NodeID: state.NodeID,
|
||||
Domains: state.Domains,
|
||||
Leader: api.ClusterAboutLeader{
|
||||
ID: state.Leader.ID,
|
||||
|
Reference in New Issue
Block a user