Documentation ¶
Index ¶
- type ProxyElasticSearch
- type ProxyHbase
- type ProxyKafka
- type ProxyKylin
- type ProxyMongoDB
- type ProxyPool
- func (proxypool *ProxyPool) LoadElasticSearch(group string) *elasticsearch.Client
- func (proxypool *ProxyPool) LoadHbase(group string) *hbase.Client
- func (proxypool *ProxyPool) LoadKafka(group string) *kafka.Clientkafka
- func (proxypool *ProxyPool) LoadKylin(group string) *kylin.Client
- 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) StoreHbase(group string, proxy *ProxyHbase)
- func (proxypool *ProxyPool) StoreKafka(group string, proxy *ProxyKafka)
- func (proxypool *ProxyPool) StoreKylin(group string, proxy *ProxyKylin)
- 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 ProxyHbase ¶
type ProxyKafka ¶
type ProxyKafka struct {
*kafka.Clientkafka
}
type ProxyKylin ¶
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) LoadKafka ¶
func (proxypool *ProxyPool) LoadKafka(group string) *kafka.Clientkafka
LoadEs 获取分组
func (*ProxyPool) LoadMongoDB ¶
LoadNoSQL 获取分组
func (*ProxyPool) StoreElasticSearch ¶
func (proxypool *ProxyPool) StoreElasticSearch(group string, proxy *ProxyElasticSearch)
StoreEs 设置组
func (*ProxyPool) StoreHbase ¶
func (proxypool *ProxyPool) StoreHbase(group string, proxy *ProxyHbase)
StoreEs 设置组
func (*ProxyPool) StoreKafka ¶
func (proxypool *ProxyPool) StoreKafka(group string, proxy *ProxyKafka)
StoreEs 设置组
func (*ProxyPool) StoreKylin ¶
func (proxypool *ProxyPool) StoreKylin(group string, proxy *ProxyKylin)
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.