get rid of badger everywhere, including as an sdk/hints backend.

This commit is contained in:
fiatjaf
2025-09-03 21:33:39 -03:00
parent a09429236e
commit cd398b94b5
16 changed files with 359 additions and 444 deletions

View File

@@ -24,7 +24,7 @@ features:
- title: It plugs into event stores easily
icon: 📦
link: /core/eventstore
details: khatru's companion, the `eventstore` library, provides all methods for storing and querying events efficiently from LMDB, Badger and others.
details: khatru's companion, the `eventstore` library, provides all methods for storing and querying events efficiently from LMDB, BoltDB and others.
- title: It supports NIP-42 AUTH
icon: 🪪
link: /core/auth
@@ -46,7 +46,7 @@ It allows you to create a fully-functional relay in 7 lines of code:
```go
func main() {
relay := khatru.NewRelay()
db := badger.BadgerBackend{Path: "/tmp/khatru-badgern-tmp"}
db := boltdb.BoltBackend{Path: "/tmp/khatru-bolt-tmp"}
db.Init()
relay.UseEventStore(db, 400)
http.ListenAndServe(":3334", relay)