db connect
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user