Documentation ¶
Index ¶
- type MySQLBackend
- func (b *MySQLBackend) Close()
- func (b MySQLBackend) CountEvents(ctx context.Context, filter nostr.Filter) (int64, error)
- func (b MySQLBackend) DeleteEvent(ctx context.Context, evt *nostr.Event) error
- func (b *MySQLBackend) Init() error
- func (b MySQLBackend) QueryEvents(ctx context.Context, filter nostr.Filter) (ch chan *nostr.Event, err error)
- func (b *MySQLBackend) 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 MySQLBackend ¶
type MySQLBackend struct { *sqlx.DB DatabaseURL string QueryLimit int QueryIDsLimit int QueryAuthorsLimit int QueryKindsLimit int QueryTagsLimit int }
func (*MySQLBackend) Close ¶
func (b *MySQLBackend) Close()
func (MySQLBackend) CountEvents ¶
func (b MySQLBackend) CountEvents(ctx context.Context, filter nostr.Filter) (int64, error)
func (MySQLBackend) DeleteEvent ¶
func (b MySQLBackend) DeleteEvent(ctx context.Context, evt *nostr.Event) error
func (*MySQLBackend) Init ¶
func (b *MySQLBackend) Init() error
func (MySQLBackend) QueryEvents ¶
func (b MySQLBackend) QueryEvents(ctx context.Context, filter nostr.Filter) (ch chan *nostr.Event, err error)
Click to show internal directories.
Click to hide internal directories.