proglog

module
v0.0.0-...-108922d Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: MIT

README

proglog

A distributed commit log service. Ref: "Distributed Services with Go"

References

Usage


# Start a server
$ go run cmd/server/main.go

# API test
# Add a record
curl -X POST localhost:8080 -d '{"record": {"value": "record0"}}'
curl -X POST localhost:8080 -d '{"record": {"value": "record1"}}'
curl -X POST localhost:8080 -d '{"record": {"value": "record2"}}'

# Get a record
curl -X GET localhost:8080 -d '{"offset": 0}'
curl -X GET localhost:8080 -d '{"offset": 1}'

Directories

Path Synopsis
api
v1
cmd
internal
log

Jump to

Keyboard shortcuts

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