You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.MD
-31Lines changed: 0 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -169,37 +169,6 @@ You can find list of returning error types for all existing throttlers in thrott
169
169
| cellrate |`func NewThrottlerCellRate(threshold uint64, interval time.Duration, monotone bool) Throttler`| Creates new throttler instance that uses generic cell rate algorithm to throttles call within provided interval and threshold.<br>If provided monotone flag is set class to release will have no effect on throttler.<br>Use `WithWeight` to override context call qunatity, 1 by default.<br> - could return `ErrorThreshold`; |
170
170
| bucket |`func NewThrottlerBucket(threshold uint64, interval time.Duration, monotone bool) Throttler`| Creates new throttler instance that leaky bucket algorithm to throttles call within provided interval and threshold.<br>If provided monotone flag is set class to release will have no effect on throttler.<br>Use `WithWeight` to override context call qunatity, 1 by default.<br> - could return `ErrorThreshold`; |
171
171
172
-
## Integrations
173
-
174
-
**Note:** in gohalt v0.3.0 all integrations were moved to separate [repository](https://github.com/1pkg/gohaltlib) to make base gohalt repository dependencies footprint small.
175
-
176
-
`go get -u github.com/1pkg/gohaltlib`
177
-
178
-
| Library | Adapter |
179
-
|---|---|
180
-
| gin |`func NewMiddlewareGin(thr Throttler, with GinWith, on GinOn) gin.HandlerFunc`|
181
-
| stdlib http handler |`func NewMiddlewareStd(h http.Handler, thr Throttler, with StdWith, on StdOn) http.Handler`|
182
-
| echo |`func NewMiddlewareEcho(thr Throttler, with EchoWith, on EchoOn) echo.MiddlewareFunc`|
183
-
| beego |`func NewMiddlewareBeego(thr Throttler, with BeegoWith, on BeegoOn) beego.FilterFunc`|
184
-
| kit |`func NewMiddlewareKit(thr Throttler, with KitWith, on KitOn) endpoint.Middleware`|
185
-
| mux |`func NewMiddlewareMux(h http.Handler, thr Throttler, with MuxWith, on MuxOn) http.Handler`|
186
-
| httprouter |`func NewMiddlewareRouter(h http.Handler, thr Throttler, with RouterWith, on RouterOn) http.Handler`|
187
-
| reveal |`func NewMiddlewareRevel(thr Throttler, with RevealWith, on RevealOn) revel.Filter`|
188
-
| iris |`func NewMiddlewareIris(thr Throttler, with IrisWith, on IrisOn) iris.Handler`|
189
-
| fasthttp |`func NewMiddlewareFast(h fasthttp.RequestHandler, thr Throttler, with FastWith, on FastOn) fasthttp.RequestHandler`|
190
-
| stdlib rt |`func NewRoundTripperStd(rt http.RoundTripper, thr Throttler, with RoundTripperStdWith, on RoundTripperStdOn) http.RoundTripper`|
191
-
| fasthttp rt |`func NewRoundTripperFast(rt RoundTripperFast, thr Throttler, with RoundTripperFastWith, on RoundTripperFastOn) RoundTripperFast`|
192
-
| stdlib rpc client coded |`func NewRPCClientCodec(cc rpc.ClientCodec, thr Throttler, with RPCCodecWith, on RPCCodecOn) rpc.ClientCodec`|
193
-
| stdlib rpc server coded |`func NewRPCServerCodec(sc rpc.ServerCodec, thr Throttler, with RPCCodecWith, on RPCCodecOn) rpc.ServerCodec`|
194
-
| grpc client stream |`func NewGRPCClientStream(cs grpc.ClientStream, thr Throttler, with GRPCStreamWith, on GRPCStreamOn) grpc.ClientStream`|
195
-
| grpc server stream |`func NewGrpServerStream(ss grpc.ServerStream, thr Throttler, with GRPCStreamWith, on GRPCStreamOn) grpc.ServerStream`|
196
-
| go-micro client |`func NewMicroClient(thr Throttler, with MicroClientWith, on MicroOn) client.Wrapper`|
197
-
| go-micro server |`func NewMicroHandler(thr Throttler, with MicroServerWith, on MicroOn) server.HandlerWrapper`|
198
-
| stdlib net conn |`func NewNetConn(conn net.Conn, thr Throttler, with NetConnWith, on NetConnOn, mode NetConnMode) net.Conn`|
199
-
| stdlib sql |`func NewSQLClient(cli SQLClient, thr Throttler, with SQLClientWith, on SQLClientOn) SQLClient`|
200
-
| stdlib io reader |`func NewReader(r io.Reader, thr Throttler, with RWWith, on RWOn) io.Reader`|
201
-
| stdlib io writer |`func NewWriter(w io.Writer, thr Throttler, with RWWith, on RWOn) io.Writer`|
0 commit comments