Skip to content

waleedhammam/LetsGo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LetsGo

playground of distrubed go, a commit log service

Run

go run cmd/server/main.go

Examples

➜  server git:(main) curl -XPOST localhost:8080 -d '{"record": {"value": "c29tZXRlc3R2YWx1ZXM6MQ=="}}'
{"offset":0}
➜  server git:(main) curl -XPOST localhost:8080 -d '{"record": {"value": "c29tZXRlc3R2YWx1ZXM6Mg=="}}'
{"offset":1}
➜  server git:(main) curl -XPOST localhost:8080 -d '{"record": {"value": "c29tZXRlc3R2YWx1ZXM6Mw=="}}'
{"offset":2}
➜  server git:(main) curl -XGET localhost:8080 -d '{"offset":0}'
{"record":{"value":"c29tZXRlc3R2YWx1ZXM6MQ==","offset":0}}
➜  server git:(main) curl -XGET localhost:8080 -d '{"offset":1}'
{"record":{"value":"c29tZXRlc3R2YWx1ZXM6Mg==","offset":1}}
➜  server git:(main) curl -XGET localhost:8080 -d '{"offset":2}'
{"record":{"value":"c29tZXRlc3R2YWx1ZXM6Mw==","offset":2}}

Releases

No releases published

Packages

No packages published