Documentation ¶
Index ¶
- type ElasticSearch
- type Grpc
- type MongoDB
- type Proxy
- func (proxypool *Proxy) LoadElasticSearch(group string) *elasticsearch.Client
- func (proxypool *Proxy) LoadGrpc(group string) *grpc.ClientConn
- 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) StoreGrpc(group string, proxy *Grpc)
- 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 ¶
type ElasticSearch struct {
*elasticsearch.Client
}
ElasticSearch ...
func (*ElasticSearch) Store ¶
func (proxy *ElasticSearch) Store(client *elasticsearch.Client)
Store 设置写库
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
Proxy 代理池
func (*Proxy) LoadElasticSearch ¶
func (proxypool *Proxy) LoadElasticSearch(group string) *elasticsearch.Client
LoadElasticSearch LoadEs 获取分组
func (*Proxy) LoadGrpc ¶
func (proxypool *Proxy) LoadGrpc(group string) *grpc.ClientConn
LoadGrpc Load 获取分组
func (*Proxy) LoadMongoDB ¶
LoadMongoDB LoadNoSQL 获取分组
func (*Proxy) StoreElasticSearch ¶
func (proxypool *Proxy) StoreElasticSearch(group string, proxy *ElasticSearch)
StoreElasticSearch StoreEs 设置组
func (*Proxy) StoreMongoDB ¶
StoreMongoDB StoreNoSQL 设置组
func (*Proxy) StoreRedis ¶
StoreRedis StoreCache 设置组
Click to show internal directories.
Click to hide internal directories.