- Go module setup with BadgerDB, Gorilla Mux, Logrus, UUID, and YAML - Core data structures for distributed key-value store - HTTP REST API with /kv/ endpoints (GET, PUT, DELETE) - Member management endpoints (/members/) - Timestamp indexing for efficient time-based queries - YAML configuration with auto-generation - Structured JSON logging with configurable levels - Operational modes (normal, read-only, syncing) - Basic health check endpoint - Graceful shutdown handling Tested basic functionality - all core endpoints working correctly. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
31 lines
957 B
Modula-2
31 lines
957 B
Modula-2
module kvs
|
|
|
|
go 1.21
|
|
|
|
require (
|
|
github.com/dgraph-io/badger/v4 v4.2.0
|
|
github.com/google/uuid v1.4.0
|
|
github.com/gorilla/mux v1.8.1
|
|
github.com/sirupsen/logrus v1.9.3
|
|
gopkg.in/yaml.v3 v3.0.1
|
|
)
|
|
|
|
require (
|
|
github.com/cespare/xxhash/v2 v2.2.0 // indirect
|
|
github.com/dgraph-io/ristretto v0.1.1 // indirect
|
|
github.com/dustin/go-humanize v1.0.0 // indirect
|
|
github.com/gogo/protobuf v1.3.2 // indirect
|
|
github.com/golang/glog v1.0.0 // indirect
|
|
github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6 // indirect
|
|
github.com/golang/protobuf v1.5.2 // indirect
|
|
github.com/golang/snappy v0.0.3 // indirect
|
|
github.com/google/flatbuffers v1.12.1 // indirect
|
|
github.com/klauspost/compress v1.12.3 // indirect
|
|
github.com/kr/text v0.2.0 // indirect
|
|
github.com/pkg/errors v0.9.1 // indirect
|
|
go.opencensus.io v0.22.5 // indirect
|
|
golang.org/x/net v0.7.0 // indirect
|
|
golang.org/x/sys v0.5.0 // indirect
|
|
google.golang.org/protobuf v1.28.1 // indirect
|
|
)
|