You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dorm/mongo_session_get.go

21 lines
411 B

2 years ago
package dorm
import (
"go.mongodb.org/mongo-driver/mongo"
)
2 years ago
// GetDb 获取驱动
func (cs *MongoSessionOptions) GetDb() *mongo.Client {
return cs.db
}
2 years ago
// GetSession 获取会话
2 years ago
func (cs *MongoSessionOptions) GetSession() mongo.Session {
2 years ago
return cs.session
}
// GetSessionContext 获取会话上下文
2 years ago
func (cs *MongoSessionOptions) GetSessionContext() mongo.SessionContext {
2 years ago
return cs.sessionContext
}