flint

command module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2021 License: MIT Imports: 8 Imported by: 0

README

Flint flint

Flint is a key/value store, where the key is the http request path, and the value is the http request body.

Install

If you have go installed, run:

go install github.com/hyqe/flint@latest

to get help run:

flint -h

run

run the server in verbose mode:

flint --verbose
Examples

PUT

curl -X PUT 'http://localhost:2000/foo' \
-H 'Content-Type: application/json' \
-d'{
    "a": 1,
    "b": 2
}'

GET

curl 'http://localhost:2000/foo'

returns:

Content-Type: application/json
{
    "a": 1,
    "b": 2
}

DELETE

curl -X DELETE 'http://localhost:2000/foo'

Docker

docker pull hyqe/flint:latest

run

docker run \
    -p 2000:2000 \
    --name flint \
    hyqe/flint

run forever in the background

docker run \
    -d \
    -p 2000:2000 \
    --restart unless-stopped \
    --name flint \
    hyqe/flint

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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