Documentation
¶
Index ¶
- Variables
- type Store
- func (s *Store) Close() error
- func (s *Store) Exists(ctx context.Context, id string, kind int) (bool, error)
- func (s *Store) Latest(ctx context.Context, kind int, pubkey, identifier string) (nostr.Event, bool, error)
- func (s *Store) Query(ctx context.Context, f nostr.Filter, now int64, limit int) ([]nostr.Event, error)
- func (s *Store) Save(ctx context.Context, e nostr.Event, now int64) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDuplicate = errors.New("duplicate event")
ErrDuplicate indicates that an event was already persisted.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store adapts the shared SQLite event store to the Git engine contract.
Click to show internal directories.
Click to hide internal directories.