pong

command module
v0.0.0-...-65ed424 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2015 License: Apache-2.0 Imports: 7 Imported by: 0

README

Pong

Pong is a program that generates http servers with predefined responses based on the configuration. Pong is used to test proxy servers on different endpoint failure scenarios.

Installation:

make deps
make install

Usage

pong -c config.yaml

Examples:

Starts the server that responds ok 50% of requests, hangs for 1 second and responds 500 another 50% of the requests.

servers:
  - addr: localhost:5000
    readtimeout: 10s
    writetimeout: 10s
    handlers:
      /:
        - rate: 50%
          code: 200
          body: ok
          delay: 0s

        - rate: 50%
          code: 500
          body: not ok
          delay: 1s

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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