Skip to content

Commit

Permalink
update readme and dependency list
Browse files Browse the repository at this point in the history
  • Loading branch information
1pkg committed Oct 20, 2020
1 parent 4a4946a commit df49c7f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 653 deletions.
6 changes: 5 additions & 1 deletion README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Gohalt is simple and convenient yet powerful and efficient throttling go library

- [x] Blastly fast and efficient, Gohalt has minimal performance overhead, it was design with performance as the primary goal.
- [x] Flexible and powerful, Gohalt supports numbers of different throttling strategies and conditions that could be easily combined and customized to match your needs [link](#Throttlers).
- [x] Easy to integrate, Gohalt provides numbers of built in middlewares for simple (couple lines of code) integrations with stdlib and other libraries, among which are: io, rpc/grpc, http, sql, gin, [etc](#Integrations).
- [x] Easy to integrate, Gohalt provides separate package with numbers of built in middlewares for simple (couple lines of code) integrations with stdlib and other libraries, among which are: io, rpc/grpc, http, sql, gin, [etc](#Integrations).
- [x] Metrics awareness, Gohalt could use Prometheus metrics as a conditions for throttling.
- [x] Queueing and delayed processing, Gohalt supports throttling queueing which means you can easily save throttled query to rabbitmq/kafka stream to process it later.

Expand Down Expand Up @@ -165,6 +165,10 @@ thr := NewThrottlerAll( // throttles only if all children throttle

## Integrations

**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.

`go get -u github.com/1pkg/gohaltlib`

| Library | Adapter |
|---|---|
| gin | `func NewMiddlewareGin(thr Throttler, with GinWith, on GinOn) gin.HandlerFunc` |
Expand Down
50 changes: 5 additions & 45 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,65 +3,25 @@ module github.com/1pkg/gohalt
go 1.15

require (
github.com/CloudyKit/jet/v3 v3.0.1 // indirect
github.com/StackExchange/wmi v0.0.0-20190523213315-cbe66965904d // indirect
github.com/ajg/form v1.5.1 // indirect
github.com/astaxie/beego v1.12.2
github.com/fasthttp-contrib/websocket v0.0.0-20160511215533-1f3b11f56072 // indirect
github.com/frankban/quicktest v1.11.0 // indirect
github.com/fsnotify/fsnotify v1.4.9 // indirect
github.com/gin-gonic/gin v1.6.3
github.com/go-kit/kit v0.10.0
github.com/go-ole/go-ole v1.2.4 // indirect
github.com/go-playground/validator/v10 v10.4.0 // indirect
github.com/golang/snappy v0.0.2 // indirect
github.com/google/uuid v1.1.2 // indirect
github.com/imkira/go-interpol v1.1.0 // indirect
github.com/inconshreveable/log15 v0.0.0-20200109203555-b30bc20e4fd1 // indirect
github.com/iris-contrib/jade v1.1.4 // indirect
github.com/iris-contrib/schema v0.0.6 // indirect
github.com/k0kubun/colorstring v0.0.0-20150214042306-9440f1994b88 // indirect
github.com/kataras/golog v0.1.5 // indirect
github.com/kataras/iris/v12 v12.1.8
github.com/klauspost/compress v1.11.0 // indirect
github.com/labstack/echo/v4 v4.1.17
github.com/micro/go-micro/v2 v2.9.1
github.com/microcosm-cc/bluemonday v1.0.4 // indirect
github.com/miekg/dns v1.1.31 // indirect
github.com/moul/http2curl v1.0.0 // indirect
github.com/myesui/uuid v1.0.0 // indirect
github.com/kr/text v0.2.0 // indirect
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e // indirect
github.com/pierrec/lz4 v2.5.2+incompatible // indirect
github.com/prometheus/client_golang v1.7.1
github.com/prometheus/common v0.14.0
github.com/prometheus/procfs v0.2.0 // indirect
github.com/revel/config v1.0.0 // indirect
github.com/revel/log15 v2.11.20+incompatible // indirect
github.com/revel/pathtree v0.0.0-20140121041023-41257a1839e9 // indirect
github.com/revel/revel v1.0.0
github.com/ryanuber/columnize v2.1.2+incompatible // indirect
github.com/satori/go.uuid v1.2.0
github.com/segmentio/kafka-go v0.4.2
github.com/shiena/ansicolor v0.0.0-20200904210342-c7312218db18 // indirect
github.com/shirou/gopsutil v2.20.8+incompatible
github.com/streadway/amqp v1.0.0
github.com/stretchr/testify v1.6.1
github.com/twinj/uuid v1.0.0 // indirect
github.com/ugorji/go v1.1.9 // indirect
github.com/valyala/fasthttp v1.16.0
github.com/xeipuuv/gojsonschema v1.2.0 // indirect
github.com/xeonx/timeago v1.0.0-rc4 // indirect
github.com/yalp/jsonpath v0.0.0-20180802001716-5cc68e5049a0 // indirect
github.com/yudai/gojsondiff v1.0.0 // indirect
github.com/yudai/golcs v0.0.0-20170316035057-ecda9a501e82 // indirect
github.com/yudai/pp v2.0.1+incompatible // indirect
golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a // indirect
golang.org/x/net v0.0.0-20200927032502-5d4f70055728 // indirect
golang.org/x/sys v0.0.0-20200926100807-9d91bd62050c // indirect
google.golang.org/genproto v0.0.0-20200925023002-c2d885f95484 // indirect
google.golang.org/grpc v1.32.0
google.golang.org/protobuf v1.25.0 // indirect
gopkg.in/ini.v1 v1.61.0 // indirect
gopkg.in/natefinch/lumberjack.v2 v2.0.0 // indirect
gopkg.in/stack.v0 v0.0.0-20141108040640-9b43fcefddd0 // indirect
gopkg.in/stretchr/testify.v1 v1.2.2 // indirect
golang.org/x/text v0.3.3 // indirect
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f // indirect
gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776 // indirect
)
Loading

0 comments on commit df49c7f

Please sign in to comment.