diff --git a/go.mod b/go.mod deleted file mode 100644 index 334013c..0000000 --- a/go.mod +++ /dev/null @@ -1,20 +0,0 @@ -module github.com/timehop/batchhat - -go 1.20 - -require ( - github.com/onsi/ginkgo v1.16.5 - github.com/onsi/gomega v1.27.0 - github.com/timehop/golog v0.0.0-20171219220921-cbf2afa06faa -) - -require ( - github.com/fsnotify/fsnotify v1.4.9 // indirect - github.com/google/go-cmp v0.5.9 // indirect - github.com/nxadm/tail v1.4.8 // indirect - golang.org/x/net v0.6.0 // indirect - golang.org/x/sys v0.5.0 // indirect - golang.org/x/text v0.7.0 // indirect - gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect - gopkg.in/yaml.v3 v3.0.1 // indirect -) diff --git a/go.sum b/go.sum deleted file mode 100644 index 0cc1a59..0000000 --- a/go.sum +++ /dev/null @@ -1,92 +0,0 @@ -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= -github.com/fsnotify/fsnotify v1.4.9 h1:hsms1Qyu0jgnwNXIxa+/V/PDsU6CfLf6CNO8H7IWoS4= -github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= -github.com/go-logr/logr v1.2.3 h1:2DntVwHkVopvECVRSlL5PSo9eG+cAkDCuckLubN+rq0= -github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg7847qk6SyHyPtNmDHnmrv/HOrqktSC+C9fM+CJOE= -github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= -github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= -github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= -github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= -github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= -github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= -github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw= -github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= -github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= -github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= -github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= -github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= -github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= -github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= -github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk= -github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE= -github.com/onsi/ginkgo v1.16.5/go.mod h1:+E8gABHa3K6zRBolWtd+ROzc/U5bkGt0FwiG042wbpU= -github.com/onsi/ginkgo/v2 v2.8.1 h1:xFTEVwOFa1D/Ty24Ws1npBWkDYEV9BqZrsDxVrVkrrU= -github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY= -github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= -github.com/onsi/gomega v1.27.0 h1:QLidEla4bXUuZVFa4KX6JHCsuGgbi85LC/pCHrt/O08= -github.com/onsi/gomega v1.27.0/go.mod h1:i189pavgK95OSIipFBa74gC2V4qrQuvjuyGEr3GmbXA= -github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= -github.com/timehop/golog v0.0.0-20171219220921-cbf2afa06faa h1:XmauaQKjqFdruqQn3i1ZLROecSxcTncTEnweyZjMNAw= -github.com/timehop/golog v0.0.0-20171219220921-cbf2afa06faa/go.mod h1:5snQTM41D/oFFJvpy4wLBsYt9HgGJ8bL8F8dgmtt13E= -github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.6.0 h1:L4ZwwTvKW9gr0ZMS1yrHD9GZhIuVjOBBnaKH+SPQK0Q= -golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= -golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210112080510-489259a85091/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.5.0 h1:MUK/U/4lj1t1oPg0HfuXDN/Z1wv31ZJ/YcPiGccS4DU= -golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.7.0 h1:4BRB4x83lYWy72KwLD/qYDuTu7q9PjSagHvijDw7cLo= -golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= -golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= -google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= -google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= -google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= -google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= -google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.28.0 h1:w43yiav+6bVFTBQFZX0r7ipe9JQ1QsbMgHwbBziscLw= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= -gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= -gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= -gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= -gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/stathat/batcher.go b/stathat/batcher.go index a3ecc38..74ebffb 100644 --- a/stathat/batcher.go +++ b/stathat/batcher.go @@ -4,7 +4,7 @@ import ( "bytes" "encoding/json" "errors" - "io/ioutil" + "io" "math" "net/http" "time" @@ -24,6 +24,40 @@ var ( ErrNaN = errors.New("value is not a number (NaN)") ) +// Option configures a Batcher. +type Option func(*Batcher) + +// WithHTTPClient sets a custom HTTP client for the Batcher. +// If not provided, http.DefaultClient is used. +func WithHTTPClient(c *http.Client) Option { + return func(b *Batcher) { + if c != nil { + b.client = c + } + } +} + +// WithRetries sets the number of retries for failed requests. +// A value of 0 means no retries (single attempt). +// If not provided, defaults to 1 retry (2 total attempts). +func WithRetries(n int) Option { + return func(b *Batcher) { + if n >= 0 { + b.retries = n + } + } +} + +// WithEZKey sets the StatHat EZ key for authentication. +// This allows overriding the key passed to NewBatcher (e.g., from SecretsManager). +func WithEZKey(key string) Option { + return func(b *Batcher) { + if key != "" { + b.EZKey = key + } + } +} + type Stat struct { Stat string `json:"stat"` Count *float64 `json:"count,omitempty"` @@ -38,20 +72,35 @@ type BulkStat struct { type Batcher struct { Stats chan Stat - stop chan interface{} + stop chan any EZKey string flushInterval time.Duration + client *http.Client + retries int } -func NewBatcher(ezKey string, d time.Duration) (Batcher, error) { +func NewBatcher(ezKey string, d time.Duration, opts ...Option) (Batcher, error) { if d < 0 { return Batcher{}, ErrInvalidFlushInterval } c := make(chan Stat, 10000) - st := make(chan interface{}) + st := make(chan any) + + b := Batcher{ + EZKey: ezKey, + flushInterval: d, + stop: st, + Stats: c, + client: http.DefaultClient, + retries: 1, + } - return Batcher{EZKey: ezKey, flushInterval: d, stop: st, Stats: c}, nil + for _, opt := range opts { + opt(&b) + } + + return b, nil } // PostEZCount enqueues a given integer value to be added to a StatHat counter stat. 0 values will @@ -71,7 +120,7 @@ func (b Batcher) PostEZCount(statName string, count int) error { return b.PostEZCountTime(statName, count, time.Now().Unix()) } -// PostEZCount enqueues a given integer value to be added to a StatHat counter stat with a specific +// PostEZCountTime enqueues a given integer value to be added to a StatHat counter stat with a specific // timestamp. 0 values will be dropped. func (b Batcher) PostEZCountTime(statName string, count int, timestamp int64) error { // If a caller is sending a 0, they probably intend for it to be a no-op — to essentially @@ -167,15 +216,15 @@ func (b Batcher) flush(stats []*Stat) { req.Header.Add("Content-Type", "application/json") - send(req, 2) + b.send(req) } } func chunks(stats []*Stat) chan []*Stat { c := make(chan []*Stat) go func() { - chunks := len(stats) / 1000 - for i := 0; i <= chunks; i++ { + cnks := len(stats) / 1000 + for i := 0; i <= cnks; i++ { start := i * 1000 end := start + 1000 @@ -193,18 +242,21 @@ func chunks(stats []*Stat) chan []*Stat { return c } -func send(req *http.Request, retries int) { - for i := 0; i < retries; i++ { - resp, err := http.DefaultClient.Do(req) - if err != nil { - log.Warn(logID, "error posting data to stathat", "error", err.Error()) - continue +func (b Batcher) send(req *http.Request) { + var attempt int + for { + resp, err := b.client.Do(req) + if err == nil { + body, _ := io.ReadAll(resp.Body) + _ = resp.Body.Close() + log.Debug(logID, "Flushed", "status", resp.Status, "resp", string(body)) + return } - b, _ := ioutil.ReadAll(resp.Body) - defer resp.Body.Close() - - log.Debug(logID, "Flushed", "status", resp.Status, "resp", string(b)) - break + log.Warn(logID, "error posting data to stathat", "error", err.Error()) + attempt++ + if attempt > b.retries { + return + } } } diff --git a/stathat/batcher_test.go b/stathat/batcher_test.go index d9ad608..41c0949 100644 --- a/stathat/batcher_test.go +++ b/stathat/batcher_test.go @@ -1,11 +1,13 @@ package stathat_test import ( + "bytes" "encoding/json" - "io/ioutil" + "io" "math" "net/http" "net/http/httptest" + "sync/atomic" "time" . "github.com/onsi/ginkgo" @@ -14,6 +16,13 @@ import ( "github.com/timehop/batchhat/stathat" ) +// RoundTripFunc allows creating http.RoundTripper from a function +type RoundTripFunc func(req *http.Request) (*http.Response, error) + +func (f RoundTripFunc) RoundTrip(req *http.Request) (*http.Response, error) { + return f(req) +} + var _ = Describe("Batcher", func() { Describe(".NewBatcher", func() { Describe("with valid parameters", func() { @@ -31,6 +40,34 @@ var _ = Describe("Batcher", func() { Expect(err).To(Equal(stathat.ErrInvalidFlushInterval)) }) }) + + Describe("with custom HTTP client", func() { + It("should use the provided client", func() { + var customClientUsed atomic.Bool + customClient := &http.Client{ + Transport: RoundTripFunc(func(req *http.Request) (*http.Response, error) { + customClientUsed.Store(true) + return &http.Response{ + StatusCode: 200, + Body: io.NopCloser(bytes.NewBufferString(`{"status":200,"msg":"ok"}`)), + }, nil + }), + } + + b, err := stathat.NewBatcher("ezkey", 10*time.Millisecond, stathat.WithHTTPClient(customClient)) + Expect(err).To(BeNil()) + + go b.Start() + defer b.Stop() + + stathat.APIURL = "http://test.local/ez" + b.PostEZCount("test", 1) + + Eventually(func() bool { + return customClientUsed.Load() + }).Should(BeTrue()) + }) + }) }) AssertEZCall := func(action func(b stathat.Batcher), verify func(stats []*stathat.Stat)) { @@ -52,7 +89,7 @@ var _ = Describe("Batcher", func() { It("should send the stat", func() { done := make(chan struct{}) ts = httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - bts, err := ioutil.ReadAll(r.Body) + bts, err := io.ReadAll(r.Body) defer r.Body.Close() Expect(err).To(BeNil()) @@ -332,7 +369,7 @@ var _ = Describe("Batcher", func() { done := make(chan struct{}) ts = httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - bts, err := ioutil.ReadAll(r.Body) + bts, err := io.ReadAll(r.Body) defer r.Body.Close() Expect(err).To(BeNil()) diff --git a/stathat/go.mod b/stathat/go.mod index 30ef338..29a3ec3 100644 --- a/stathat/go.mod +++ b/stathat/go.mod @@ -5,7 +5,7 @@ go 1.20 require ( github.com/onsi/ginkgo v1.16.5 github.com/onsi/gomega v1.27.0 - github.com/timehop/golog v0.0.0-20171219220921-cbf2afa06faa + github.com/timehop/golog v1.0.0 ) require ( diff --git a/stathat/go.sum b/stathat/go.sum index 0cc1a59..4b4389d 100644 --- a/stathat/go.sum +++ b/stathat/go.sum @@ -34,8 +34,8 @@ github.com/onsi/gomega v1.27.0/go.mod h1:i189pavgK95OSIipFBa74gC2V4qrQuvjuyGEr3G github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= -github.com/timehop/golog v0.0.0-20171219220921-cbf2afa06faa h1:XmauaQKjqFdruqQn3i1ZLROecSxcTncTEnweyZjMNAw= -github.com/timehop/golog v0.0.0-20171219220921-cbf2afa06faa/go.mod h1:5snQTM41D/oFFJvpy4wLBsYt9HgGJ8bL8F8dgmtt13E= +github.com/timehop/golog v1.0.0 h1:EU4AUqPGyQ7anhplWto/k48/Uv0d1As90NgD/OGlS5M= +github.com/timehop/golog v1.0.0/go.mod h1:5snQTM41D/oFFJvpy4wLBsYt9HgGJ8bL8F8dgmtt13E= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=