Documentation ¶
Index ¶
- type PostgresBackend
- func (b PostgresBackend) CountEvents(ctx context.Context, filter *nostr.Filter) (int64, error)
- func (b PostgresBackend) DeleteEvent(ctx context.Context, id string, pubkey string) error
- func (b *PostgresBackend) Init() error
- func (b PostgresBackend) QueryEvents(ctx context.Context, filter *nostr.Filter) (ch chan *nostr.Event, err error)
- func (b *PostgresBackend) SaveEvent(ctx context.Context, evt *nostr.Event) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostgresBackend ¶
type PostgresBackend struct { *sqlx.DB DatabaseURL string QueryLimit int QueryIDsLimit int QueryAuthorsLimit int QueryKindsLimit int QueryTagsLimit int }
func (PostgresBackend) CountEvents ¶
func (b PostgresBackend) CountEvents(ctx context.Context, filter *nostr.Filter) (int64, error)
func (PostgresBackend) DeleteEvent ¶
func (*PostgresBackend) Init ¶
func (b *PostgresBackend) Init() error
func (PostgresBackend) QueryEvents ¶
func (b PostgresBackend) QueryEvents(ctx context.Context, filter *nostr.Filter) (ch chan *nostr.Event, err error)
Click to show internal directories.
Click to hide internal directories.