buger / goreplay

GoReplay is an open-source tool for capturing and replaying live HTTP traffic into a test environment in order to continuously test your system with real data. It can be used to increase confidence in code deployments, configuration changes and infrastructure changes.

Home Page:https://goreplay.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Go module should be github.com/buger/goreplay/v2 for Golang servers to pick it up

yurivict opened this issue · comments

For an example, please see here.

The version 1.3.3 is also not picked up.

I use this script to download all package versions that Golang server sees:

#!/bin/sh

SINCE=$1 # like 2022-12-01T00:00:00Z

while [ -n "${SINCE}" ]; do

        # download
        echo "downloading SINCE=${SINCE}"
        wget "https://index.golang.org/index?limit=2000&since=${SINCE}" -q -O output-${SINCE}.json

        # get last since
        SINCE_NEW=`tail -1 output-${SINCE}.json | sed -e 's|.*"Timestamp":"||; s|".*||'`

        # EOF?
        if [ "${SINCE_NEW}" = "${SINCE}" ] || [ -z "${SINCE_NEW}" ]; then
                echo "=== End of project list reached @ ${SINCE} ==="
                exit 0
        else
                SINCE=${SINCE_NEW}
        fi
done