Documentation ¶
Index ¶
- type ProxyElasticSearch
- type ProxyGrpc
- type ProxyMongoDB
- type ProxyPool
- func (proxypool *ProxyPool) LoadElasticSearch(group string) *elasticsearch.Client
- func (proxypool *ProxyPool) LoadGrpc(group string) *grpc.ClientConn
- func (proxypool *ProxyPool) LoadMongoDB(group string) *mongodb.MongoDB
- func (proxypool *ProxyPool) LoadRedis(group string) *redis.Client
- func (proxypool *ProxyPool) LoadSQL(group string) *ProxySQL
- func (proxypool *ProxyPool) StoreElasticSearch(group string, proxy *ProxyElasticSearch)
- func (proxypool *ProxyPool) StoreGrpc(group string, proxy *ProxyGrpc)
- func (proxypool *ProxyPool) StoreMongoDB(group string, proxy *ProxyMongoDB)
- func (proxypool *ProxyPool) StoreRedis(group string, proxy *ProxyRedis)
- func (proxypool *ProxyPool) StoreSQL(group string, proxy *ProxySQL)
- type ProxyRedis
- type ProxySQL
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProxyElasticSearch ¶
type ProxyElasticSearch struct {
*elasticsearch.Client
}
func NewProxyElasticSearch ¶
func NewProxyElasticSearch() *ProxyElasticSearch
NewProxyElasticSearch 缓存
func (*ProxyElasticSearch) Store ¶
func (proxy *ProxyElasticSearch) Store(client *elasticsearch.Client)
Store 设置写库
type ProxyGrpc ¶ added in v3.0.3
type ProxyGrpc struct {
*grpc.ClientConn
}
func (*ProxyGrpc) Store ¶ added in v3.0.3
func (proxy *ProxyGrpc) Store(client *grpc.ClientConn)
Store 设置写库
type ProxyMongoDB ¶
type ProxyPool ¶
type ProxyPool struct {
// contains filtered or unexported fields
}
ProxyPool 代理池
func (*ProxyPool) LoadElasticSearch ¶
func (proxypool *ProxyPool) LoadElasticSearch(group string) *elasticsearch.Client
LoadEs 获取分组
func (*ProxyPool) LoadGrpc ¶ added in v3.0.3
func (proxypool *ProxyPool) LoadGrpc(group string) *grpc.ClientConn
Load 获取分组
func (*ProxyPool) LoadMongoDB ¶
LoadNoSQL 获取分组
func (*ProxyPool) StoreElasticSearch ¶
func (proxypool *ProxyPool) StoreElasticSearch(group string, proxy *ProxyElasticSearch)
StoreEs 设置组
func (*ProxyPool) StoreMongoDB ¶
func (proxypool *ProxyPool) StoreMongoDB(group string, proxy *ProxyMongoDB)
StoreNoSQL 设置组
func (*ProxyPool) StoreRedis ¶
func (proxypool *ProxyPool) StoreRedis(group string, proxy *ProxyRedis)
StoreCache 设置组
type ProxyRedis ¶
Click to show internal directories.
Click to hide internal directories.