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
↓ 3 callers
Function
viewerPrev
(page: Page)
web/e2e/lib/attachment-viewer.ts:151
↓ 3 callers
Function
vis
(ref: string, workspace = 'w')
web/src/lib/stores/chatThread.svelte.test.ts:1634
↓ 3 callers
Function
visibleAt
* Names bound, at `fn`, by the scopes around it: every enclosing function, * block, loop head, switch body and catch clause. The component's own scri
web/src/test/identityFenceAst.ts:795
↓ 3 callers
Method
visibleAttachment
(id string)
internal/store/fenced_attachments.go:179
↓ 3 callers
Method
waitApplied
waitApplied waits until a pass APPLIED itemID and returns mrApplied; at the deadline it returns the last result seen, or fails if there was none.
internal/server/materialize_recovery_test.go:146
↓ 3 callers
Method
waitCancelled
(t *testing.T, what string)
internal/server/effort_backfill_lifecycle_test.go:81
↓ 3 callers
Method
waitForContenders
waitForContenders blocks until `n` distinct backends are queued as ungranted waiters on the gate's keys — i.e. until n copy transactions are open and
internal/store/items_cross_workspace_copy_pg_test.go:209
↓ 3 callers
Function
waitForOpLogRows
waitForOpLogRows polls the item's op-log until it holds exactly want rows or the deadline passes. Fails immediately if the count exceeds want (an unex
internal/server/handlers_collab_test.go:655
↓ 3 callers
Function
waitIdleStopped
--------------------------------------------------------------------------- idle exit (TASK-2198: a worker with no job for PAD_MATERIALIZE_IDLE_TIMEOU
internal/materialize/supervisor_test.go:977
↓ 3 callers
Function
waitJoinReturn
(t *testing.T, done chan error, within time.Duration, what string)
internal/collab/bug3771_ws_deadlines_test.go:64
↓ 3 callers
Function
waitRestoreActive
waitRestoreActive polls until the room reports a restore in progress (beginRestore has set restoreActive). White-box: the test lives in package collab
internal/collab/restore_coord_test.go:16
↓ 3 callers
Function
walkOrigin
walkOrigin is the outstanding occurrence's instant as the walk reads it: a floating schedule by its WALL in view, whatever the row's state or override
internal/store/schedule_outstanding.go:133
↓ 3 callers
Function
wallFormatter
(zone: string)
web/src/lib/calendar/presentation.ts:7
↓ 3 callers
Function
wallInstant
wallInstant resolves a wall in loc. An all-day wall resolves at the all-day fire hour, because Occurrence.At for an all-day occurrence is local midnig
internal/store/schedules.go:258
↓ 3 callers
Function
wallText
(format: Intl.DateTimeFormat, instant: number)
web/src/lib/calendar/presentation.ts:11
↓ 3 callers
Method
wantAll
(ids []string, state, reason string)
internal/server/task3939b2a_push_test.go:47
↓ 3 callers
Function
wantKept
(t *testing.T, pidFile, written string)
internal/buildtools/bug4068_pidfile_test.go:90
↓ 3 callers
Function
wantStale
(t *testing.T, err error)
internal/server/handlers_apps_provision_test.go:372
↓ 3 callers
Function
warnStaleDerivedText
warnStaleDerivedText prints ONE line to STDERR naming the items whose body-DERIVED text in a listing came from a body the server knows is behind its l
cmd/pad/cmd_item.go:4674
↓ 3 callers
Function
warnStaleEditSeed
warnStaleEditSeed prints one line to STDERR before `pad item edit` opens the editor on a body the server knows is BEHIND the item's live collaborative
cmd/pad/cmd_item.go:4703
↓ 3 callers
Method
warns
()
internal/materialize/supervisor_test.go:233
↓ 3 callers
Function
webhookEventsFor
(ds []webhookDelivery, workspace string)
internal/server/handlers_items_copy_test.go:698
↓ 3 callers
Function
whoName
(who: HistoryWho)
web/src/lib/components/timeline/historyEvents.ts:361
↓ 3 callers
Function
whoOf
(e: TimelineEntry)
web/src/lib/components/timeline/historyEvents.ts:105
↓ 3 callers
Function
wireSend
A server that stores a send under its op_key, like the real one (V10: a replay returns the stored row).
web/src/lib/stores/chatThread.svelte.test.ts:677
↓ 3 callers
Method
wireStreamGauge
wireStreamGauge registers pad_stream_connections_active as a scrape-time collector over the admission gate's total. Called from both SetSSELimits and
internal/server/server.go:1577
↓ 3 callers
Function
withActivityMetaKey
withActivityMetaKey sets one string key in an activity's JSON metadata, keeping every other key (PLAN-2348 U2). Metadata that does not parse is replac
internal/server/handlers_documents.go:534
↓ 3 callers
Function
withFastPolling
withFastPolling shrinks the helper's tick interval and timeout to millisecond scale for the duration of a test, then restores them. Required for asser
internal/cli/bootstrap_test.go:228
↓ 3 callers
Method
withLists
withLists returns p with every list a list, never null (BUG-3417): the manifest's optional lists are nil when it omits them, and a nil slice serialize
internal/server/handlers_apps_install.go:86
↓ 3 callers
Function
withManifestBody
withManifestBody replaces attachments/manifest.json's body with body.
internal/server/handlers_import_bundle_partial_test.go:52
↓ 3 callers
Function
withUpstreamAtBlank
(fn: () => T)
web/src/lib/collab/materializer/atBlank.ts:55
↓ 3 callers
Function
within
TASK-3975: a CLI token minted by approving from a web session gets its own lifetime (30-day slide, 90-day cap from the approval), not the approving se
internal/server/task3975_cli_token_lifetime_test.go:18
↓ 3 callers
Function
workOccurrence
(row: AgendaWorkEntry, zone: string)
web/src/lib/calendar/presentation.ts:450
↓ 3 callers
Function
workspaceGroupBuiltin
(id string)
internal/server/handlers_workspace_groups.go:44
↓ 3 callers
Method
workspaceGroupQ
(q Queryer, userID, id string)
internal/store/workspace_groups.go:74
↓ 3 callers
Method
write
write stores the session entry and indexes it, both under the same TTL, in one atomic step. See writeScript.
internal/server/session_presence_redis.go:533
↓ 3 callers
Function
writeBusyMessage
writeBusyMessage is writeBusy with a caller-chosen message, for the one path whose truth differs (account deletion after Stripe was cancelled).
internal/server/server.go:2972
↓ 3 callers
Function
writeCommitmentChanged
(w http.ResponseWriter)
internal/server/handlers_commitments.go:41
↓ 3 callers
Method
writeCopyError
writeCopyError maps the store's typed errors onto the statuses the contract promises. Everything the store classifies as a caller-facing rejection has
internal/server/handlers_items_copy.go:877
↓ 3 callers
Method
writeDrainError
writeDrainError answers a drain that did not finish. The install is left between the phases and repeating the same call resumes it.
internal/server/handlers_apps_lifecycle.go:63
↓ 3 callers
Function
writeEmailNotVerified
writeEmailNotVerified is the single 403 writer shared by every verified-email enforcement point so the code/message stay identical across perimeters (
internal/server/middleware_verified_email.go:150
↓ 3 callers
Function
writeFileAtomic
writeFileAtomic writes data to a sibling temp file, fsyncs it, then atomically renames it onto path. Unlike os.WriteFile it never truncates an existin
cmd/pad/cmd_item.go:3150
↓ 3 callers
Function
writeFileInPlace0600
writeFileInPlace0600 writes data over path in place, following a symlink, as os.WriteFile did. A regular file is made 0600 before it is truncated, so
internal/cli/credentials.go:412
↓ 3 callers
Function
writeFrame
(w *bufio.Writer, resp WorkerResponse)
internal/materialize/worker.go:151
↓ 3 callers
Function
writeInvalidItemTitle
(w http.ResponseWriter, err error)
internal/server/handlers_items.go:1409
↓ 3 callers
Function
writeLastActiveAdmin
writeLastActiveAdmin answers a demotion, disable or account deletion that would leave the instance with no active human admin (BUG-3811). One code for
internal/server/handlers_admin_users.go:974
↓ 3 callers
Function
writeListFilterKeyError
writeListFilterKeyError answers checkListFilterKeys' error: a refusal is a 400, anything else a store failure.
internal/server/handlers_items.go:4678
↓ 3 callers
Method
writeLocked
writeLocked writes one frame under the connection's write deadline. The caller holds writeMu. Every frame to a collab socket goes through here or writ
internal/collab/room.go:196
↓ 3 callers
Function
writeMarkdownSeparator
writeMarkdownSeparator writes the header/body separator for n columns.
internal/cli/format_markdown.go:62
↓ 3 callers
Method
writeMessageWithDeadline
writeMessageWithDeadline writes one frame with a bounded write deadline, both the deadline set AND the write under writeMu — gorilla treats SetWriteDe
internal/collab/room.go:206
↓ 3 callers
Method
writeNamedWorkspaceGroup
(w http.ResponseWriter, r *http.Request, user *models.User, g models.WorkspaceGroup, status int)
internal/server/handlers_workspace_groups.go:246
↓ 3 callers
Function
writeOpenChildrenError
writeOpenChildrenError emits the 409 response with both a human message AND the structured details payload. `parentRef` is the already-formatted paren
internal/server/handlers_items_open_children_guard.go:286
↓ 3 callers
Method
writePatchRefusal
writePatchRefusal answers a bodypatch refusal with its typed 409; false when err is not one.
internal/server/handlers_items_patch.go:263
↓ 3 callers
Function
writePlanLimitError
writePlanLimitError writes a structured 403 response for plan limit violations. The envelope follows the standard {"error":{"code":...,"message":...,"
internal/server/handlers_cloud.go:1703
↓ 3 callers
Method
writeReminderItemGone
(w http.ResponseWriter, r *http.Request, workspaceID string, item *models.Item, err error)
internal/server/handlers_reminders.go:500
↓ 3 callers
Function
writeResolveField
(w http.ResponseWriter, field, code, msg string)
internal/server/handlers_schedules.go:403
↓ 3 callers
Function
writeSSEResetCursorEvent
writeSSEResetCursorEvent writes an event that also CLEARS the client's Last-Event-ID, by carrying an `id:` field with an empty value. Used for sync_r
internal/server/handlers_events.go:1182
↓ 3 callers
Function
writeSlot
(userId: string, itemId: string, slot: RefusedRawDraftSlot, value: string, now: number)
web/src/lib/items/refusedRawDraft.ts:108
↓ 3 callers
Function
writeStoreForClientTest
(t *testing.T)
internal/cli/env_token_test.go:48
↓ 3 callers
Function
writeStreamLimitExceeded
writeStreamLimitExceeded answers a refused streaming connection. One helper for every streaming door (both SSE endpoints and MCP's long-lived streams
internal/server/stream_admission.go:172
↓ 3 callers
Method
writeTokenError
writeTokenError answers a token request with an RFC 6749 error before fosite has built a requester.
internal/server/app_tokens.go:57
↓ 3 callers
Method
writeUserProvidersTx
writeUserProvidersTx stores the account's linked providers.
internal/store/oauth_identities.go:67
↓ 3 callers
Function
writeWorkspaceSlugContended
writeWorkspaceSlugContended answers 409 when every attempt to mint a workspace lost its slug to a concurrent create (BUG-3307). That is contention, wh
internal/server/handlers_workspaces.go:1102
↓ 3 callers
Function
yesNo
(v bool)
cmd/pad/server_info.go:402
↓ 3 callers
Function
yjsFrameIsSyncStep2
yjsFrameIsSyncStep2 reports whether a sync frame is EXACTLY one well-formed SyncStep2 message (BUG-3523), with the same strict parse as yjsFrameIsEnve
internal/store/yjs_content_bearing.go:122
↓ 3 callers
Function
zeroFilledBucketsIn
zeroFilledBucketsIn is zeroFilledBuckets in a local calendar: days step by calendar day (23 or 25 hours across a DST change), hours by an absolute hou
internal/store/reports_tz.go:72
↓ 3 callers
Method
zoneFor
zoneFor is the zone the wall readings resolve in.
internal/schedule/engine.go:40
↓ 3 callers
Function
zoomTo
( state: ZoomState, targetScale: number, anchor: Point, g: Geometry, )
web/src/lib/attachments/zoom.ts:334
↓ 2 callers
Method
#absorbRefs
* Merge a response's refs (Q-h, ruling 687eb810). A `visible` or `restricted` * entry is a verdict and REPLACES the held one, so a later page can up
web/src/lib/stores/chatThread.svelte.ts:226
↓ 2 callers
Method
#armPresence
()
web/src/lib/stores/chatInbox.svelte.ts:204
↓ 2 callers
Method
#disarmPresence
()
web/src/lib/stores/chatInbox.svelte.ts:209
↓ 2 callers
Method
#finePointer
()
web/src/lib/chat/inputMode.svelte.ts:27
↓ 2 callers
Method
#held
()
web/src/lib/stores/chatThread.svelte.ts:355
↓ 2 callers
Method
#post
(n: number, opKey: string, body: string, replyToSeq?: number)
web/src/lib/stores/chatThread.svelte.ts:493
↓ 2 callers
Method
#reset
()
web/src/lib/stores/chatThread.svelte.ts:163
↓ 2 callers
Method
#schedule
()
web/src/lib/stores/chat.svelte.ts:177
↓ 2 callers
Function
A
()
web/e2e/permission-walk-move.spec.ts:74
↓ 2 callers
Method
AckReminderWithActor
(workspaceID, id string, in ResolveInput)
internal/store/reminder_commitment.go:198
↓ 2 callers
Method
AddCommitmentLink
AddCommitmentLink previews or creates a link from the URL's parent item.
internal/cli/client_schedule.go:112
↓ 2 callers
Function
AgendaCountDays
AgendaCountDays lists the local days a window touches, each with the instant its count is taken at: the next local midnight, or the window's end. It a
internal/store/agenda_counts.go:25
↓ 2 callers
Method
AgendaWorkDetails
AgendaWorkDetails loads schedule facts and gate presence in two queries, regardless of candidate count. Gate evaluation remains per gated item; Agenda
internal/store/agenda_work_batch.go:12
↓ 2 callers
Function
AllowsPayload
AllowsPayload reports whether a canonical event admits the given payload shape. A writer that knows which shape it just marshalled calls this to conf
internal/kernelevents/taxonomy.go:331
↓ 2 callers
Function
AppPrincipalsListed
AppPrincipalsListed reports whether member surfaces show a workspace's bots.
internal/store/app_principal.go:106
↓ 2 callers
Function
ApplyItemConventionMetadata
(fieldsJSON string, metadata *ItemConventionMetadata)
internal/models/item.go:1166
↓ 2 callers
Function
AsContentPendingFlushError
AsContentPendingFlushError unwraps err to a *ContentPendingFlushError.
internal/store/content_pending_guard.go:49
↓ 2 callers
Method
AttachmentHashesWithRows
AttachmentHashesWithRows reports which of the given content hashes have at least one attachments row — in ANY state. Soft-deleted rows count, includin
internal/store/attachments.go:1309
↓ 2 callers
Function
B
()
web/e2e/permission-walk-move.spec.ts:78
↓ 2 callers
Method
BackfillEncryptTOTPSecrets
BackfillEncryptTOTPSecrets encrypts any plaintext TOTP secrets in the database. Idempotent: skips secrets that already have the "enc:" prefix. Called
internal/store/encryption.go:118
↓ 2 callers
Method
Before
Before Returns the last recurrence before the given datetime instance, or time.Time's zero value if no recurrence match. The inc keyword defines what
internal/schedule/internal/rrule/rruleset.go:196
↓ 2 callers
Function
BlankRelationKeys
BlankRelationKeys returns, sorted, the keys of fields that the schema declares as a scalar `relation` and whose value is blank.
internal/items/relation_blanks.go:31
↓ 2 callers
Function
BootstrapTokenPath
BootstrapTokenPath returns the on-disk path for the bootstrap token file.
internal/server/bootstrap.go:49
↓ 2 callers
Method
BootstrapWithToken
BootstrapWithToken is like Bootstrap but sends token as the X-Bootstrap-Token header when token is non-empty. This is required for self-host deploymen
internal/cli/client.go:2253
↓ 2 callers
Function
BuildConventionItemCreate
BuildConventionItemCreate is BuildConventionItemFields for the create door (BUG-3163): the same fields blob MINUS the reserved `convention` key, plus
internal/models/item.go:1391
↓ 2 callers
Function
BuildConventionItemFields
(status string, metadata *ItemConventionMetadata)
internal/models/item.go:1199
↓ 2 callers
Function
BuildItemStateWithLinks
BuildItemStateWithLinks is BuildItemState plus the item's links, for a set built WithLinks. links may be empty but not nil: the member is then [].
internal/decision/runner.go:287
↓ 2 callers
Function
BuiltinFieldChanges
BuiltinFieldChanges lists the settings taking the library's text would replace: every key the library writes whose value differs from the item's, and
internal/cli/builtin_format.go:95
↓ 2 callers
Method
BuiltinUpdateSupport
BuiltinUpdateSupport is ServerSupportsBuiltinUpdate with the probe's certainty kept apart: definitive false means the capabilities probe failed, which
internal/cli/client.go:1259
↓ 2 callers
Method
BurnContextCode
BurnContextCode consumes installID's code without redeeming it (an attempt refused before the redeem, a delegated token's). Another install's code is
internal/store/app_item_actions.go:458
↓ 2 callers
Method
ByColumn
ByColumn groups the violation count by "table.column".
internal/store/nulscan.go:136
↓ 2 callers
Method
ByWorkspace
ByWorkspace groups the violation count by workspace id, with "" collecting the tables that have no workspace column.
internal/store/nulscan.go:127
← previous
next →
5,901–6,000 of 28,840, ranked by callers