get rid of badger everywhere, including as an sdk/hints backend.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user