Browse Source

Add `software` property to metadata

master
Matt Baer 5 years ago
parent
commit
db51ec15fc
1 changed files with 10 additions and 3 deletions
  1. +10
    -3
      nodeinfo.go

+ 10
- 3
nodeinfo.go View File

@@ -49,9 +49,10 @@ type (
// From the spec: Free form key value pairs for software specific values.
// Clients should not rely on any specific key present.
Metadata struct {
NodeName string `json:"nodeName,omitempty"`
NodeDescription string `json:"nodeDescription,omitempty"`
Private bool `json:"private,omitempty"`
NodeName string `json:"nodeName,omitempty"`
NodeDescription string `json:"nodeDescription,omitempty"`
Private bool `json:"private,omitempty"`
Software SoftwareMeta `json:"software,omitempty"`
}

Services struct {
@@ -66,6 +67,12 @@ type (
Version string `json:"version"`
}

SoftwareMeta struct {
HomePage string `json:"homepage"`
GitHub string `json:"github"`
Follow string `json:"follow"`
}

// Usage is usage statistics for this server.
Usage struct {
Users UsageUsers `json:"users"`


Loading…
Cancel
Save