go-libs icon indicating copy to clipboard operation
go-libs copied to clipboard

Results 11 go-libs issues
Sort by recently updated
recently updated
newest added

```go cl := InitClient("someapi.com", ...) func someHttpHandler(params) { // currently you can do the following but it will affect other processes that use the same client cl.SetHeader("some-key", params["some-value"]) cl.Get(...) //...

Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.9.0 to 0.17.0. Commits 9d2ee97 ssh: implement strict KEX protocol changes 4e5a261 ssh: close net.Conn on all NewServerConn errors 152cdb1 x509roots/fallback: update bundle fdfe1f8 ssh: defer channel...

dependencies

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.10.0 to 0.17.0. Commits b225e7c http2: limit maximum handler goroutines to MaxConcurrentStreams 88194ad go.mod: update golang.org/x dependencies 2b60a61 quic: fix several bugs in flow control accounting 73d82ef...

dependencies

The library we are using for rabbitmq is not maintained any longer https://github.com/streadway/amqp/pull/500#issuecomment-857652492 We should consider switching to https://github.com/rabbitmq/amqp091-go It has some useful features, like PublishWithContext()

Existing mq health check can be improved, so it checks more then connection state. Possible approach: ``` func checkChannelHealth(channel *amqp.Channel) { _, err := channel.ExchangeDeclarePassive( "healthcheck", // name "direct", //...

json.NewEncoder adds "\n" at the end of encoded data https://github.com/golang/go/blob/26b48442569102226baba1d9b4a83aaee3d06611/src/encoding/json/stream.go#L196 This can cause potential issues when requests should be signed. Consider this code, ``` req := httpClient.InitClient("https://test.com", nil) body :=...

Make labels var optional so it doesn't require passing `nil`. https://github.com/trustwallet/go-libs/blob/master/metrics/metrics.go#L32

enhancement

Re-use this code https://github.com/trustwallet/go-libs/blob/0d0deaa3569ff0d4730cb2a4439d4d5706a10558/crypto/sign.go#L65 in hmac handler middleware

[issue](https://github.com/trustwallet/go-libs/issues/188)