Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PerpetualSoftware/pad
/ functions
Functions
31,685 in github.com/PerpetualSoftware/pad
⨍
Functions
31,685
◇
Types & classes
3,533
↓ 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:471
↓ 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
ListItemVersionsResolvedPage
ListItemVersionsResolvedPage is ListItemVersionsResolved bounded to the newest `limit` versions (limit <= 0 means unbounded). The bound is cheap ONLY
internal/store/items.go:6799
↓ 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:2298
↓ 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:440
↓ 2 callers
Method
ListUserAdmittedWorkspacesAndMembershipsQ
ListUserAdmittedWorkspacesAndMembershipsQ returns every live workspace that userID may enter (via membership or a live collection/item grant) together
internal/store/workspace_members.go:505
↓ 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:26
↓ 2 callers
Function
LoadTemplatesForTesting
LoadTemplatesForTesting loads workspace templates from fsys, a filesystem rooted at a template data directory laid out like the embedded one (index.js
internal/collections/testing_helpers.go:13
↓ 2 callers
Method
LoadWorkspaceRoleLanesQ
LoadWorkspaceRoleLanesQ returns the canonical full lanes for every role in workspaceID in a single query pair (collections + workspace role items), ke
internal/store/role_park.go:328
↓ 2 callers
Method
Login
Login authenticates with email and password.
internal/cli/client.go:2299
↓ 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:1040
↓ 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:1982
↓ 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:460
↓ 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:1115
↓ 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
NeedsNotMineForItems
NeedsNotMineForItems returns userID's not-mine rows on the given items of one workspace, each with the transitions after its marker, keyed by item id.
internal/store/needs_not_mine.go:204
↓ 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
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:195
↓ 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
↓ 2 callers
Function
NotMineHolds
NotMineHolds reports whether a "not mine" marker still hides the item. It is released by any of: 1. an open mention of the viewer whose comment falls
internal/needs/notmine.go:51
↓ 2 callers
Function
NotUniqueAnonymousMessage
NotUniqueAnonymousMessage is the not_unique sentence that names no holder. It is what a caller who may not see the holder is told, and it is the ONLY
internal/store/unique_fields.go:143
↓ 2 callers
Function
NotePadTomlURLOverride
NotePadTomlURLOverride records that .pad.toml replaced the chosen server URL with another. Called with two empty strings when no override applies, so
internal/cli/env_token.go:59
↓ 2 callers
Method
NotificationSubject
NotificationSubject returns the live item a notification is about. An item that is missing or soft-deleted, or whose collection is archived, is ErrNot
internal/store/push_dispatch.go:446
↓ 2 callers
Function
NumericClaimForms
NumericClaimForms is the form under which JSONFieldEquals could find two numeric values equal, on either dialect, for arg when numericArg accepts it:
internal/store/dialect_fieldvalue.go:170
↓ 2 callers
Function
ORIGIN
()
web/src/lib/chat/markdown.svelte.test.ts:11
↓ 2 callers
Method
OccurrenceNoLongerNeeded
OccurrenceNoLongerNeeded reports whether the item's outstanding occurrence is marked No longer needed: a parent occurrence it was linked to, under the
internal/store/commitment_cancel.go:157
↓ 2 callers
Method
OldestAccessTokenIssuedAtByRequestID
OldestAccessTokenIssuedAtByRequestID returns the requested_at of the earliest access token in the family identified by requestID. Used by the OAuth re
internal/store/oauth.go:600
↓ 2 callers
Method
OpenAttachment
OpenAttachment returns the bytes of a visible attachment, or of its variant when one is asked for and exists (falling back to the original, as the hum
internal/appstore/attachments.go:383
↓ 2 callers
Method
OrphanedAttachments
OrphanedAttachments returns rows eligible for orphan GC reclamation (TASK-886). Two cases qualify: - Never-attached uploads: item_id IS NULL AND dele
internal/store/attachments.go:945
↓ 2 callers
Method
PadTomlAutoArm
PadTomlAutoArm reports whether this .pad.toml opts the repository into auto-arm. Nil-safe: a nil *PadToml (no workspace linked) or a missing `[push]`
internal/cli/workspace.go:49
↓ 2 callers
Function
ParseMemLimit
ParseMemLimit reads the EnvMemLimit syntax: a whole number of bytes, or a whole number with a KiB, MiB or GiB suffix (case-sensitive, no space).
internal/materialize/supervisor_config.go:123
↓ 2 callers
Function
ParseWorkspaceSettings
(raw string)
internal/models/workspace_settings.go:58
↓ 2 callers
Function
PayloadFamilies
PayloadFamilies returns every payload shape a canonical event may carry, and false if the name is not canonical. The returned slice is freshly built,
internal/kernelevents/taxonomy.go:314
↓ 2 callers
Function
PlaybookStartField
PlaybookStartField is shared by new collections and the one-time legacy migration.
internal/collections/templates.go:542
↓ 2 callers
Method
PostRawWithContentType
PostRawWithContentType is the explicit-content-type variant of PostRaw. Used by the bundle import path to send a tar.gz as application/gzip so the ser
internal/cli/client.go:2216
↓ 2 callers
Method
PostStreamContext
PostStreamContext is PostStreamWithContentTypeHeaders under a context, so a caller watching the upload can abandon it.
internal/cli/client_import.go:57
↓ 2 callers
Method
PostStreamWithContentTypeHeaders
PostStreamWithContentTypeHeaders is PostStreamWithContentType, also returning the response headers. The workspace import reports what its --repair-nu
internal/cli/client.go:2251
↓ 2 callers
Method
Prefix
Prefix returns the registry prefix this store is registered under ("fs"). Useful for tests and for the orphan GC, which needs to know which prefix to
internal/attachments/fs_store.go:55
↓ 2 callers
Method
Prepare
Prepare builds the HTTP server for addr without binding it, for a caller that bound the listener itself. `pad server start` binds before it opens the
internal/server/server.go:2961
↓ 2 callers
Method
PrepareContext
(ctx context.Context, q string)
internal/store/nulguard.go:437
↓ 2 callers
Method
PreviewItemScheduleCarry
PreviewItemScheduleCarry is PreviewScheduleCarry on the store's own connection at the current time, for the preflight handler.
internal/store/schedule_carry_copy.go:463
↓ 2 callers
Function
PrintCommentTable
(comments []models.Comment)
internal/cli/format.go:691
↓ 2 callers
Function
PrintItemMarkdown
PrintItemMarkdown prints items as a markdown table on stdout.
internal/cli/format_markdown.go:102
↓ 2 callers
Function
PrintItemMeta
PrintItemMeta prints item metadata header with colors.
internal/cli/format.go:526
↓ 2 callers
Function
PrintJSONCompact
PrintJSONCompact prints any value as compact (no-indent) JSON — a single line plus trailing newline. Preferred for machine-consumed payloads where pre
internal/cli/format.go:520
↓ 2 callers
Method
Prune
Prune removes entries whose skill files no longer exist on disk.
internal/cli/registry.go:114
↓ 2 callers
Method
PruneAgentSignupLedger
PruneAgentSignupLedger deletes ledger rows older than agentSignupLedgerRetention before now. InsertAgentSignup prunes too, but only when a signup arri
internal/store/agent_signups.go:157
↓ 2 callers
Method
PruneNotifications
PruneNotifications deletes rows created before olderThan whose push_state is sent, skipped or expired. It NEVER deletes a pending row, of any age: a p
internal/store/push_dispatch.go:355
↓ 2 callers
Method
Publish
Publish sends m, bounded at a second. The server calls it from a background worker, never on a request path.
internal/homehint/homehint.go:79
↓ 2 callers
Method
Publish
Publish hands the notification to publishScript, which assigns its globally ordered ID and publishes it in one atomic step. It does NOT deliver locall
internal/watchevents/redis_bus.go:626
↓ 2 callers
Method
Publish
Publish sends m, bounded at a second. The server calls it from a background worker, never on a request path.
internal/accesskick/accesskick.go:77
↓ 2 callers
Method
PushDispatchApplied
PushDispatchApplied reads the dispatcher's timings, filling defaults for any unset one. Read-only; startup's wiring test reads it to prove the knobs r
internal/server/push_dispatch.go:292
↓ 2 callers
Method
Put
Put writes the blob streamed from r at the canonical sharded path for hash. _ mime is ignored by this backend (S3 will use it for object metadata). Th
internal/attachments/fs_store.go:103
↓ 2 callers
Method
RDate
RDate include the given datetime instance in the recurrence set generation. It will be truncated to second precision.
internal/schedule/internal/rrule/rruleset.go:75
↓ 2 callers
Method
RRule
RRule set the RRULE for set. There is the only one RRULE in the set as https://tools.ietf.org/html/rfc5545#appendix-A.1
internal/schedule/internal/rrule/rruleset.go:59
↓ 2 callers
Method
RRuleString
RRuleString returns RRULE string exclude DTSTART
internal/schedule/internal/rrule/str.go:135
↓ 2 callers
Method
RawGet
RawGet fetches raw bytes from the API. Buffers the entire response in memory; do NOT use for endpoints that can return arbitrarily large bodies (e.g.
internal/cli/client.go:2159
↓ 2 callers
Method
Read
(p []byte)
internal/mcp/stdio_eof_inflight_test.go:72
↓ 2 callers
Method
Read
(p []byte)
internal/server/bug3821_write_deadline_test.go:248
↓ 2 callers
Method
ReadChat
(number int, seq int64)
internal/cli/client.go:4164
↓ 2 callers
Method
ReadMissed
ReadMissed sets MissedCount: the occurrences that passed unresolved after the outstanding one (the same count the schedule view reports).
internal/store/schedule_bootstrap.go:61
↓ 2 callers
Method
ReceiveLoopExited
ReceiveLoopExited reports that the single consumer of the shared Redis channel has stopped. After this the instance publishes fine and receives nothin
internal/watchevents/observer.go:124
↓ 2 callers
Method
RecordMCPTierMismatch
RecordMCPTierMismatch bumps the pad_mcp_authz_denials_total counter with reason="tier_mismatch" (TASK-1119). Wired from internal/mcp/dispatch_http.go'
internal/server/middleware_auth.go:934
↓ 2 callers
Function
RecordMCPToolOutcome
RecordMCPToolOutcome records that the tool call on ctx failed with the structured error code (one of internal/mcp's ErrorCode values) and, when the er
internal/server/mcp_tool_outcome.go:56
↓ 2 callers
Method
RegisterDBCollector
RegisterDBCollector registers a callback-based collector that exposes database connection pool statistics on each Prometheus scrape. This is preferred
internal/metrics/metrics.go:1110
↓ 2 callers
Function
RegisterPrompts
RegisterPrompts installs the four static MCP prompts on srv. Each prompt takes no arguments — `prompts/get` returns a single user-role message contain
internal/mcp/prompts.go:56
↓ 2 callers
Method
RegisterRedisUp
RegisterRedisUp registers the pad_redis_up gauge. Called only by a deployment that actually has Redis (cmd/pad/cmd_server.go, inside the PAD_REDIS_URL
internal/metrics/metrics.go:1077
↓ 2 callers
Method
RegisterStreamConnectionsCollector
RegisterStreamConnectionsCollector exposes pad_stream_connections_active as a CALLBACK collector, sampled on scrape (BUG-2726). A collector rather th
internal/metrics/metrics.go:1099
↓ 2 callers
Function
RelationIssueReasons
RelationIssueReasons is every value a RelationIssue's Reason can carry. It exists so consumers can ENUMERATE the vocabulary rather than grep for it.
internal/store/relation_referents.go:156
↓ 2 callers
Function
RelationIssuesMessage
RelationIssuesMessage renders a set of issues as the ONE sentence every refusing door reports. It lives here rather than in `internal/server` because
internal/store/relation_referents.go:175
↓ 2 callers
Method
ReleaseCloudOwnership
ReleaseCloudOwnership records that an operator is deliberately taking this database off Pad Cloud, so the next non-cloud boot converts free users to s
internal/store/instance_mode.go:148
↓ 2 callers
Method
ReleaseDecisionJob
ReleaseDecisionJob gives a claimed job back without recording a failure: the runner stopped before finishing it (shutdown), which says nothing about t
internal/store/decisions.go:402
↓ 2 callers
Method
RemoveConnectionWorkspaceUnlessLast
RemoveConnectionWorkspaceUnlessLast deletes one allow-list row, unless the connection is a specific list and that row is its last one, in which case i
internal/store/oauth_connections.go:432
↓ 2 callers
Method
RenameWorkspace
(input models.WorkspaceRename)
internal/cli/client.go:252
↓ 2 callers
Function
RenderRelationValue
(target models.RelationTarget)
internal/cli/relation_render.go:60
↓ 2 callers
Method
ReplayConversationMessage
ReplayConversationMessage returns a current conversation member's own message for opKey. TASK-4039 r1: an identical HTTP retry can lose context worksp
internal/store/conversations.go:284
↓ 2 callers
Method
RequireWorkspaceAccess
RequireWorkspaceAccess checks that the current user is a member of the workspace identified by the {slug} URL parameter. The user's workspace role is
internal/server/middleware_auth.go:734
↓ 2 callers
Method
ReservePendingUpgrade
ReservePendingUpgrade reserves a pending record for an upgrade of installID, under the same caps as an install (U8b2).
internal/store/app_pending.go:100
↓ 2 callers
Method
ResetYjsClassificationForTesting
ResetYjsClassificationForTesting returns an item's op-log rows to the state migration 091 leaves legacy rows in: content_hash NULL, content_bearing TR
internal/store/testing_helpers.go:250
↓ 2 callers
Method
ResolveArchivedCollection
ResolveArchivedCollection returns the id of this workspace's ARCHIVED collection named by ref, its id or its slug (slugs are unique per workspace acro
internal/store/collections_archive.go:51
↓ 2 callers
Function
ResolveAttachmentImage
ResolveAttachmentImage resolves a `` image reference into rendered HTML. Falls back to a file chip when the attachment exis
internal/server/render/attachments.go:288
↓ 2 callers
Function
ResolveAttachmentLink
ResolveAttachmentLink resolves a `[text](pad-attachment:UUID)` link reference into rendered HTML. Always renders as a file chip — link syntax indicate
internal/server/render/attachments.go:311
↓ 2 callers
Function
ResolveAutoArm
Arm-consent resolution (PLAN-2613 S2, D4). "Arming" is a session's declaration that it consents to receive `pad push` notifications — the security ga
internal/cli/arm_consent.go:46
↓ 2 callers
Method
ResolveBacklinksVisibilityWithLoadedQ
ResolveBacklinksVisibilityWithLoadedQ is the same visibility decision as ResolveBacklinksVisibilityQ for callers that have already loaded `user` and t
internal/store/backlinks_visibility.go:107
↓ 2 callers
Function
ResolveNamed
ResolveNamed is [Resolve] with attribution: it applies the same later-wins, non-empty-overrides rule and also reports which source each field came fro
internal/decision/config.go:119
↓ 2 callers
Method
ResolveUserPermissionQ
ResolveUserPermissionQ resolves grants and membership on the supplied executor.
internal/store/grants.go:349
← previous
next →
6,801–6,900 of 31,685, ranked by callers