Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildSelect ¶
Types ¶
type DirectSession ¶
type DirectSession struct {
// contains filtered or unexported fields
}
func (*DirectSession) Get ¶
func (d *DirectSession) Get() *mgo.Session
type PoolConfig ¶
type SessionGetter ¶
type SessionGetter interface {
Get() *mgo.Session
}
func NewDirectSession ¶
func NewDirectSession(dsn string, socketPoolLimit int) (SessionGetter, error)
type SessionPool ¶
type SessionPool struct {
// contains filtered or unexported fields
}
func NewPool ¶
func NewPool(cfg *PoolConfig) *SessionPool
func NewPoolByUrl ¶
func NewPoolByUrl(url string) *SessionPool
func (*SessionPool) Get ¶
func (p *SessionPool) Get() *mgo.Session
func (*SessionPool) LogErrorf ¶
func (p *SessionPool) LogErrorf(s string, vs ...interface{})
Click to show internal directories.
Click to hide internal directories.