Generate an RSS feed from a config file and an mp3 file.
Go to file
Ismael Arenzana c02bd8c665 Better web 2020-11-04 15:21:16 -05:00
cmd Better web 2020-11-04 15:21:16 -05:00
examples Better web 2020-11-04 15:21:16 -05:00
objects Better web 2020-11-04 15:21:16 -05:00
vendor Basic S3 implementation 2020-11-02 16:16:52 -05:00
web Better web 2020-11-04 15:21:16 -05:00
.gitignore add/generate work 2020-10-28 18:06:10 -04:00
CHANGELOG.md Initial commit 2020-10-27 12:55:32 -04:00
Dockerfile Initial commit 2020-10-27 12:55:32 -04:00
LICENSE Initial commit 2020-10-27 12:55:32 -04:00
Makefile Initial commit 2020-10-27 12:55:32 -04:00
README.md Initial commit 2020-10-27 12:55:32 -04:00
VERSION Initial commit 2020-10-27 12:55:32 -04:00
go.mod Basic S3 implementation 2020-11-02 16:16:52 -05:00
go.sum Basic S3 implementation 2020-11-02 16:16:52 -05:00
main.go Initial commit 2020-10-27 12:55:32 -04:00

README.md

Build Status

yessir

yessir creates a mock API server that will accept anything you throw at it (or reject, see below) for testing purposes.

Install

Build from source

Make sure Go 1.11+ is installed on your machine. You can follow this guide to do so. On a Mac, just set your $GOPATH and run brew install go.

git clone https://github.com/arenzana/yessir.git
cd yessir
make

Now you can execute yessir

Docker

make docker
docker run --rm -it -p 8888:8888 github.com/arenzana/yessir:latest

Usage

Below is the usage of the run command.

Start serving!

Usage:
  yessir run [flags]

Flags:
  -c, --cert string     Path to the server TLS certificate file (only for https)
  -h, --help            help for run
  -k, --key string      Path to the server TLS certificate key file (only for https)
  -p, --port int        Port to listen on (default 8888)
  -r, --return int      HTTP return code (200,404,500) (default 200)
  -s, --scheme string   Scheme http|https (default "http")

Noteworthy options are -r to return a different http code rather than 200. And -s to pick https (which works inconjunction with -k and -c for TLS) as the scheme.

Examples

yessir run

Is the simplest way to run yessir. It will start a server on port 8888 that will listen for all requests.

yessir -p 8877 -s https -c ~/Downloads/example.com.crt -k ~/Downloads/example.com.key -r 500

The example above will listen for https requests on port 8877 and, instead of returning 200, it will always return a 500 error.