mirror of
https://github.com/aljazceru/khatru.git
synced 2026-01-11 09:24:21 +01:00
25 lines
451 B
Go
25 lines
451 B
Go
package relayer
|
|
|
|
import (
|
|
"github.com/fiatjaf/go-nostr"
|
|
"github.com/fiatjaf/go-nostr/nip11"
|
|
)
|
|
|
|
var Log = log
|
|
|
|
type Relay interface {
|
|
Name() string
|
|
Init() error
|
|
SaveEvent(*nostr.Event) error
|
|
DeleteEvent(id string, pubkey string) error
|
|
QueryEvents(*nostr.Filter) ([]nostr.Event, error)
|
|
}
|
|
|
|
type Injector interface {
|
|
InjectEvents() chan nostr.Event
|
|
}
|
|
|
|
type Informationer interface {
|
|
GetNIP11InformationDocument() nip11.RelayInformationDocument
|
|
}
|