{"modulePath":"github.com/FelineStateMachine/tinyrelay","version":"v0.0.0-20260923223823-92682824e566","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package gitstore\n\n## Variables\n\n```go\nvar ErrDuplicate = errors.New(\"duplicate event\")\n```\nErrDuplicate indicates that an event was already persisted.\n\n## Types\n\n```go\ntype Store struct {\n\t// contains filtered or unexported fields\n}\n```\nStore adapts the shared SQLite event store to the Git engine contract.\n\n```go\nfunc Open(ctx context.Context, path string) (*Store, error)\n```\nOpen creates a caller-owned SQLite store.\n\n```go\nfunc Wrap(store *storage.Store) *Store\n```\nWrap adapts an existing host store without taking lifecycle ownership.\n\n```go\nfunc (s *Store) Close() error\n```\n\n```go\nfunc (s *Store) Exists(ctx context.Context, id string, kind int) (bool, error)\n```\n\n```go\nfunc (s *Store) Latest(ctx context.Context, kind int, pubkey, identifier string) (nostr.Event, bool, error)\n```\n\n```go\nfunc (s *Store) Query(ctx context.Context, f nostr.Filter, now int64, limit int) ([]nostr.Event, error)\n```\n\n```go\nfunc (s *Store) Save(ctx context.Context, e nostr.Event, now int64) error\n```\n\n","path":"github.com/FelineStateMachine/tinyrelay/internal/gitstore","name":"gitstore","synopsis":"","isRedistributable":true}
