Commit Graph

4 Commits

Author SHA1 Message Date
jixiuf 06528a4d83 add func (eg *EngineGroup) Context(ctx context.Context) *Session (#1267) 2019-04-10 11:27:55 +08:00
Lunny Xiao 6fe3ab6075
fix #1075 and replace #1076 (#1101)
* fix #1075 and replace #1076

* fix bug when session resue
2019-01-20 12:45:38 +08:00
Lunny Xiao 270035c70f
Add more methods for EngineInterface (#1091)
* add more methods for EngineInterface

* more interfaces
2018-09-07 11:01:18 +08:00
Lunny Xiao 109cb1a7d0 Add support Engine Group (#748)
* add support group engine

* revert code

* add NewGroup function

* add engine group policy

* rename file name

* modify policy interface

* remove Init function from policy interface

* refactor Group Policy

* rename and comments

* rename and bug fix for WeightRoundRobinPolicy

* modify Slave function

* modify Slave function and add LeastConnPolicy

* use original Engine and Session

* remove unused count variables

* fix bug on NewEngineGroup

* remove unused method

* improve range and refactor

* add some comments and refactor

* implement GroupPolicy of GroupPolicyHandler

* refactor

* simple code

* add tests support for EngineGroup & fix some bugs

* improve the NewEngineGroup interface

* change the default policy of engine group

* fix some tests
2017-10-16 15:28:13 +08:00