aboutsummaryrefslogtreecommitdiff
path: root/client.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-12-10 23:06:05 +0100
committerDimitri Sokolyuk <demon@dim13.org>2015-12-10 23:06:05 +0100
commit410ae274cd8b375b1b555d37bcca6999eccd678f (patch)
tree7e7616f396a94f974656b3e23cea123366fa9dfe /client.go
parent5d1149a05b37eb3e66280a7fe341cdf71294249b (diff)
Store next
Diffstat (limited to 'client.go')
-rw-r--r--client.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/client.go b/client.go
index e381c5f..238c340 100644
--- a/client.go
+++ b/client.go
@@ -19,6 +19,7 @@ type Client struct {
Dir Directory
nonce chan string
Links Links
+ Next string
}
// NewClient fetches directory and initializes nonce
@@ -145,6 +146,7 @@ func (c *Client) Register(a *Account) error {
defer aresp.Body.Close()
err = json.NewDecoder(aresp.Body).Decode(&re)
log.Println(re)
+ c.Next = c.Links["next"]
return err
}