Directories ¶
Path | Synopsis |
---|---|
common
|
|
etcd
Package etcd defines EtcdClient interface, and use "go.etcd.io/etcd/client/v3" implements the interface.
|
Package etcd defines EtcdClient interface, and use "go.etcd.io/etcd/client/v3" implements the interface. |
password
Package password defines Decipher interface, which is used to decode password, user can set customize decipher by SetDecipher function.
|
Package password defines Decipher interface, which is used to decode password, user can set customize decipher by SetDecipher function. |
util
Package util provides some util function, such as ValidateHostPort.
|
Package util provides some util function, such as ValidateHostPort. |
Package dms implements a kafka consumer based on sarama, user can consume messages asynchronous or synchronous with dms, and ensure message not lost.
|
Package dms implements a kafka consumer based on sarama, user can consume messages asynchronous or synchronous with dms, and ensure message not lost. |
example
Package example provides an example for user how to use dms.
|
Package example provides an example for user how to use dms. |
Package mas contains mas properties configuration.
|
Package mas contains mas properties configuration. |
Package mock introduce three mock methods for interface, mysql and redis.
|
Package mock introduce three mock methods for interface, mysql and redis. |
proxy
Package proxy TCP-based fault injection
|
Package proxy TCP-based fault injection |
proxy/proxy-mysql
Package proxymysql Mysql TCP-based fault injection
|
Package proxymysql Mysql TCP-based fault injection |
proxy/proxy-redis
Package proxyredis Redis TCP-based fault injection
|
Package proxyredis Redis TCP-based fault injection |
proxy/utils
Package utils Test tool
|
Package utils Test tool |
Package redis defines DevsporeClient which implements all redis commands in https://github.com/go-redis/redis/blob/master/commands.go and it provides read-write separation and etcd multi-data source disaster tolerance switching capabilities, user can create a DevsporeClient by yaml configuration file or by code, see details in README.md.
|
Package redis defines DevsporeClient which implements all redis commands in https://github.com/go-redis/redis/blob/master/commands.go and it provides read-write separation and etcd multi-data source disaster tolerance switching capabilities, user can create a DevsporeClient by yaml configuration file or by code, see details in README.md. |
config
Package config defines a series of devspore redis configuration, include configuration from yaml and remote etcd.
|
Package config defines a series of devspore redis configuration, include configuration from yaml and remote etcd. |
file
Package file Double-write of files
|
Package file Double-write of files |
redigostrategy
Package strategy defines different route redigoStrategy mode.
|
Package strategy defines different route redigoStrategy mode. |
strategy
Package strategy defines different route strategy mode.
|
Package strategy defines different route strategy mode. |
sql-driver
|
|
mysql
Package mysql provides a DevsporeDriver for Go's database/sql package.
|
Package mysql provides a DevsporeDriver for Go's database/sql package. |
rds/config
Package config defines a series of configuration, include yaml configuration, remote configuration and integration configuration which contains the above two configurations.
|
Package config defines a series of configuration, include yaml configuration, remote configuration and integration configuration which contains the above two configurations. |
rds/datasource
Package datasource defines datasource interface, and implements the interface by ClusterDataSource, NodeDataSource, and ActualDataSource.
|
Package datasource defines datasource interface, and implements the interface by ClusterDataSource, NodeDataSource, and ActualDataSource. |
rds/router
Package router which will route an actual datasource according to route strategy and sql type.
|
Package router which will route an actual datasource according to route strategy and sql type. |
rds/util
Package util provides the function IsOnlyRead to check sql is only read, and provides a LRUCache.
|
Package util provides the function IsOnlyRead to check sql is only read, and provides a LRUCache. |
web
|
|
Click to show internal directories.
Click to hide internal directories.