浏览代码

Add `software` property to metadata

master
Matt Baer 5 年前
父节点
当前提交
db51ec15fc
共有 1 个文件被更改,包括 10 次插入3 次删除
  1. +10
    -3
      nodeinfo.go

+ 10
- 3
nodeinfo.go 查看文件

@@ -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"`


正在加载...
取消
保存