khatru: update docs again, now it seems to be mostly up to date.

This commit is contained in:
fiatjaf
2025-10-20 18:22:08 -03:00
parent e1fbd09407
commit 8cf120c08f
10 changed files with 40 additions and 27 deletions
-2
View File
@@ -6,8 +6,6 @@ outline: deep
If you have one (or more) set of policies that have to be executed in sequence (for example, first you check for the presence of a tag, then later in the next policies you use that tag without checking) and they only apply to some class of events, but you still want your relay to deal with other classes of events that can lead to cumbersome sets of rules, always having to check if an event meets the requirements and so on. There is where routing can help you.
It also can be handy if you get a [`khatru.Relay`](https://pkg.go.dev/github.com/fiatjaf/khatru#Relay) from somewhere else, like a library such as [`relay29`](https://github.com/fiatjaf/relay29), and you want to combine it with other policies without some interfering with the others. As in the example below:
```go
sk := os.Getenv("RELAY_SECRET_KEY")