proxy

package
v3.3.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2023 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

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 NewElasticSearch added in v3.1.8

func NewElasticSearch() *ElasticSearch

NewElasticSearch 缓存

func (*ElasticSearch) Store added in v3.1.8

func (proxy *ElasticSearch) Store(client *elasticsearch.Client)

Store 设置写库

type MongoDB added in v3.1.8

type MongoDB struct {
	*mongodb.MongoDB
}

MongoDB ...

func NewMongoDB added in v3.1.8

func NewMongoDB() *MongoDB

NewMongoDB 缓存

func (*MongoDB) Store added in v3.1.8

func (proxy *MongoDB) Store(client *mongodb.MongoDB)

Store 设置写库

type Proxy added in v3.1.8

type Proxy struct {
	// contains filtered or unexported fields
}

Proxy 代理池

func NewProxy added in v3.1.8

func NewProxy() *Proxy

NewProxy 代理池

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

func (proxypool *Proxy) LoadMongoDB(group string) *mongodb.MongoDB

LoadMongoDB LoadNoSQL 获取分组

func (*Proxy) LoadRedis added in v3.1.8

func (proxypool *Proxy) LoadRedis(group string) *redis.Client

LoadRedis LoadCache 获取分组

func (*Proxy) LoadSQL added in v3.1.8

func (proxypool *Proxy) LoadSQL(group string) *SQL

LoadSQL 获取分组

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

func (proxypool *Proxy) StoreMongoDB(group string, proxy *MongoDB)

StoreMongoDB StoreNoSQL 设置组

func (*Proxy) StoreRedis added in v3.1.8

func (proxypool *Proxy) StoreRedis(group string, proxy *Redis)

StoreRedis StoreCache 设置组

func (*Proxy) StoreSQL added in v3.1.8

func (proxypool *Proxy) StoreSQL(group string, proxy *SQL)

StoreSQL 设置组

type Redis added in v3.1.8

type Redis struct {
	*redis.Client
}

Redis ...

func NewRedis added in v3.1.8

func NewRedis() *Redis

NewRedis 缓存

func (*Redis) Store added in v3.1.8

func (proxy *Redis) Store(client *redis.Client)

Store 设置写库

type SQL added in v3.1.8

type SQL struct {
	// contains filtered or unexported fields
}

SQL Proxy 代理

func NewSQL added in v3.1.8

func NewSQL() *SQL

NewSQL 代理池

func (*SQL) Read added in v3.1.8

func (proxy *SQL) Read() *query.Query

Read 获取读库

func (*SQL) SetRead added in v3.1.8

func (proxy *SQL) SetRead(query *query.Query)

SetRead 设置读库

func (*SQL) SetWrite added in v3.1.8

func (proxy *SQL) SetWrite(query *query.Query)

SetWrite 设置写库

func (*SQL) Write added in v3.1.8

func (proxy *SQL) Write() *query.Query

Write 获取写库

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL