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