Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP Tracker Client: add scrape request #651

Commits on Jan 29, 2024

  1. feat: [torrust#649] add cargo dependency: clap

    For console commands.
    josecelano committed Jan 29, 2024
    Configuration menu
    Copy the full SHA
    f439015 View commit details
    Browse the repository at this point in the history
  2. refactor: [torrust#649] use clap in HTTP tracker client

    An added scaffolding for scrape command.
    josecelano committed Jan 29, 2024
    Configuration menu
    Copy the full SHA
    b05e2f5 View commit details
    Browse the repository at this point in the history
  3. feat: [torrust#649] scrape req for the HTTP tracker client

    ```console
    cargo run --bin http_tracker_client scrape http://127.0.0.1:7070 9c38422213e30bff212b30c360d26f9a02136422 9c38422213e30bff212b30c360d26f9a02136423 | jq
    ```
    
    ```json
    {
      "9c38422213e30bff212b30c360d26f9a02136422": {
        "complete": 0,
        "downloaded": 0,
        "incomplete": 0
      },
      "9c38422213e30bff212b30c360d26f9a02136423": {
        "complete": 0,
        "downloaded": 0,
        "incomplete": 0
      }
    }
    ```
    josecelano committed Jan 29, 2024
    Configuration menu
    Copy the full SHA
    415ca1c View commit details
    Browse the repository at this point in the history
  4. feat: [torrust#649] add cargo dep: anyhow

    To handle errors in console clients.
    josecelano committed Jan 29, 2024
    Configuration menu
    Copy the full SHA
    271bfa8 View commit details
    Browse the repository at this point in the history
  5. refactor: [torrust#649] use anyhow to handle errors

    in the HTTP tracker client.
    josecelano committed Jan 29, 2024
    Configuration menu
    Copy the full SHA
    0624bf2 View commit details
    Browse the repository at this point in the history