Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
702a05f405
|
@@ -14,6 +14,10 @@ func (s *Session) Close() {
|
|||||||
s.session.Close()
|
s.session.Close()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (s *Session) Copy() *Session {
|
||||||
|
return &Session{session: s.session.Copy()}
|
||||||
|
}
|
||||||
|
|
||||||
func NewSession(dial string) (*Session, error) {
|
func NewSession(dial string) (*Session, error) {
|
||||||
session, err := mgo.Dial(dial)
|
session, err := mgo.Dial(dial)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user