Skip to content
This repository was archived by the owner on Jul 2, 2024. It is now read-only.

Commit 625fe7e

Browse files
authored
Merge pull request #72 from lobre/lobre/api-v2-to-cloud
Rename api.v2 to cloud
2 parents f280ea7 + 0ff5e14 commit 625fe7e

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

api.v2/client.go renamed to cloud/client.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package api
1+
package cloud
22

33
import (
44
"bytes"
@@ -13,7 +13,7 @@ import (
1313
const defaultUserAgent = "rmapi"
1414
const defaultBaseURL = "https://document-storage-production-dot-remarkable-production.appspot.com"
1515

16-
// A Client manages communication with the Remarkable API.
16+
// A Client manages communication with the Remarkable Cloud API.
1717
type Client struct {
1818
// By making the base URL configurable we can make it
1919
// testable by passing the URL of a httptest.Server.
@@ -22,7 +22,7 @@ type Client struct {
2222

2323
UserAgent string
2424

25-
// The api package does not directly handle authentication.
25+
// The cloud package does not directly handle authentication.
2626
// Instead, when creating a new client, pass an http.Client that
2727
// can handle authentication for you.
2828
// The easiest and recommended way to do this is using the auth package.

api.v2/client_test.go renamed to cloud/client_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// +build withauth
22

3-
package api
3+
package cloud
44

55
import (
66
"io/ioutil"

api.v2/doc.go renamed to cloud/doc.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Package api is the second version of the client implemented
1+
// Package cloud is the second version of the client implemented
22
// for interacting with the Remarkable Cloud API. It has been initiated because
33
// the first version was not decoupled enough and could not be easily used
44
// by external packages. The first version of the package is still available for
@@ -18,4 +18,4 @@
1818
//
1919
// We tend to follow the good practices from this article to write a modular http client:
2020
// https://medium.com/@marcus.olsson/writing-a-go-client-for-your-restful-api-c193a2f4998c.
21-
package api
21+
package cloud

api.v2/plumbing.go renamed to cloud/plumbing.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package api
1+
package cloud
22

33
import (
44
"net/http"

api.v2/porcelain.go renamed to cloud/porcelain.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package api
1+
package cloud
22

33
import (
44
"bytes"
File renamed without changes.

0 commit comments

Comments
 (0)