Documentation ¶
Index ¶
- type PostgresBackend
- func (b *PostgresBackend) AfterSave(evt *nostr.Event)
- func (b *PostgresBackend) BeforeSave(evt *nostr.Event)
- func (b PostgresBackend) DeleteEvent(id string, pubkey string) error
- func (b *PostgresBackend) Init() error
- func (b PostgresBackend) QueryEvents(filter *nostr.Filter) (events []nostr.Event, err error)
- func (b *PostgresBackend) SaveEvent(evt *nostr.Event) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostgresBackend ¶
func (*PostgresBackend) AfterSave ¶ added in v1.7.1
func (b *PostgresBackend) AfterSave(evt *nostr.Event)
func (*PostgresBackend) BeforeSave ¶ added in v1.7.1
func (b *PostgresBackend) BeforeSave(evt *nostr.Event)
func (PostgresBackend) DeleteEvent ¶
func (b PostgresBackend) DeleteEvent(id string, pubkey string) error
func (*PostgresBackend) Init ¶
func (b *PostgresBackend) Init() error
func (PostgresBackend) QueryEvents ¶
func (b PostgresBackend) QueryEvents(filter *nostr.Filter) (events []nostr.Event, err error)
func (*PostgresBackend) SaveEvent ¶
func (b *PostgresBackend) SaveEvent(evt *nostr.Event) error
Click to show internal directories.
Click to hide internal directories.