Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PerpetualSoftware/pad
/ functions
Functions
28,840 in github.com/PerpetualSoftware/pad
⨍
Functions
28,840
◇
Types & classes
3,245
↓ 2 callers
Method
GetCloudOwnership
GetCloudOwnership reads the ownership marker and the Stripe fingerprint.
internal/store/instance_mode.go:73
↓ 2 callers
Method
GetCommitmentForReaders
GetCommitmentForReaders keeps milestone trash visibility separate from live graph lineage visibility.
internal/store/commitment.go:160
↓ 2 callers
Method
GetConventionLibrary
GetConventionLibrary fetches the convention library from the server. category — when non-empty, server-side filter against LibraryCategory.Name (case
internal/cli/client.go:1736
↓ 2 callers
Method
GetInstallUpgradeStateQ
GetInstallUpgradeStateQ reads an install of workspaceID on q.
internal/store/app_upgrade.go:39
↓ 2 callers
Method
GetItemBySlugIncludeDeleted
GetItemBySlugIncludeDeleted finds an item by slug including soft-deleted items. Used for restore operations where the item is archived.
internal/store/items.go:1224
↓ 2 callers
Method
GetItemIncludeDeletedQ
GetItemIncludeDeletedQ is GetItemIncludeDeleted parameterized over its executor (see Queryer).
internal/store/items.go:1145
↓ 2 callers
Method
GetItemVersionDiffSnapshot
GetItemVersionDiffSnapshot is GetItemVersionDiff over one read snapshot (BUG-3814): the newest version's After is the body the walk started from.
internal/store/items.go:6779
↓ 2 callers
Method
GetItemVersionResolvedSnapshot
GetItemVersionResolvedSnapshot is GetItemVersionResolved over one read snapshot (BUG-3814). Returns nil if not found.
internal/store/items.go:6764
↓ 2 callers
Method
GetPendingInvitationForEmail
GetPendingInvitationForEmail returns the pending invitation id if, and only if, it is addressed to email and its workspace is live. Anything else (unk
internal/store/my_invitations.go:108
↓ 2 callers
Method
GetPlaybookLibrary
GetPlaybookLibrary fetches the playbook library from the server. category — when non-empty, server-side filter against PlaybookCategory.Name (case-se
internal/cli/client.go:1789
↓ 2 callers
Method
GetRefreshTokenSession
GetRefreshTokenSession hydrates a refresh token. Inactive rows surface as fosite.ErrInactiveToken — fosite's refresh-flow handler (handler/oauth2/flow
internal/oauth/storage.go:359
↓ 2 callers
Method
GetUserAPIToken
GetUserAPIToken gives foreign, revoked and unknown ids the same result. Expiry is deliberately ignored, as it is for token rotation.
internal/store/api_tokens.go:460
↓ 2 callers
Method
GetVersionResolvedSnapshot
GetVersionResolvedSnapshot is GetVersionResolved over one read snapshot (BUG-3833). Returns nil if not found.
internal/store/versions.go:176
↓ 2 callers
Method
GetWorkspacesByIDsQ
(q Queryer, ids []string)
internal/store/needs_read.go:58
↓ 2 callers
Method
GrantOwner
GrantOwner names the client a presented authorization code or refresh token was issued to, active or not, or "" when it names nothing. It reads the ro
internal/oauth/server.go:278
↓ 2 callers
Method
GuestVisibleCollectionIDsQ
GuestVisibleCollectionIDsQ is GuestVisibleCollectionIDs parameterized over its executor (see Queryer).
internal/store/grants.go:517
↓ 2 callers
Method
GuestVisibleResourcesIncludeDeletedQ
GuestVisibleResourcesIncludeDeletedQ is GuestVisibleResourcesIncludeDeleted parameterized over its executor (see Queryer).
internal/store/grants.go:592
↓ 2 callers
Method
GuestWorkspaceIDsQ
(q Queryer, userID string)
internal/store/needs_read.go:29
↓ 2 callers
Method
Handle
(ctx context.Context, rec slog.Record)
internal/server/bug3474_reval_fail_closed_test.go:28
↓ 2 callers
Function
HasPadEntry
HasPadEntry returns whether mcpServers.pad is present, plus the current `command` value (empty string when missing). Missing files are reported as not
internal/mcp/install.go:296
↓ 2 callers
Method
HasV2ScheduleMembers
HasV2ScheduleMembers also covers bundles built directly by Go callers.
internal/models/export_version.go:57
↓ 2 callers
Method
HeadAttachment
HeadAttachment issues a HEAD request and returns the headers as structured metadata. Variant is forwarded the same way as DownloadAttachment — empty s
internal/cli/client.go:3033
↓ 2 callers
Method
Health
Health checks if the server is running.
internal/cli/client.go:205
↓ 2 callers
Method
HeartbeatPublishFailed
HeartbeatPublishFailed reports that this instance could not CONFIRM a liveness heartbeat publish (BUG-2769). Not the same as "did not publish": the ca
internal/watchevents/observer.go:143
↓ 2 callers
Method
Hold
Hold and Release are Mark without the closure, for a caller that may not call through a function value (the app store's boundary test refuses one). Ev
internal/attachments/inflight.go:34
↓ 2 callers
Method
IDs
IDs lists the real (non-placeholder) criterion ids, in body order, once each.
internal/verification/verification.go:86
↓ 2 callers
Method
InstallEpoch
InstallEpoch returns the install's current epoch.
internal/store/install_clients.go:133
↓ 2 callers
Method
InstallReadCeilingQ
InstallReadCeilingQ is the install's read ceiling: its companion collections and the workspace's system collections.
internal/store/app_ceiling.go:87
↓ 2 callers
Method
InviterCanStillGrant
InviterCanStillGrant reports whether an accept of this invitation would pass the inviter check above, read now and unlocked, so a door that offers an
internal/store/workspace_members.go:282
↓ 2 callers
Method
InvocationSlugIndexTakenQ
InvocationSlugIndexTakenQ is InvocationSlugIndexTaken on a caller-supplied executor.
internal/store/app_pending.go:353
↓ 2 callers
Function
IsAPITokenFromContext
IsAPITokenFromContext reports whether the request was authenticated via an API token (vs. a session cookie or CLI session token). Mirrors the package-
internal/server/context.go:82
↓ 2 callers
Function
IsAttachmentHref
IsAttachmentHref reports whether href is a `pad-attachment:UUID` reference.
internal/server/render/attachments.go:62
↓ 2 callers
Function
IsCalendarBuiltinDateField
IsCalendarBuiltinDateField reports whether key is `created` or `completed`.
internal/models/view_calendar.go:47
↓ 2 callers
Function
IsCanonical
IsCanonical reports whether name is in the events/1 set. The choke point calls this before writing an outbox row. A name that fails here is a program
internal/kernelevents/taxonomy.go:354
↓ 2 callers
Method
IsCloud
IsCloud reports whether the server is running in cloud mode.
internal/server/server.go:1054
↓ 2 callers
Method
IsCloud
IsCloud reports whether the configured connection mode is Cloud (i.e. cfg.Mode == ModeCloud). This is a CLIENT-side signal: the CLI is configured to t
internal/config/config.go:765
↓ 2 callers
Method
IsEmailOptedOut
IsEmailOptedOut returns true if the given email address has unsubscribed.
internal/store/email_optouts.go:6
↓ 2 callers
Function
IsEmptyRelationList
normalizeEmptyRelationLists rewrites an EMPTY `multi_relation` array into whichever spelling of "no targets" the caller's write shape already has (PLA
internal/items/validate.go:262
↓ 2 callers
Function
IsError
IsError reports whether err is a manifest validation failure.
internal/appmanifest/manifest.go:137
↓ 2 callers
Function
IsImageMime
IsImageMime reports whether the MIME type is LABELLED as an image. Mirrors `image/*` from the server-side allowlist (image/png, image/jpeg, image/gif,
internal/server/render/attachments.go:92
↓ 2 callers
Function
IsInputError
IsInputError reports whether err is a refusal of the request itself.
internal/appstore/items.go:313
↓ 2 callers
Function
IsItemSlugConflict
IsItemSlugConflict reports whether err is the items (workspace_id, slug) unique violation, and no other: an app create retries only that one, with a f
internal/store/fenced_items.go:536
↓ 2 callers
Function
IsPatchRefusal
IsPatchRefusal reports a patch refusal the server answered.
internal/cli/client.go:1390
↓ 2 callers
Function
IsResolveError
IsResolveError reports whether err is, or wraps, a ResolveError.
internal/webhooks/validate.go:29
↓ 2 callers
Function
IsTZMismatchKey
IsTZMismatchKey reports whether key is a well-formed tz-mismatch pair key.
internal/models/ui_dismissals.go:30
↓ 2 callers
Method
IsUserAppGrant
IsUserAppGrant reports whether requestID is a delegated app grant the user holds (active or not).
internal/store/app_grants.go:87
↓ 2 callers
Function
IsValidDocType
(t string)
internal/models/document.go:194
↓ 2 callers
Function
IsValidStatus
(s string)
internal/models/document.go:203
↓ 2 callers
Method
IsZero
IsZero reports whether the collection declares no kernel traits at all.
internal/models/collection_traits.go:128
↓ 2 callers
Function
ItemCloseState
ItemCloseState classifies an item's fields against its collection.
internal/models/close_state.go:21
↓ 2 callers
Method
ItemGatesDropped
ItemGatesDropped is what a cross-workspace copy or move of itemID would leave out: how many gates hold it whose blocker the mover can read (nil: none)
internal/store/commitment_gates.go:758
↓ 2 callers
Method
ItemHasPendingContent
ItemHasPendingContent reports whether the item's op-log holds content-bearing rows above its flush watermark: content_state's applied_pending_flush pr
internal/store/materialize_flush.go:140
↓ 2 callers
Method
ItemIDsInCollectionsQ
ItemIDsInCollectionsQ keeps the item IDs whose item sits in one of collectionIDs, in input order (BUG-3424: an app request's item grants are narrowed
internal/store/app_ceiling.go:246
↓ 2 callers
Method
ItemLiveness
ItemLiveness reports whether an item may be sent to a decision provider, in two parts because the runner treats them differently: - itemLive: the ite
internal/store/decisions.go:922
↓ 2 callers
Method
ItemView
ItemView reads the response view of a companion item in this transaction.
internal/store/fenced_items.go:147
↓ 2 callers
Method
ItemsWithFieldValueQ
ItemsWithFieldValueQ returns up to limit live items of collectionID in workspaceID whose field key equals value, with ListItems' own Fields-filter pre
internal/store/app_pending.go:374
↓ 2 callers
Method
JSONExtractText
(column, key string)
internal/store/dialect.go:271
↓ 2 callers
Method
JSONFieldOrder
(column, key, dir string)
internal/store/dialect.go:52
↓ 2 callers
Method
LatestAssignmentTimes
LatestAssignmentTimes returns, per item, when it was last assigned to the named person: the newest "updated" activity whose change list holds "assigne
internal/store/needs_read.go:451
↓ 2 callers
Method
Less
Less reports whether a sorts before b. Both keys come from one sort.
internal/needs/cursor.go:84
↓ 2 callers
Function
LibraryConventionMetadata
LibraryConventionMetadata is the typed convention metadata a library convention carries.
internal/collections/templates.go:345
↓ 2 callers
Method
Lifespans
Lifespans returns the lifetimes this server issues tokens with.
internal/oauth/server.go:107
↓ 2 callers
Method
ListBlobs
(ctx context.Context)
internal/attachments/store.go:93
↓ 2 callers
Method
ListBlobs
ListBlobs enumerates every blob under the store's sharded tree, satisfying the optional Lister capability (BUG-2406 — the rowless-blob GC sweep). One
internal/attachments/fs_store.go:257
↓ 2 callers
Method
ListCalendarFeeds
(ctx context.Context, userID string)
internal/store/calendar_feeds.go:92
↓ 2 callers
Method
ListChatConversations
--- Global chat --- Keep the wire responses intact so --format json includes refs and future additive fields. The commands decode only the fields they
internal/cli/client.go:3663
↓ 2 callers
Method
ListCollectionsQ
ListCollectionsQ is ListCollections on a caller-supplied executor, so it can read inside a snapshot transaction (BUG-3659: the account export reads a
internal/store/collections.go:470
↓ 2 callers
Method
ListInstallArtifactItems
ListInstallArtifactItems returns the workspace's live items stamped with a pack from origin (source_pack = origin@version), oldest first. A prefix is
internal/store/app_lifecycle.go:472
↓ 2 callers
Method
ListItemLeases
ListItemLeases returns every LIVE lease in a workspace, keyed by item id. Expired leases are filtered in SQL so the map carries only what a list rende
internal/store/item_lease.go:168
↓ 2 callers
Method
ListItemVersionsBeforeTime
ListItemVersionsBeforeTime returns versions for an item created before the given time, ordered newest-first, limited to `limit` results. Used for curs
internal/store/items.go:6857
↓ 2 callers
Method
ListItemVersionsResolvedPage
ListItemVersionsResolvedPage is ListItemVersionsResolved bounded to the newest `limit` versions (limit <= 0 means unbounded). The bound is cheap ONLY
internal/store/items.go:6650
↓ 2 callers
Method
ListItemsPendingContentFlushQ
ListItemsPendingContentFlushQ is ListItemsPendingContentFlush against a caller-supplied executor, so the migration's unflushed-edits gate reads the sa
internal/store/export.go:2186
↓ 2 callers
Method
ListPurgeableWorkspaces
ListPurgeableWorkspaces returns workspaces whose deleted_at is set and older than cutoff — i.e. soft-deleted long enough ago to hard-purge. Live works
internal/store/workspace_purge.go:58
↓ 2 callers
Method
ListReactionsByComments
ListReactionsByComments loads all reactions for a set of comment IDs, keyed by comment ID.
internal/store/reactions.go:96
↓ 2 callers
Method
ListSchedulesForAgendaAudiences
ListSchedulesForAgendaAudiences is ListSchedulesForAgenda limited to the schedules whose audience is one of audiences (nil or empty reads every audien
internal/store/schedule_agenda.go:51
↓ 2 callers
Method
ListShareLinks
ListShareLinks returns all share links for a target (item or collection).
internal/store/share_links.go:189
↓ 2 callers
Method
ListTraitedCollectionsQ
ListTraitedCollectionsQ is ListTraitedCollections on a caller-supplied executor (TASK-3397, U8b: the installer's in-transaction normalization).
internal/store/collections.go:439
↓ 2 callers
Method
ListViews
ListViews returns all views for a collection within a workspace.
internal/store/views.go:103
↓ 2 callers
Method
ListWorkspaceImportStatuses
ListWorkspaceImportStatuses answers the markers for a set of workspaces, keyed by workspace id, in one query.
internal/store/workspace_import_status.go:51
↓ 2 callers
Method
ListWorkspacesQ
ListWorkspacesQ is ListWorkspaces against a caller-supplied executor, so a migration's gate can read the workspace list inside the same snapshot trans
internal/store/workspaces.go:24
↓ 2 callers
Method
Login
Login authenticates with email and password.
internal/cli/client.go:2134
↓ 2 callers
Method
MCPAuditNames
MCPAuditNames resolves the people and connections one page of the admin MCP audit names, for display (TASK-2255 C110: the page showed truncated raw UU
internal/store/mcp_audit.go:352
↓ 2 callers
Method
Mark
Mark increments the count for hash and returns the release, which the caller MUST call exactly once (defer it).
internal/attachments/inflight.go:26
↓ 2 callers
Method
MarkChatDeliveredContext
MarkChatDeliveredContext bounds the monitor acknowledgement by its context.
internal/cli/client.go:1026
↓ 2 callers
Method
MarkIdempotencyKeyUnknown
MarkIdempotencyKeyUnknown records a patch that reached an open editor and was never confirmed: only that connection may resolve it.
internal/store/idempotency.go:152
↓ 2 callers
Function
MatchLegacyBuiltin
MatchLegacyBuiltin names the built-in an item made before origins were recorded came from, or "" (TASK-3462 U4). The rule is exact, never fuzzy: - one
internal/collections/builtin_legacy.go:32
↓ 2 callers
Method
MaxItemSeq
MaxItemSeq returns the largest items.seq across the workspace, or 0 if the workspace has no items. This is the cursor floor for the local-first read m
internal/store/items.go:1976
↓ 2 callers
Method
MaxOpLogID
(itemID string)
internal/collab/manager_test.go:326
↓ 2 callers
Method
MigrateRelationReferentsQ
MigrateRelationReferentsQ is MigrateRelationReferents on a caller-supplied read executor — see ResolveRelationReferentsQ for why the copy door needs i
internal/store/relation_referents.go:1243
↓ 2 callers
Method
MigratedRemedy
MigratedRemedy reports the stored remedy when this database has been marked as migrated, and "" when it has not. Exported for ONE caller and one ques
internal/store/migrated.go:453
↓ 2 callers
Function
MintWorkerID
MintWorkerID returns a fresh worker id: "wk_" + 128 random bits in hex.
internal/cli/session_worker.go:34
↓ 2 callers
Method
MoveItemWithForce
MoveItemWithForce is the open-children-guard-aware variant of MoveItem (IDEA-1494). When `force` is true, the URL gets a `?force=true` query so the se
internal/cli/client.go:1101
↓ 2 callers
Method
NarrowCurrentOnlyWildcardConnections
NarrowCurrentOnlyWildcardConnections gives every connection stored with all_current_workspaces on and include_future_workspaces off what that combinat
internal/store/oauth_connections_narrow.go:42
↓ 2 callers
Method
NeedsMarkersForItems
NeedsMarkersForItems returns each item's state as userID would see it now (the marker a snooze made at this moment would carry), for the rows a page s
internal/store/needs_read.go:430
↓ 2 callers
Function
NewCountingReader
NewCountingReader wraps r. The stall clock starts now, so a connection that never starts reading counts as stalled too.
internal/cli/client_import.go:32
↓ 2 callers
Function
NewImportedUppercaseRefSlugFixture
NewImportedUppercaseRefSlugFixture restores a legacy imported IDENT-10 slug. Import now coerces ref-shaped slugs (TASK-4375), so the fixture seeds the
internal/store/storetest/ref_prefix.go:118
↓ 2 callers
Function
NewWithReplaySize
NewWithReplaySize creates a MemoryBus with a custom replay buffer capacity (tests use a small one).
internal/watchevents/watchevents.go:496
↓ 2 callers
Method
NextItemNumber
NextItemNumber returns the workspace's next item_number, the human create's own subquery, read under LockWorkspaceSeq.
internal/store/fenced_tx.go:175
↓ 2 callers
Method
Normalize
Normalize sets pagination and sorting defaults on SearchParams.
internal/store/search.go:102
↓ 2 callers
Function
NotDefaultKeys
NotDefaultKeys is the set a migrate door hands DropInvisibleRelationDefaults: the caller's own values plus the values carried from the source item. Ev
internal/store/relation_referents.go:1913
← previous
next →
6,101–6,200 of 28,840, ranked by callers