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
↓ 53 callers
Method
String
()
internal/mcp/chatgpt_catalog.go:51
↓ 53 callers
Method
collection
(ws *models.Workspace, name string, asks bool)
internal/server/handlers_me_needs_test.go:76
↓ 53 callers
Function
errorCode
(t *testing.T, rr *httptest.ResponseRecorder)
internal/server/handlers_workspace_create_consent_test.go:196
↓ 53 callers
Function
nfxDay
(d int)
internal/server/handlers_me_needs_test.go:178
↓ 53 callers
Function
seedDoc
( fixture: SuiteFixture, request: APIRequestContext, titlePrefix = 'Collab persistence', fields: Record<st
web/e2e/lib/collab-helpers.ts:53
↓ 52 callers
Method
CreateCollection
(wsSlug string, input models.CollectionCreate)
internal/cli/client.go:311
↓ 52 callers
Method
DeleteCollection
DeleteCollection soft-deletes a collection by id. When expectedUpdatedAt is non-empty it opts into optimistic-concurrency control (BUG-2265): the row'
internal/store/collections.go:935
↓ 52 callers
Method
Read
([]byte)
internal/server/middleware_form_body.go:115
↓ 52 callers
Function
auditMeta
auditMeta safely marshals a map to a JSON string for audit log metadata. Falls back to "{}" on marshal error so audit calls never break.
internal/server/handlers_documents.go:494
↓ 52 callers
Method
get
(path string, result interface{})
internal/cli/client.go:3580
↓ 52 callers
Function
meAgendaOK
(t *testing.T, w *agendaWorld, u *models.User, query string, mods ...func(context.Context) context.Context)
internal/server/handlers_me_agenda_test.go:38
↓ 52 callers
Function
newChatFixture
(t *testing.T)
internal/server/handlers_chat_test.go:22
↓ 52 callers
Method
role
(t *testing.T, i int, role string)
internal/store/commitment_links_test.go:90
↓ 52 callers
Method
state
(id string)
internal/server/task3939b_push_fixture_test.go:213
↓ 52 callers
Function
waitForWatchEvent
(t *testing.T, ch <-chan watchSSEEvent, timeout time.Duration)
internal/server/handlers_watch_events_test.go:113
↓ 51 callers
Method
Between
Between returns the occurrences with from <= At < to, strictly ascending with no two at one instant. A window longer than MaxWindow is CapWindow. More
internal/schedule/engine.go:352
↓ 51 callers
Method
CopyItemAcrossWorkspaces
CopyItemAcrossWorkspaces copies one item from its workspace into another, atomically. THE LOCK ORDER. Changed only deliberately, and stated here beca
internal/store/items_cross_workspace_copy.go:504
↓ 51 callers
Method
Q
Q returns the store's pool as a Queryer — the executor for reads that run outside any transaction. Server code uses it to call the *Q read variants th
internal/store/store.go:1019
↓ 51 callers
Function
dialWS
(t *testing.T, server *httptest.Server, itemID string)
internal/collab/manager_test.go:404
↓ 51 callers
Function
release
()
plugin/tests/seen.test.ts:278
↓ 51 callers
Function
s256Challenge
s256Challenge computes the base64url(no-padding, SHA256(verifier)) per RFC 7636 §4.2. PKCE clients use this to derive code_challenge from code_verifie
internal/server/handlers_oauth_test.go:2542
↓ 51 callers
Method
setContent
setContent overwrites an item's markdown body.
internal/server/handlers_share_attachments_test.go:172
↓ 50 callers
Method
IsEmailVerified
IsEmailVerified returns true if the user's email address has been verified. Mirrors IsDisabled: a non-empty EmailVerifiedAt timestamp means verified,
internal/models/user.go:144
↓ 50 callers
Function
Load
()
internal/config/config.go:517
↓ 50 callers
Method
count
()
internal/server/home_hint_hub.go:69
↓ 50 callers
Function
min
(a, b int)
internal/models/reserved_field_decode_guard_test.go:508
↓ 50 callers
Method
snapshot
The storage-form markdown a flush-now would PATCH for `ctx`, without * sending anything and without the dedupe: the text to keep in this * brows
web/src/lib/collab/collabFlush.svelte.ts:150
↓ 49 callers
Method
IsApp
IsApp reports whether the user is an installed app's bot principal. A bot can never sign in, hold a session, be claimed, be an admin or own anything.
internal/models/user.go:71
↓ 49 callers
Method
Write
(p []byte)
cmd/pad/cmd_item.go:2555
↓ 49 callers
Function
actorFromRequest
actorFromRequest derives actor and source from the request's auth context. Actor is "user" or "agent" (determined by X-Pad-Agent header). Source is "w
internal/server/handlers_documents.go:352
↓ 49 callers
Function
check
check parses and validates a rule the way Compile will: ParseRule, then Validate against the Start.
internal/schedule/rule_test.go:12
↓ 49 callers
Function
contentBackends
()
internal/store/bug3124_content_bearing_test.go:38
↓ 49 callers
Function
createTestWorkspaceViaAPI
(t *testing.T, srv *Server)
internal/server/handlers_items_attribution_test.go:136
↓ 49 callers
Function
placeholders
placeholders returns a comma-separated string of SQL placeholders: "?, ?, ?"
internal/store/search.go:57
↓ 49 callers
Function
uniqueName
(t *testing.T)
internal/buildtools/install_refresh_test.go:119
↓ 48 callers
Method
CreateCommitmentSchedule
CreateCommitmentSchedule creates an item's schedule with native roles: the one create path that stores roles_origin 'native'.
internal/store/commitment.go:431
↓ 48 callers
Method
bootstrap
(t *testing.T, worker, role string)
internal/server/bootstrap_start_test.go:71
↓ 48 callers
Function
freePort
freePort returns a loopback port that is free now, chosen OUTSIDE the kernel's ephemeral range (BUG-3491). It used to bind :0 and close, handing back
internal/buildtools/install_refresh_test.go:183
↓ 48 callers
Function
installStub
(t *testing.T, dir, name string)
internal/buildtools/install_refresh_test.go:132
↓ 48 callers
Function
killStub
(t *testing.T, name string)
internal/buildtools/install_refresh_test.go:145
↓ 48 callers
Function
nowNano
nowNano is a sub-second (nanosecond) UTC timestamp. Used where a stored timestamp doubles as an optimistic-concurrency token and must distinguish writ
internal/store/store.go:1657
↓ 48 callers
Method
reset
The editor is clean again (or the item changed): the next edit re-seeds.
web/src/lib/items/rawBase.ts:36
↓ 48 callers
Function
resolve
(table: GateTable, code: string, extraNested: SignedRow[])
web/src/test/identityFenceGate.ts:498
↓ 48 callers
Method
resolveOccurrenceAt
(workspaceID, itemID string, in ResolveInput, nowT time.Time)
internal/store/schedule_resolve.go:162
↓ 48 callers
Method
sched
(t *testing.T, wsID, itemID string)
internal/store/schedule_copy_test.go:103
↓ 48 callers
Function
seedStaleItem
BUG-3000: a read that serves items.content must say so when that content is behind the item's live collaborative document. The window was UNBOUNDED w
internal/store/item_content_state_test.go:28
↓ 48 callers
Function
setupTokenAuthEnv
(t *testing.T)
internal/server/handlers_tokens_session_auth_test.go:36
↓ 48 callers
Function
withTempHome
withTempHome chroots ~/.pad to a fresh tempdir for the test. CredentialsPath resolves via os.UserHomeDir → $HOME, so a t.Setenv("HOME", ...) is enough
internal/cli/credentials_test.go:14
↓ 47 callers
Method
GetCommitment
GetCommitment reads an item's schedule as roles: the effective value of each role for the outstanding occurrence with that occurrence's overrides appl
internal/store/commitment.go:150
↓ 47 callers
Function
bearerJSON
bearerJSON marshals body and issues a Bearer-authenticated request. Needed for any mutation issued AFTER a real user has been created in the test's st
internal/server/handlers_watches_test.go:53
↓ 47 callers
Function
classifyHTTPStatus
classifyHTTPStatus is the legacy entry point preserved for callers that don't know their resource kind. New callers should use classifyHTTPStatusKind
internal/mcp/errors.go:1083
↓ 47 callers
Function
clearOutbox
(t *testing.T, s *Store)
internal/store/event_outbox_test.go:76
↓ 47 callers
Function
commitmentCall
(f *schedHTTP, method string, body any)
internal/server/handlers_commitments_test.go:19
↓ 47 callers
Method
dispose
()
web/src/lib/utils/throttledRefresh.ts:22
↓ 46 callers
Method
IsZero
IsZero reports that no bound is set.
internal/store/runtime_limits.go:32
↓ 46 callers
Function
join
()
web/src/lib/services/accessStream.svelte.ts:168
↓ 46 callers
Function
oneShot
oneShot is a schedule at 09:00 UTC on the agendaWindow's day.
internal/server/handlers_agenda_test.go:69
↓ 46 callers
Method
seed
Entering raw mode: the text the editor starts from, at the row's seq then.
web/src/lib/items/rawBase.ts:28
↓ 45 callers
Method
SetUserPlan
SetUserPlan writes a user's billing plan under the plan-source rule (PLAN-3291 DR-6), enforced here rather than by callers: - a write that LOWERS the
internal/store/limits.go:651
↓ 45 callers
Function
appContextFrom
(r *http.Request)
internal/server/app_api.go:99
↓ 45 callers
Function
applySQLiteMigration
applySQLiteMigration applies a single migration file atomically. Behavior (IDEA-1485): 1. PRAGMA statements are lifted out of the migration body (se
internal/store/store.go:1271
↓ 45 callers
Method
guestResourceFilter
guestResourceFilter returns the full-collection IDs and granted item IDs for the current user if they need item-level grant filtering. Returns nil/nil
internal/server/server.go:3914
↓ 45 callers
Method
handle
(w io.Writer, p watchStreamPayload)
cmd/pad/cmd_watch_chat.go:224
↓ 45 callers
Function
newDoorFixture
(t *testing.T)
internal/server/relation_referents_doors_test.go:69
↓ 45 callers
Function
setupPushTest
setupPushTest mirrors setupItemOpenTest (item_open_test.go): points getClient()/getWorkspace() at a fake httptest server via the same urlFlag/workspac
cmd/pad/cmd_push_test.go:14
↓ 44 callers
Function
DecodeJSONKeepingNumbers
DecodeJSONKeepingNumbers is DecodeFieldsJSON for any target: v must be a pointer, as for json.Unmarshal. The range check covers numbers held in interf
internal/models/fields_json.go:45
↓ 44 callers
Method
Run
Run refreshes now and then on the cadence above, until ctx ends.
internal/billing/offer.go:207
↓ 44 callers
Method
SetPlatformSetting
SetPlatformSetting upserts a platform setting.
internal/store/platform_settings.go:26
↓ 44 callers
Method
Valid
Valid reports whether v is one of the stored values.
internal/models/mcp_audit.go:104
↓ 44 callers
Method
Value
()
internal/store/nulguard_test.go:641
↓ 44 callers
Method
load
Point the loader at an entry (or `undefined` to release).
web/src/lib/attachments/viewerTextLoader.svelte.ts:88
↓ 44 callers
Function
loginUser
(t *testing.T, srv *Server, email, password string)
internal/server/handlers_rbac_test.go:94
↓ 44 callers
Function
readCommitment
(t *testing.T, rr *httptest.ResponseRecorder, status int)
internal/server/handlers_commitments_test.go:26
↓ 44 callers
Method
requireEditPermission
requireEditPermission checks if the user has edit access to the given item. For regular members (editor/owner), this uses the standard role check. For
internal/server/server.go:4116
↓ 43 callers
Method
CreateActivity
(a models.Activity)
internal/store/activities.go:66
↓ 43 callers
Method
CreateAgentRole
(workspaceID string, input models.AgentRoleCreate)
internal/store/agent_roles.go:12
↓ 43 callers
Method
GetWorkspaceByID
(id string)
internal/store/workspaces.go:304
↓ 43 callers
Function
New
New creates a MemoryBus with the default replay buffer size.
internal/watchevents/watchevents.go:497
↓ 43 callers
Method
String
()
internal/logging/redaction_followups_test.go:802
↓ 43 callers
Function
derefStr
(p *string)
internal/store/schedule_resolve.go:1104
↓ 43 callers
Method
ensure
(agent string)
internal/server/handlers_chat_test.go:43
↓ 43 callers
Function
newBootAgendaWorld
(t *testing.T, now string)
internal/server/bootstrap_agenda_test.go:25
↓ 43 callers
Function
newStartFixture
(t *testing.T)
internal/server/bootstrap_start_test.go:28
↓ 43 callers
Function
within
(outer: Node | null | undefined, x: Node)
web/src/lib/components/items/childIdentityFencePopulation.test.ts:705
↓ 42 callers
Method
CreateAccessToken
============================================================ Access tokens (handler/oauth2/storage.go AccessTokenStorage) ============================
internal/store/oauth.go:332
↓ 42 callers
Method
FireDueReminders
THE FIRE-PATH INVARIANT, stated once so the next change is measured against it rather than against the last bug: THE CANDIDATE SCAN IS A HINT AND MA
internal/store/reminders.go:582
↓ 42 callers
Method
GetPlatformSetting
GetPlatformSetting returns a single platform setting value, or empty string if not set.
internal/store/platform_settings.go:10
↓ 42 callers
Function
ParseWall
ParseWall reads "2006-01-02" (all-day), "2006-01-02T15:04" or "2006-01-02T15:04:05". A zone, a Z or an offset is refused: a Wall has none. Years outsi
internal/schedule/wall.go:28
↓ 42 callers
Function
Resolve
Resolve turns a wall reading into a UTC instant in loc (RFC 5545 3.3.5). A reading in a spring-forward gap does not exist: it takes the offset in forc
internal/schedule/wall.go:122
↓ 42 callers
Function
cloudAdminReq
cloudAdminReq is a small helper that builds a request with optional JSON body and the caller-chosen headers.
internal/server/cloud_admin_gate_test.go:19
↓ 42 callers
Method
createScheduleAt
(workspaceID, itemID string, in models.ScheduleCreate, nowT time.Time)
internal/store/schedules.go:472
↓ 42 callers
Method
env
()
internal/buildtools/install_refresh_test.go:240
↓ 42 callers
Function
isCollectionVisible
isCollectionVisible checks if a collection ID is in the visible set. If visibleIDs is nil, all collections are visible.
internal/server/server.go:4010
↓ 42 callers
Function
setTempHomeMain
Tests for the PAD_TOKEN override's command-level behaviour (issue #879, layer 1): whoami reports the effective identity, and logout never invalidates
cmd/pad/env_token_override_test.go:20
↓ 42 callers
Function
task3867Want
(t *testing.T, rr *httptest.ResponseRecorder, status int, code string)
internal/server/task3867_token_access_test.go:26
↓ 42 callers
Function
tzRun
(t *testing.T, root *cobra.Command, args ...string)
cmd/pad/task4101_timezone_test.go:78
↓ 41 callers
Function
OccurrenceKey
OccurrenceKey identifies the recurrence instance independently of its target.
internal/store/schedule_journal.go:56
↓ 41 callers
Method
SetUserPlanOverrides
SetUserPlanOverrides updates per-user limit overrides (JSON string).
internal/store/limits.go:768
↓ 41 callers
Function
isBearerAuth
isBearerAuth reports whether the request was authenticated via an Authorization: Bearer header rather than a browser session cookie. True for: PATs on
internal/server/middleware_auth.go:712
↓ 41 callers
Function
mustWorkspace
(t *testing.T, srv *Server, name, ownerID string)
internal/server/authz_cross_workspace_test.go:93
← previous
next →
301–400 of 31,685, ranked by callers