Categorygithub.com/ferdingler/go-hammer/cli
modulepackage
0.1.9
Repository: https://github.com/ferdingler/go-hammer.git
Documentation: pkg.go.dev

# README

go-hammer Command Line Tool

Example:

cli \
--endpoint https://aws.amazon.com \
--method PUT \
--duration 60 \
--tps 1 \
--payload '{"hello":"world"}' \
--headers '{"content-type":"application/json"}'

Example passing a scenario defined in JSON

{
    "duration": 60,
    "tps": 1,
    "hammer": "HTTPHammer",
    "hammerConfig": {
        "method": "GET",
        "endpoint": "https://www.google.com",
        "payload": "Hello World",
        "headers": {
            "content-type": "application/json"
        }
    }
}

Then run the CLI:

cli run scenario --path ./scenario.json

# Packages

Copyright © 2020 NAME HERE <EMAIL ADDRESS> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.