Skip to content

Commit

Permalink
Add effective tags to the login response
Browse files Browse the repository at this point in the history
  • Loading branch information
pho committed Oct 28, 2016
1 parent 4d93589 commit 25c2d23
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
7 changes: 6 additions & 1 deletion API.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# Versions

## 1.1.0
* `sys.login` also returns the current tags of the user


## 1.0.0
### New:
* `user.addWhitelist`
Expand Down Expand Up @@ -146,7 +151,7 @@ Else, the specified method should document which fields its expecting


### Result:
"result": { "ok": true, "connid": <string>, "user": <string> }
"result": { "ok": true, "connid": <string>, "user": <string>, "tags": <Object>}

## 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.
Expand Down
2 changes: 1 addition & 1 deletion sys.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions version.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (

var Version = &NxVersion{
Major: 1,
Minor: 2,
Patch: 2,
Minor: 3,
Patch: 0,
}

type NxVersion struct {
Expand Down

0 comments on commit 25c2d23

Please sign in to comment.