Documentation ¶
Overview ¶
外部 DB ドライバ。
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MongoPoolSet ¶
type MongoPoolSet struct {
// contains filtered or unexported fields
}
mongodb のコネクションプール集。
func (*MongoPoolSet) Close ¶
func (this *MongoPoolSet) Close()
func (*MongoPoolSet) Get ¶
func (this *MongoPoolSet) Get(addr string) (*mgo.Session, error)
type RedisPoolSet ¶
type RedisPoolSet struct {
// contains filtered or unexported fields
}
redis のコネクションプール集。
func NewRedisPoolSet ¶
timeout: 通信タイムアウト。 n: プール毎に確保する接続数。 keep: 確保する期間。
func (*RedisPoolSet) Close ¶
func (this *RedisPoolSet) Close()
type SqlPoolSet ¶
type SqlPoolSet struct {
// contains filtered or unexported fields
}
sql のコネクションプール集。
func NewSqlPoolSet ¶
func NewSqlPoolSet(driverName string) *SqlPoolSet
func (*SqlPoolSet) Close ¶
func (this *SqlPoolSet) Close()
Click to show internal directories.
Click to hide internal directories.