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
↓ 11 callers
Function
mustParseQueryFromPath
mustParseQueryFromPath extracts the query-string portion of path and parses it. Test-only — fails the test on malformed input.
internal/mcp/dispatch_http_routes_test.go:27
↓ 11 callers
Function
nativeRoles
()
internal/store/commitment_c1_test.go:21
↓ 11 callers
Function
newBug3425World
(t *testing.T)
internal/store/bug3425_deleted_collection_reads_test.go:24
↓ 11 callers
Function
newConvFixture
(t *testing.T)
internal/decision/conventions_test.go:33
↓ 11 callers
Function
newMoveFixture
(t *testing.T, name string)
internal/store/item_workspace_moves_test.go:22
↓ 11 callers
Function
newPushEnv
(t *testing.T, srv *Server, gateway bool)
internal/server/handlers_push_devices_test.go:33
↓ 11 callers
Function
newRangeWorld
(t *testing.T)
internal/store/items_field_range_test.go:27
↓ 11 callers
Function
newT4137Fixture
newT4137Fixture signs a Google user in once (creating it), then turns 2FA on.
internal/server/task4137_pkce_twofactor_test.go:34
↓ 11 callers
Function
newTestInstall
(t *testing.T, srv *Server, installID string)
internal/server/task3394_install_tokens_test.go:59
↓ 11 callers
Function
newTwoFAFixture
(t *testing.T)
cmd/pad/cmd_auth_2fa_test.go:38
↓ 11 callers
Function
normalizeAndCheck
CLASSING NOTE for normalizeAndCheck below. CLASSING, and why it is what it is. The wrapper sees positional parameters, not columns, so it cannot cons
internal/store/nulguard.go:143
↓ 11 callers
Method
nothingStored
()
internal/server/handlers_commitments_http_test.go:139
↓ 11 callers
Method
occRows
(t *testing.T, scheduleID, state string)
internal/store/schedule_resolve_test.go:75
↓ 11 callers
Function
pidFileOwner
pidFileOwner reports whether a live pad server holds path. It probes the same lock non-blockingly. Acquiring it proves nobody holds it — the writer i
internal/cli/pidfile_unix.go:63
↓ 11 callers
Function
preMigrationDB
BUG-3663: 025_doc_type_plan rebuilds documents with DROP TABLE while foreign keys are on, and versions.document_id references documents with no cascad
internal/store/bug3663_migration_025_test.go:20
↓ 11 callers
Function
presenceRequest
(t *testing.T, srv *Server, method, token, worker, body string)
internal/server/task4040_presence_test.go:19
↓ 11 callers
Function
quietCrossActorToasts
(context: BrowserContext)
web/e2e/fixtures.ts:56
↓ 11 callers
Method
read
(t *testing.T, agent bool, loc *time.Location, now string)
internal/store/schedule_bootstrap_test.go:36
↓ 11 callers
Function
readBinaryWithin
readBinaryWithin reads a single binary frame within d. Returns the payload bytes or fails the test on timeout.
internal/collab/manager_test.go:513
↓ 11 callers
Function
realUser
realUser inserts a user so workspace_members' FK is satisfied and the INSERT can actually succeed — the opposite setup from the ghost-user test, and t
internal/server/handlers_cloud_member_ack_test.go:58
↓ 11 callers
Method
recordScheduleWrite
recordScheduleWrite logs the activity and publishes the item event. Both are best-effort and non-transactional, like a verification. An item_updated S
internal/server/handlers_schedules.go:259
↓ 11 callers
Method
recoverSweeper
recoverSweeper is the panic firewall for the long-running background sweeper loops (orphan GC, op-log GC, token reaper, workspace purge). Each of thos
internal/server/server.go:764
↓ 11 callers
Method
refresh
Bring new rows and tombstones into the window (see the REFRESH note on top).
web/src/lib/stores/chatThread.svelte.ts:347
↓ 11 callers
Method
restore
Focus the remembered element if it is still in the document, then forget it.
web/src/lib/a11y/focusReturn.ts:25
↓ 11 callers
Function
restoreSQLiteTuple
(t *testing.T, path string)
cmd/pad/cmd_db_restore_test.go:115
↓ 11 callers
Method
rotateSessionsAfterCredentialChange
(w http.ResponseWriter, r *http.Request, user *models.User)
internal/server/handlers_auth.go:350
↓ 11 callers
Function
row
(extra: Partial<AgendaEntry> = {})
web/src/routes/(console)/agenda/agenda.svelte.test.ts:26
↓ 11 callers
Method
runOutboxDrainTick
runOutboxDrainTick is one pass: claim, deliver, ack, retain.
internal/server/outbox_drain.go:208
↓ 11 callers
Function
runRows
(t *testing.T, rows []Row)
internal/schedule/conformance_test.go:167
↓ 11 callers
Method
runWorkspacePurgeSweep
runWorkspacePurgeSweep purges every workspace whose deleted_at is older than cutoff. Blobs are reclaimed BEFORE the DB rows are removed so a failed re
internal/server/workspace_purge.go:217
↓ 11 callers
Method
seedItem
()
internal/server/workspace_access_notify_test.go:128
↓ 11 callers
Function
set
(k, v)
plugin/hooks/register.js:822
↓ 11 callers
Method
setMemberCap
(t *testing.T, limit int)
internal/server/handlers_invitation_accept_limit_test.go:35
↓ 11 callers
Function
stampAttachmentRefsTx
stampAttachmentRefsTx bumps attachments.last_referenced_at for every `pad-attachment:<id>` reference found in the given texts, inside the caller's tra
internal/store/attachments.go:991
↓ 11 callers
Function
stop
()
web/src/lib/api/importUpload.ts:78
↓ 11 callers
Function
storedItemEntries
(t *testing.T, s *Store, itemID string)
internal/store/item_entries_index_test.go:53
↓ 11 callers
Function
task3399Delegated
task3399Delegated mints a delegated grant (code, access, refresh).
internal/store/task3399_delegated_barrier_test.go:213
↓ 11 callers
Function
testPNG
testPNG is a small valid PNG.
internal/server/task3401_app_api_test.go:145
↓ 11 callers
Function
timeText
(t time.Time)
internal/store/app_pending.go:90
↓ 11 callers
Method
tryCreate
(t *testing.T, in models.ScheduleCreate)
internal/store/schedule_bounds_test.go:39
↓ 11 callers
Function
tz4101User
TASK-4101: users.timezone. The zone is a user setting; an unset one computes in UTC. These pin the API, the conditional first-sign-in write, the pair-
internal/server/task4101_timezone_test.go:22
↓ 11 callers
Method
validateCloudSecret
validateCloudSecret checks the cloud_secret field in a JSON request body against the server's configured cloud secret. Returns true if the secret matc
internal/server/handlers_cloud.go:90
↓ 11 callers
Function
validateConversationActor
TASK-4038: reject malformed actor identities before they reach either SQL driver.
internal/store/conversations.go:77
↓ 11 callers
Function
waitForApplierPath
waitForApplierPath blocks until a content PATCH would actually take the applier path, and returns once it would. It asks the routing predicate the ha
internal/server/handlers_collab_applier_refusal_test.go:98
↓ 11 callers
Function
waitForEvent
waitForEvent reads from the event channel with a timeout.
internal/server/handlers_events_test.go:79
↓ 11 callers
Function
writeChatError
(w http.ResponseWriter, err error)
internal/server/handlers_chat.go:46
↓ 11 callers
Function
writeStorePlanLimitError
writeStorePlanLimitError answers a *store.PlanLimitError with the same 403 the advisory pre-check writes, and reports whether err was one. note, when
internal/server/handlers_cloud.go:1690
↓ 10 callers
Method
AdmitAppDelivery
(webhookID, event, collectionID, occurredAt, deliveryID string)
internal/webhooks/app_delivery.go:49
↓ 10 callers
Function
AppendDecisionLogEntry
(fieldsJSON string, entry ItemDecisionLogEntry)
internal/models/item.go:1151
↓ 10 callers
Method
Apply
Apply derives the child date as a UTC instant.
internal/schedule/links.go:86
↓ 10 callers
Function
Choice
Choice builds a Choice question. options maps each option name to a description of what that option means; at least two are required.
internal/decision/decision.go:77
↓ 10 callers
Function
ClaimPIDFile
ClaimPIDFile records this process in the PID file and holds the platform's ownership marker for as long as it runs. The returned release drops that ma
internal/cli/server.go:313
↓ 10 callers
Method
CompleteDecisionJob
CompleteDecisionJob retires a claimed job. The job is deleted only if its generation is still the one claimed. If a write re-enqueued it mid-evaluati
internal/store/decisions.go:490
↓ 10 callers
Method
ConsumeEmailVerification
ConsumeEmailVerification atomically validates and marks a verification token as used, then sets users.email_verified_at to now. Returns the (now-verif
internal/store/email_verification.go:101
↓ 10 callers
Function
ConventionLibrary
ConventionLibrary returns all pre-defined convention categories with their conventions.
internal/collections/convention_library.go:27
↓ 10 callers
Method
CreateWatch
CreateWatch creates a durable watch, or replaces the predicate on an existing one for the same (user, item) pair (TASK-2533). Re-running `pad watch <r
internal/store/watches.go:17
↓ 10 callers
Function
DetectWorkspace
DetectWorkspace walks up the directory tree from cwd looking for .pad.toml.
internal/cli/workspace.go:54
↓ 10 callers
Method
Dispatch
Dispatch sends the event payload to all matching active webhooks for the workspace. Each delivery runs in its own goroutine so the caller is never blo
internal/webhooks/dispatcher.go:410
↓ 10 callers
Function
EnvTokenFor
EnvTokenFor returns PAD_TOKEN when it may be sent to baseURL, and "" when baseURL is a server only .pad.toml chose (see NotePadTomlURLOverride). Every
internal/cli/env_token.go:69
↓ 10 callers
Method
EvaluateDeadlines
EvaluateDeadlines scans without locks, then pins and rechecks each due row. Overdue stays-owed rows are rescanned each tick: recorded rows cost reads,
internal/store/schedule_deadline_eval.go:341
↓ 10 callers
Method
ExpandAgenda
ExpandAgenda lists sc's occurrences with from <= At < to, plus its outstanding occurrence when a move placed it in the window. view is the zone a floa
internal/store/schedule_agenda.go:300
↓ 10 callers
Function
ExtractItemCodeContext
(fieldsJSON string)
internal/models/item.go:802
↓ 10 callers
Method
GetCLIAuthSession
GetCLIAuthSession retrieves a CLI auth session by code. Returns nil if not found. Expired sessions are returned with status updated to "expired".
internal/store/cli_auth_sessions.go:134
↓ 10 callers
Method
Handle
(_ context.Context, r slog.Record)
internal/materialize/supervisor_test.go:200
↓ 10 callers
Function
IsDBOutcomeUnknown
IsDBOutcomeUnknown reports a client-side interruption whose effect on the server is unknown (see above). It is false for anything the server answered
internal/store/busy_error.go:78
↓ 10 callers
Method
Iterator
Iterator return an iterator for RRule
internal/schedule/internal/rrule/rrule.go:926
↓ 10 callers
Method
ListSchedulesForAgenda
ListSchedulesForAgenda returns the schedules of the open, live items scope allows, by id, and whether there were more than limit. The scope and the te
internal/store/schedule_agenda.go:43
↓ 10 callers
Method
ListYjsSetAside
ListYjsSetAside returns the item's set-aside rows in their original op-log order, raw bytes included. Empty when there are none.
internal/store/yjs_set_aside.go:140
↓ 10 callers
Function
New
New returns a dialer that honours the caller's context on TLS as well as plaintext, for the given TLS config and dial timeout. tlsConfig may be nil,
internal/redisdial/redisdial.go:74
↓ 10 callers
Function
NewPoster
NewPoster builds a Poster. private is the admin list (nil on Cloud). The caller's context deadline bounds each Post.
internal/appfetch/appfetch.go:276
↓ 10 callers
Function
NewRoomManagerWithConfig
NewRoomManagerWithConfig is the explicit-config form. Empty config fields fall back to package defaults.
internal/collab/manager.go:325
↓ 10 callers
Function
NormalizeAudience
RFC 8707 ("Resource Indicators for OAuth 2.0") audience-binding hook for pad's authorization server (PLAN-943 TASK-951 sub-PR B). fosite has no nativ
internal/oauth/audience.go:72
↓ 10 callers
Function
NormalizeItemTitle
NormalizeItemTitle is the canonical normalization for an item title: leading/trailing whitespace is not part of a title. It exists as its own functio
internal/models/item.go:2162
↓ 10 callers
Function
Parse
Parse returns the first acceptance-criteria section in body.
internal/acceptance/acceptance.go:93
↓ 10 callers
Function
ParseFieldsDSL
ParseFieldsDSL parses the compact field DSL (key:type[:options];...) into a CollectionSchema. Empty input returns an empty schema with no error. Firs
internal/collections/dsl.go:31
↓ 10 callers
Method
Publish
Publish sends an event to Redis, which distributes it to all instances. Events are assigned a globally unique sequence ID via Redis INCR so that Last-
internal/events/redis_bus.go:1374
↓ 10 callers
Function
RedactQuery
RedactQuery preserves diagnostic parameters and their order. Decode keys before checking them so percent-encoding cannot bypass credential redaction.
internal/logging/redaction.go:162
↓ 10 callers
Function
RenderMarkdownTable
RenderMarkdownTable writes headers, a separator, and one row per entry as a GitHub-flavored markdown table. Every cell is escaped, so callers pass raw
internal/cli/format_markdown.go:78
↓ 10 callers
Method
RepairNUL
RepairNUL rewrites every offending stored value, replacing each NUL with U+FFFD, and reports what it changed. PER-ROW TRANSACTIONS, not one big one.
internal/store/nulrepair.go:71
↓ 10 callers
Method
RoomCount
RoomCount is a test/debug accessor. Production code shouldn't make decisions based on this — the count is racy with grace-timer expirations.
internal/collab/manager.go:1002
↓ 10 callers
Function
RunBrowserBootstrap
RunBrowserBootstrap walks the operator through the browser-based first- admin bootstrap. Returns nil on success (server has flipped to setup_required:
internal/cli/bootstrap.go:92
↓ 10 callers
Method
SetDecisionRunner
SetDecisionRunner attaches the decision runner and wires its registry into the store's write doors. A nil runner (no provider configured) removes any
internal/server/decision_tick.go:100
↓ 10 callers
Method
SetEmailSender
SetEmailSender attaches a transactional email sender. The apiKey is stored separately for deriving the unsubscribe HMAC secret. If the server is alre
internal/server/server.go:1307
↓ 10 callers
Method
SetMCPConfig
SetMCPConfig installs the resolved MCP addressing and the PAD_MCP_ENABLED override. Called once at startup on every install, before the router is buil
internal/server/handlers_admin_mcp.go:30
↓ 10 callers
Method
SetMilestoneChild
SetMilestoneChild selects a child (kind "child") or waives it (kind "waiver", reason required) on the item's schedule. Selecting a selected child upda
internal/store/milestone.go:173
↓ 10 callers
Method
SetUserStripeCustomerID
SetUserStripeCustomerID stores the Stripe customer ID for a user.
internal/store/limits.go:772
↓ 10 callers
Method
SnoozeNeedsItem
SnoozeNeedsItem records userID's dismissal or deferral of an item, replacing any earlier one. kind is models.NeedsSnoozeDismiss or models.NeedsSnoozeD
internal/store/needs_snooze.go:115
↓ 10 callers
Function
SplitFieldEntry
SplitFieldEntry splits one `key=value` field entry into its halves. It exists because six sites parsed that entry independently — `item create`, `ite
internal/items/fieldentry.go:48
↓ 10 callers
Function
TokenScopesFromContext
TokenScopesFromContext returns the JSON-encoded scopes attached by WithTokenScopes, or "" if none. Empty maps to "unrestricted" in TokenScopeAllows (t
internal/server/context.go:109
↓ 10 callers
Method
VisibleCollectionIDs
VisibleCollectionIDs returns the set of collection IDs a member can see. Returns nil if the member has "all" access (meaning no filtering needed). Sys
internal/store/workspace_members.go:512
↓ 10 callers
Method
access
()
internal/store/commitment_links_pg_test.go:51
↓ 10 callers
Function
allStatus
(msgs []notify.Message, status string)
internal/server/task3939b_push_fixture_test.go:59
↓ 10 callers
Function
appCeilingAllows
appCeilingAllows reports whether a collection is inside the request's app read ceiling. Outside the app API (no app context) everything passes.
internal/server/app_api.go:555
↓ 10 callers
Method
appFenceSpec
appFenceSpec is the appstore fence for this request.
internal/server/app_api.go:104
↓ 10 callers
Function
applierEcho
BUG-2840 half A: this file MEASURED the defect, and now asserts the property that replaced it (PLAN-2975 unit 2). The filing claims that on the APPLI
internal/server/handlers_collab_applier_refusal_test.go:33
↓ 10 callers
Function
assertItemContent
(t *testing.T, srv *Server, itemID, want string)
internal/server/handlers_items_collab_versions_test.go:640
↓ 10 callers
Method
assertStaysOpen
(t *testing.T, done <-chan struct{}, ticks int)
internal/server/bug3837_mcp_credential_tick_test.go:164
↓ 10 callers
Function
assertTransformDenied
assertTransformDenied pins the shared denial: 404 with the exact body every other attachment denial writes.
internal/server/handlers_attachments_transform_authz_test.go:120
↓ 10 callers
Function
attachAttentionRunner
(t *testing.T, srv *Server)
internal/server/dashboard_attention_decisions_test.go:74
↓ 10 callers
Function
audienceMatchingStrategy
audienceMatchingStrategy returns a fosite.AudienceMatchingStrategy that enforces "the requested audience must be exactly one of the configured canonic
internal/oauth/audience.go:115
← previous
next →
1,401–1,500 of 28,840, ranked by callers