diff options
author | Aliaksandr Valialkin <valyala@gmail.com> | 2016-10-21 14:53:37 +0300 |
---|---|---|
committer | Aliaksandr Valialkin <valyala@gmail.com> | 2016-10-21 14:53:44 +0300 |
commit | a965b01816a911517a24fa8b9ee7ba17250ad989 (patch) | |
tree | a316addfb5462a8300410df92637da426e6f5e26 /lbclient.go | |
parent | Added RequestCtx.Hijacked method for determining whether the underlying conne... (diff) | |
download | fasthttp-a965b01816a911517a24fa8b9ee7ba17250ad989.tar.gz fasthttp-a965b01816a911517a24fa8b9ee7ba17250ad989.tar.bz2 fasthttp-a965b01816a911517a24fa8b9ee7ba17250ad989.zip |
Added an example for LBClient
Diffstat (limited to 'lbclient.go')
-rw-r--r-- | lbclient.go | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lbclient.go b/lbclient.go index ea81205..5dadaef 100644 --- a/lbclient.go +++ b/lbclient.go @@ -17,11 +17,13 @@ type BalancingClient interface { // // It has the following features: // -// - Balance load among available clients using 'least loaded' + 'round robin' +// - Balances load among available clients using 'least loaded' + 'round robin' // hybrid technique. -// - Decrease load on unhealthy clients. +// - Dynamically decreases load on unhealthy clients. // -// LBClient methods are safe for calling from concurrently running goroutines. +// It is forbidden copying LBClient instances. Create new instances instead. +// +// It is safe calling LBClient methods from concurrently running goroutines. type LBClient struct { noCopy noCopy |