db connect

This commit is contained in:
2022-02-09 21:12:04 +01:00
parent b59be1a9d7
commit 0a966a637b
6 changed files with 20 additions and 16 deletions

View File

@@ -5,9 +5,13 @@ import (
"gopkg.in/mgo.v2/bson"
)
type Connection interface {
Close()
NewSession() Session
}
type Session interface {
Close()
Copy() Session
DB(name string) Database
}