diff options
Diffstat (limited to 'storage.go')
-rw-r--r-- | storage.go | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 } |