From 25c2d234b48de88f197f4f0a75522fd5c8197f7c Mon Sep 17 00:00:00 2001 From: Jaime Date: Fri, 28 Oct 2016 10:25:54 +0200 Subject: [PATCH] Add effective tags to the login response --- API.md | 7 ++++++- sys.go | 2 +- version.go | 4 ++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/API.md b/API.md index 1598bd2..cf503a8 100644 --- a/API.md +++ b/API.md @@ -1,4 +1,9 @@ # Versions + +## 1.1.0 + * `sys.login` also returns the current tags of the user + + ## 1.0.0 ### New: * `user.addWhitelist` @@ -146,7 +151,7 @@ Else, the specified method should document which fields its expecting ### Result: - "result": { "ok": true, "connid": , "user": } + "result": { "ok": true, "connid": , "user": , "tags": } ## sys.node.list List the nexus nodes connected to the cluster. Includes some info about connected clients, CPU load and nexus version for each node. diff --git a/sys.go b/sys.go index fc578ee..b08d9c6 100644 --- a/sys.go +++ b/sys.go @@ -114,7 +114,7 @@ func (nc *NexusConn) handleSysReq(req *JsonRpcReq) { "whitelist": nc.user.Whitelist, "blacklist": nc.user.Blacklist, }) - req.Result(ei.M{"ok": true, "user": nc.user.User, "connid": nc.connId}) + req.Result(ei.M{"ok": true, "user": nc.user.User, "connid": nc.connId, "tags": nc.user.Tags}) default: req.Error(ErrMethodNotFound, "", nil) diff --git a/version.go b/version.go index 951a5c3..0c1eb0f 100644 --- a/version.go +++ b/version.go @@ -6,8 +6,8 @@ import ( var Version = &NxVersion{ Major: 1, - Minor: 2, - Patch: 2, + Minor: 3, + Patch: 0, } type NxVersion struct {