aboutsummaryrefslogtreecommitdiff
path: root/storage.go
diff options
context:
space:
mode:
Diffstat (limited to 'storage.go')
-rw-r--r--storage.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/storage.go b/storage.go
index 502ff14..b1d2a7d 100644
--- a/storage.go
+++ b/storage.go
@@ -27,6 +27,7 @@ type Storage interface {
}
type MongoStorage struct {
+ client *mongo.Client
collections map[string]*mongo.Collection
}
@@ -66,6 +67,7 @@ func NewMongoStorage(uri string, port int, database string) (*MongoStorage, erro
}
return &MongoStorage{
+ client: client,
collections: collections,
}, nil
}