Documentation ¶
Index ¶
- type ElasticSearch
- type MongoDB
- type Proxy
- func (proxypool *Proxy) LoadElasticSearch(group string) *elasticsearch.Client
- func (proxypool *Proxy) LoadMongoDB(group string) *mongodb.MongoDB
- func (proxypool *Proxy) LoadRedis(group string) *redis.Client
- func (proxypool *Proxy) LoadSQL(group string) *SQL
- func (proxypool *Proxy) StoreElasticSearch(group string, proxy *ElasticSearch)
- func (proxypool *Proxy) StoreMongoDB(group string, proxy *MongoDB)
- func (proxypool *Proxy) StoreRedis(group string, proxy *Redis)
- func (proxypool *Proxy) StoreSQL(group string, proxy *SQL)
- type Redis
- type SQL
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ElasticSearch ¶ added in v3.1.8
type ElasticSearch struct {
*elasticsearch.Client
}
ElasticSearch ...
func (*ElasticSearch) Store ¶ added in v3.1.8
func (proxy *ElasticSearch) Store(client *elasticsearch.Client)
Store 设置写库
type Proxy ¶ added in v3.1.8
type Proxy struct {
// contains filtered or unexported fields
}
Proxy 代理池
func (*Proxy) LoadElasticSearch ¶ added in v3.1.8
func (proxypool *Proxy) LoadElasticSearch(group string) *elasticsearch.Client
LoadElasticSearch LoadEs 获取分组
func (*Proxy) LoadMongoDB ¶ added in v3.1.8
LoadMongoDB LoadNoSQL 获取分组
func (*Proxy) StoreElasticSearch ¶ added in v3.1.8
func (proxypool *Proxy) StoreElasticSearch(group string, proxy *ElasticSearch)
StoreElasticSearch StoreEs 设置组
func (*Proxy) StoreMongoDB ¶ added in v3.1.8
StoreMongoDB StoreNoSQL 设置组
func (*Proxy) StoreRedis ¶ added in v3.1.8
StoreRedis StoreCache 设置组
Click to show internal directories.
Click to hide internal directories.