endpoint-hitter

command module
v0.0.0-...-e9d6d0b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2018 License: MIT Imports: 14 Imported by: 0

README

Endpoint Hitter

Introduction

Small application that is able to hit in parallel a requested endpoint, having a uuid as a path variable. The endpoint, the methode type, the number of expected parallel requests, and the authentication credentials can be given as application parameters.

The response status for the uuid and the generated transaction id will be logged in a separate file. Other application related logs will be sent to stdout.

For example:

We can execute a series of POST requests to the endpoint: https://{env-domain}/__post-publication-combiner/{uuid}, for the uuids read from {uuid_file_name}.txt (uuid.txt being the default).

Installation

Download the source code, dependencies:

    go get -u github.com/Financial-Times/endpoint-hitter
    cd $GOPATH/src/github.com/Financial-Times/endpoint-hitter
    go build .

Running locally

  1. Install the binary:

     go install
    
  2. Run the binary (using the help flag to see the available optional arguments):

     $GOPATH/bin/endpoint-hitter [--help]
    

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL