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