Versions in this module Expand all Collapse all v0 v0.1.0 Nov 27, 2026 Changes in this version + const ReachWithin + func Version() int + type Store struct + func New(ctx context.Context, pool *pgxpool.Pool, schema string) (*Store, error) + func (s *Store) Begin(ctx context.Context, b server.Begun) (server.Begun, error) + func (s *Store) BundleArchive(ctx context.Context, digest string) ([]byte, error) + func (s *Store) Bundles(ctx context.Context) ([]server.Bundle, error) + func (s *Store) CountMine(ctx context.Context, person string) (map[string]server.MineCount, error) + func (s *Store) CountTickets(ctx context.Context, versions []server.KindVersion) ([]server.TicketCount, error) + func (s *Store) CountWaiting(ctx context.Context, person string) (map[string]int, error) + func (s *Store) DoneToDo(ctx context.Context, id string, at time.Time) error + func (s *Store) Draft(ctx context.Context, person, id string) (server.Draft, error) + func (s *Store) DueTimers(ctx context.Context, now time.Time, lease time.Duration, limit int) ([]server.Timer, error) + func (s *Store) DueToDo(ctx context.Context, now time.Time, lease time.Duration, limit int) ([]server.ToDo, error) + func (s *Store) Empty(ctx context.Context) error + func (s *Store) Files() server.Files + func (s *Store) ForgetDrafts(ctx context.Context, before time.Time, limit int) (int, error) + func (s *Store) ForgetOperations(ctx context.Context, before time.Time, limit int) (int, error) + func (s *Store) Imports(ctx context.Context, since time.Time) ([]time.Time, error) + func (s *Store) KeepDraft(ctx context.Context, d server.Draft, max int) error + func (s *Store) KeepOutcome(ctx context.Context, id string, at time.Time, outcome json.RawMessage) error + func (s *Store) KeepToDo(ctx context.Context, td server.ToDo) error + func (s *Store) KeepUpload(ctx context.Context, u server.Upload, max int) (string, error) + func (s *Store) KeptVersions(ctx context.Context) ([]server.TicketCount, error) + func (s *Store) LastImport(ctx context.Context) (server.Record, error) + func (s *Store) LatestOrganization(ctx context.Context) (server.OrgSnapshot, error) + func (s *Store) LetGoUploads(ctx context.Context, before time.Time, limit int) ([]server.Upload, error) + func (s *Store) Lock(ctx context.Context, ticket string) (context.Context, func(), error) + func (s *Store) Mine(ctx context.Context, person string, q server.MineQuery) ([]server.TicketRecord, error) + func (s *Store) Moves(ctx context.Context, ticket string) ([]server.MoveRecord, error) + func (s *Store) OpenUploads(ctx context.Context, person string) (int, error) + func (s *Store) Operation(ctx context.Context, person, key string) (server.OperationRecord, error) + func (s *Store) Organization(ctx context.Context, id string) (server.OrgSnapshot, error) + func (s *Store) PutOffTimer(ctx context.Context, k server.TimerKey, try time.Time) error + func (s *Store) Record(ctx context.Context, id string) (server.Record, error) + func (s *Store) Records(ctx context.Context, q server.RecordQuery) ([]server.Line, error) + func (s *Store) Renew(ctx context.Context, b server.Begun) error + func (s *Store) RetryToDo(ctx context.Context, id string, try time.Time, why string) error + func (s *Store) Revoke(ctx context.Context, session string, until time.Time) error + func (s *Store) Revoked(ctx context.Context, session string) (bool, error) + func (s *Store) Save(ctx context.Context, m *server.Move) error + func (s *Store) SaveChange(ctx context.Context, c *server.Change) error + func (s *Store) SaveOrganization(ctx context.Context, o server.OrgSnapshot) error + func (s *Store) Starts(ctx context.Context) ([]server.Start, error) + func (s *Store) Ticket(ctx context.Context, id string) (server.TicketRecord, error) + func (s *Store) Tickets(ctx context.Context, q server.TicketsQuery) ([]server.TicketRecord, error) + func (s *Store) Timers(ctx context.Context, ticket string) ([]server.Timer, error) + func (s *Store) ToDoItem(ctx context.Context, id string) (server.ToDo, error) + func (s *Store) ToDoList(ctx context.Context, ticket string) ([]server.ToDo, error) + func (s *Store) Trial(ctx context.Context) (any, func(), error) + func (s *Store) UploadOf(ctx context.Context, person, key string) (string, error) + func (s *Store) UploadsDeleted(ctx context.Context, ids []string) error + func (s *Store) Waiting(ctx context.Context, people []string, q server.WaitingQuery) ([]server.TicketRecord, error) + type Tx struct + func (t *Tx) AfterCommit(f func())