A little learning project. A key/value store (get/set) and queue (send/receive/delete).
Built with Go's standard library and GORM.
-
GET /user/new
- (returns
tokento be used via Bearer authentication for all other endpoints)
- (returns
-
POST /kv/set
{"key": "some_key", "value": "some_value", "ttl": 1671543399714}- (
ttlis optional)
- (
-
GET /kv/get
{"key": "some_key"}- (returns
key,value,ttl)
- (returns
-
POST /queue/send
{"namespace": "some_namespace", "message": "some_message"} -
GET /queue/receive
{"namespace": "some_namespace", "visibilityTimeout": 20000}- (returns
namespace,message,id)
- (returns
-
POST /queue/delete
{"namespace": "some_namespace", "id": 1}
Integration tests (a few tests per endpoints) run with go test ./...
End-to-end tests (fairly simple) run with python e2e.py
go run .