mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-05 03:01:11 +00:00
omitempty
This commit is contained in:
@@ -76,10 +76,10 @@ func (n Nodes) Merge(other Nodes) Nodes {
|
||||
// given node in a given topology, along with the edges emanating from the
|
||||
// node and metadata about those edges.
|
||||
type Node struct {
|
||||
Metadata `json:"metadata"`
|
||||
Counters `json:"counters"`
|
||||
Metadata `json:"metadata,omitempty"`
|
||||
Counters `json:"counters,omitempty"`
|
||||
Adjacency IDList `json:"adjacency"`
|
||||
Edges EdgeMetadatas `json:"edges"`
|
||||
Edges EdgeMetadatas `json:"edges,omitempty"`
|
||||
}
|
||||
|
||||
// MakeNode creates a new Node with no initial metadata.
|
||||
|
||||
Reference in New Issue
Block a user