aboutsummaryrefslogtreecommitdiffstats
path: root/drive/drive.go
diff options
context:
space:
mode:
authorPetter Rasmussen2016-01-17 21:13:46 +0100
committerPetter Rasmussen2016-01-17 21:13:46 +0100
commitf35fd0892688ff638b30dcd48fdd56b9e2627cf1 (patch)
tree18439804fdb5c87e4ba0f4cea4561db35bdd7868 /drive/drive.go
parentf16b89b6f6bee6023c51b4f8120a3e4776128384 (diff)
downloadgdrive-f35fd0892688ff638b30dcd48fdd56b9e2627cf1.tar.bz2
One file per command
Diffstat (limited to 'drive/drive.go')
-rw-r--r--drive/drive.go23
1 files changed, 23 insertions, 0 deletions
diff --git a/drive/drive.go b/drive/drive.go
new file mode 100644
index 0000000..047030a
--- /dev/null
+++ b/drive/drive.go
@@ -0,0 +1,23 @@
+package drive
+
+import (
+ "net/http"
+ "google.golang.org/api/drive/v3"
+)
+
+type Client interface {
+ Service() *drive.Service
+ Http() *http.Client
+}
+
+type Drive struct {
+ service *drive.Service
+ http *http.Client
+}
+
+func NewDrive(client Client) *Drive {
+ return &Drive{
+ service: client.Service(),
+ http: client.Http(),
+ }
+}