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
↓ 14 callers
Method
tick
(t *testing.T)
internal/decision/attention_test.go:224
↓ 14 callers
Method
tick
tick fires what is due at ts and returns the fired rows of one workspace.
internal/store/schedule_copy_test.go:113
↓ 14 callers
Function
tokenPinFrom
tokenPinFrom returns the request's token pin, or nil when the credential is not a workspace-pinned user token (a cookie or CLI session, an OAuth token
internal/server/pinned_token.go:26
↓ 14 callers
Function
u3cRun
(t *testing.T, srv *httptest.Server, build func() interface { SetArgs([]string) Execute() error }, args ...s
cmd/pad/task3462_u3c_library_builtin_test.go:81
↓ 14 callers
Function
uploadAttachment
( fixture: SuiteFixture, request: APIRequestContext, itemId: string, filename: string, mimeType = 'image/
web/e2e/lib/attachment-viewer.ts:470
↓ 14 callers
Function
uploadHelper
uploadHelper does a fresh upload and returns the parsed response.
internal/server/handlers_attachments_download_test.go:19
↓ 14 callers
Function
versionBodySHA256
versionBodySHA256 is the body_sha256 of a version standing for body (BUG-3820): hex sha256 of its UTF-8 bytes.
internal/store/items.go:6719
↓ 14 callers
Function
waitFor
waitFor polls until cond holds or the deadline passes. Delivery crosses a goroutine and a socket, so a bare read after Publish is a race.
internal/watchevents/redis_bus_integration_test.go:40
↓ 14 callers
Function
wedge
wedge simulates the failure this whole unit exists to detect: the outbound probe keeps SUCCEEDING and nothing ever comes back. It has to be simulated
internal/events/redis_heartbeat_test.go:116
↓ 14 callers
Function
writeAppJSON
(w http.ResponseWriter, status int, v any)
internal/server/app_api_read.go:130
↓ 14 callers
Function
writeRestoreSQLite
Copy a quiescent committed WAL tuple while its scratch connection is open, then close the scratch DB. The fixture itself has no live connection.
cmd/pad/cmd_db_restore_test.go:78
↓ 14 callers
Function
writeWorkspaceNotFound
writeWorkspaceNotFound writes the workspace-resolution 404 (BUG-3069). The message is passed through because two doors have long said "Workspace not f
internal/server/server.go:3042
↓ 13 callers
Method
Append
Append writes line plus a newline: the same bytes the caller printed.
internal/cli/chat_seen.go:133
↓ 13 callers
Method
Apply
Apply walks doc and stamps EnumSource + resolved Enum values on matching args and flags. Resolution failures are silent: the document continues to adv
internal/cmdhelp/dynamic.go:113
↓ 13 callers
Method
CreateAttachmentForLiveItem
CreateAttachmentForLiveItem inserts an attachment row, refusing when its item_id does not name a LIVE item of the same workspace — re-checked and pinn
internal/store/attachments.go:227
↓ 13 callers
Method
DeleteScheduleGate
DeleteScheduleGate removes a gate. It needs edit on both ends, as a link does, and works whether or not either end is soft-deleted: an end absent from
internal/store/commitment_gates.go:285
↓ 13 callers
Method
Error
()
internal/models/view_calendar.go:44
↓ 13 callers
Method
Error
()
internal/schedule/caps.go:92
↓ 13 callers
Function
ExtractItemDecisionLog
(fieldsJSON string)
internal/models/item.go:979
↓ 13 callers
Method
Find
Find reports how id resolves and, when it is found, its text's hash.
internal/verification/verification.go:73
↓ 13 callers
Method
GetItemBySlug
(workspaceID, slug string)
internal/store/items.go:933
↓ 13 callers
Method
GetUserQ
GetUserQ is GetUser parameterized over its executor (see Queryer).
internal/store/users.go:177
↓ 13 callers
Method
ListCollectionsMinimal
ListCollectionsMinimal returns collection rows populated with just the fields needed for done-detection context and slug lookups: ID, Slug, Schema, Se
internal/store/collections.go:379
↓ 13 callers
Method
ListItemVerifications
ListItemVerifications returns an item's verdicts, oldest first (created_at, then id). With latestOnly, it returns only the newest row per criterion, w
internal/store/verifications.go:140
↓ 13 callers
Function
ListSessions
ListSessions reads every registry record and returns them with a liveness verdict each, newest first. A malformed file is returned as a Malformed reco
internal/cli/session_registry.go:307
↓ 13 callers
Method
ListUserOAuthConnections
ListUserOAuthConnections returns every OAuth connection the user has active. "Active" means at least one access OR refresh token in the chain still ha
internal/store/connected_apps.go:59
↓ 13 callers
Function
NewRefPrefixFixture
(t *testing.T, postgres, identExists bool)
internal/store/storetest/ref_prefix.go:21
↓ 13 callers
Function
ParseRule
ParseRule reads an RRULE value (no "RRULE:" prefix) strictly: RFC 5545 3.3.10 grammar, every combination the RFC forbids, and rules that can never pro
internal/schedule/rule.go:69
↓ 13 callers
Function
ParseTrustedProxyCIDRs
ParseTrustedProxyCIDRs parses a comma-separated list of CIDRs or bare IPs from the PAD_TRUSTED_PROXIES setting. Bare IPs get /32 (IPv4) or 128 (IPv6).
internal/server/middleware_realip.go:109
↓ 13 callers
Method
Ping
Ping verifies the database connection is alive.
internal/store/store.go:668
↓ 13 callers
Function
RedactPath
RedactPath removes credential-bearing path tails, including malformed and unmatched requests for which a router has no route template yet. URL.Path is
internal/logging/redaction.go:156
↓ 13 callers
Function
RegisterCatalog
RegisterCatalog installs the v0.2 catalog tools on srv. Returns the count of tools registered (excluding pad_set_workspace, which the cmdhelp-walk pat
internal/mcp/catalog.go:230
↓ 13 callers
Function
Repair
Repair is the ONE implementation of "make this value satisfy the invariant", and it lives beside the predicate for the same reason the predicate is sh
internal/textguard/repair.go:28
↓ 13 callers
Method
ResolveLateRelationDefaults
ResolveLateRelationDefaults resolves relation values that appeared in fieldMap only AFTER validation ran — i.e. schema defaults `ValidateFields` injec
internal/store/relation_referents.go:1696
↓ 13 callers
Function
ResolveTool
ResolveTool finds an AgentTool by name or alias. Returns nil if not found.
internal/cli/agents.go:152
↓ 13 callers
Function
RewriteBracketsAt
RewriteBracketsAt rewrites every bracket named in `rewrites` in a SINGLE pass over `content`, returning the new content and how many rewrites it appli
internal/links/links.go:303
↓ 13 callers
Function
ScheduleMissed
ScheduleMissed counts the occurrences that passed unresolved AFTER the outstanding one: instances whose wall is after O's wall and which have passed f
internal/store/schedule_outstanding.go:75
↓ 13 callers
Function
SessionArmedLocally
SessionArmedLocally reports whether this session has a live explicit ARM (LocalArmOn). Retained for callers that only ask the ON question; the full tr
internal/cli/session_arm_state.go:556
↓ 13 callers
Function
SetWorkspaceTool
SetWorkspaceTool returns the (Tool, Handler) pair for the built-in pad_set_workspace tool. The handler updates state in place. Exposed as a construct
internal/mcp/workspace.go:122
↓ 13 callers
Method
SoftDeleteAttachment
SoftDeleteAttachment marks the given attachment row deleted (and every variant whose parent_id points at it) so the orphan GC will reclaim the bytes a
internal/store/attachments.go:1510
↓ 13 callers
Method
SubscriberCount
SubscriberCount returns the number of active subscribers whose itemID matches. Used by the room manager to decide when the active peer count has dropp
internal/collab/memory_bus.go:189
↓ 13 callers
Method
Total
Total is the number of offending values.
internal/store/nulscan.go:123
↓ 13 callers
Method
Validate
Validate runs the checks that need the schedule's Start. loc is the pinned zone, or nil for a floating schedule. It refuses an all-day schedule with a
internal/schedule/rule.go:397
↓ 13 callers
Function
add
(names: Set<string>)
web/src/test/identityFenceAst.ts:815
↓ 13 callers
Function
afterCommitReadback
(kind, id string)
internal/store/testing_helpers.go:271
↓ 13 callers
Function
assertRestoreSQLiteValue
(t *testing.T, path, want string)
cmd/pad/cmd_db_restore_test.go:159
↓ 13 callers
Method
buildCommitmentAccess
buildCommitmentAccess runs only for an already admitted workspace. All reads use q, including when a mutation reloads permissions inside its transacti
internal/server/commitment_access.go:45
↓ 13 callers
Function
calls
()
web/src/lib/components/layout/YouNav.svelte.test.ts:30
↓ 13 callers
Function
captureUpdateBody
captureUpdateBody runs `item update` against a fake server and returns the decoded PATCH body. The GET is the CLI's own pre-fetch (it resolves the ite
cmd/pad/item_column_fields_test.go:32
↓ 13 callers
Function
childLinkTypeSQL
childLinkTypeSQL returns a SQL IN clause fragment like "'parent','implements'" for filtering item_links by child relationship types.
internal/store/items.go:30
↓ 13 callers
Function
chunkStrings
chunkStrings splits ids into slices of at most size elements.
internal/store/attachments_copy_plan.go:759
↓ 13 callers
Function
collectionSchemaJSONFromFlags
collectionSchemaJSONFromFlags resolves the --schema and --fields flags into a marshaled CollectionSchema JSON string. Exactly one of schemaInput or f
cmd/pad/cmd_collection.go:81
↓ 13 callers
Function
copyInput
(in map[string]any)
internal/mcp/task4105_schedule_test.go:110
↓ 13 callers
Function
createBulkTestItem
createBulkTestItem creates a task and returns it.
internal/server/handlers_items_bulk_test.go:17
↓ 13 callers
Function
decodeEnvelope
decodeEnvelope helper extracts the ErrorEnvelope from an MCP error result. Uses textOf (the shared helper in catalog_test.go) to retrieve the JSON bod
internal/mcp/errors_test.go:309
↓ 13 callers
Function
distinctPNG
distinctPNG returns a valid PNG whose bytes differ per seed, so an assertion on served content can tell one blob from another. The download handler ne
internal/server/handlers_attachments_download_authz_test.go:149
↓ 13 callers
Method
doAs
(t *testing.T, rt capRoute, host, remoteAddr string)
cmd/pad/mcp_capability_test.go:492
↓ 13 callers
Method
end
end stops any further keepalive. Called once the transport returns, before mcpBoundWrites joins the keepalive goroutine and itself returns. It is not
internal/server/mcp_stream_keepalive.go:137
↓ 13 callers
Function
executeSQLiteRestore
(t *testing.T, backup string)
cmd/pad/cmd_db_restore_test.go:172
↓ 13 callers
Method
fireOneReminder
fireOneReminder is the arbiter plus the emission, in one transaction. Returns (nil, nil) when another pass won the row or its item is gone.
internal/store/reminders.go:626
↓ 13 callers
Function
fmtInstant
fmtInstant renders an RFC3339 instant in the viewer's zone (loc overrides it when the caller named one), never the machine's.
cmd/pad/cmd_schedule.go:61
↓ 13 callers
Function
getSessions
(t *testing.T, baseURL, token string)
internal/server/handlers_sessions_test.go:26
↓ 13 callers
Function
groupStatus
(t *testing.T, rr *httptest.ResponseRecorder, want int)
internal/server/handlers_workspace_groups_test.go:45
↓ 13 callers
Function
i
(n int)
internal/store/commitment_c1_test.go:19
↓ 13 callers
Function
importWithLinks
importWithLinks replaces a bundle's links and imports it.
internal/store/schedule_link_import_test.go:300
↓ 13 callers
Method
invalidateScheduleReopenTx
(tx *sql.Tx, id string)
internal/store/schedule_reopen.go:148
↓ 13 callers
Method
invalidateWorkspaceAccess
invalidateWorkspaceAccess is invalidateUserAccess for every connection on a workspace.
internal/server/access_kick.go:233
↓ 13 callers
Function
kindsOf
(entries []models.TimelineEntry)
internal/server/handlers_timeline_structured_test.go:67
↓ 13 callers
Function
legacyReminderRow
(t *testing.T, s *Store, state string)
internal/store/reminder_commitment_migration_test.go:45
↓ 13 callers
Function
loadCorpus
(t *testing.T)
internal/materialize/materialize_test.go:46
↓ 13 callers
Method
managed
(t *testing.T, scheduleID string)
internal/store/schedule_copy_test.go:128
↓ 13 callers
Method
members
(t *testing.T)
internal/server/handlers_invitation_accept_limit_test.go:30
↓ 13 callers
Method
naive
naive labels the reading as UTC, giving a time that orders and subtracts like the wall clock and that no DST rule can bend.
internal/schedule/wall.go:65
↓ 13 callers
Function
newAcceptLimitEnv
(t *testing.T)
internal/server/handlers_invitation_accept_limit_test.go:25
↓ 13 callers
Function
newIPRateLimiter
(cfg rateLimitConfig)
internal/server/middleware_ratelimit.go:78
↓ 13 callers
Function
newRedisPresencePair
BUG-2698 — the registry half. These drive TWO RedisSessionPresence values against ONE miniredis, because that is what the bug is: two padd processes
internal/server/session_presence_redis_test.go:19
↓ 13 callers
Function
newVerifiedEmailFixture
(t *testing.T, cloud bool)
internal/server/middleware_verified_email_test.go:46
↓ 13 callers
Method
now
()
internal/server/task3939b_push_fixture_test.go:239
↓ 13 callers
Function
plantLegacyRows
dropAllNULTriggers turns the store's database into a pre-S2 one for the duration of a test, so a raw handle can plant the LEGACY rows this unit exists
internal/store/nulscan_test.go:19
↓ 13 callers
Function
postOAuthFormBearer
postOAuthFormBearer POSTs an x-www-form-urlencoded body with a Bearer Authorization header (used for /oauth/introspect, where fosite v0.49 requires ei
internal/server/handlers_oauth_test.go:2652
↓ 13 callers
Method
renegotiateDeadlineAt
(workspaceID, itemID, actor string, until time.Time, reason string, nowT time.Time)
internal/store/commitment.go:561
↓ 13 callers
Function
renegotiateState
(t *testing.T, s *Store)
internal/store/commitment_renegotiate_test.go:47
↓ 13 callers
Method
resolvedRefs
resolvedRefs resolves a share link (optionally with a password header) and returns its attachment_refs map.
internal/server/handlers_share_attachments_test.go:193
↓ 13 callers
Function
runReminderMigration
(s *Store, name, body string)
internal/store/reminder_commitment_migration_test.go:38
↓ 13 callers
Method
scheduleSnapshotTx
(tx *sql.Tx, id string)
internal/store/schedule_journal.go:99
↓ 13 callers
Function
scrubTestUsers
scrubTestUsers creates the deleted-account user and the bystander whose data is the negative control.
internal/store/event_outbox_scrub_test.go:80
↓ 13 callers
Function
shortRereads
(t *testing.T, n int, pause time.Duration)
internal/cli/credentials_bug3828_test.go:43
↓ 13 callers
Function
structuredResult
structuredResult is a successful result carrying structured content plus its text rendering, for clients that read only one of the two.
internal/mcp/result.go:23
↓ 13 callers
Method
summary
(ref string)
cmd/pad/cmd_schedule.go:123
↓ 13 callers
Function
task3462ItemByTitle
(t *testing.T, srv *Server, wsSlug, coll, title string)
internal/server/task3462_builtin_origin_test.go:29
↓ 13 callers
Function
task3867Verify
(e *tokenAuthEnv, body any)
internal/server/task3867_token_access_test.go:44
↓ 13 callers
Function
taskSchema
()
internal/items/validate_test.go:10
↓ 13 callers
Function
testStoreSQLite
(t *testing.T)
internal/store/store_test.go:54
↓ 13 callers
Function
tlsServer
tlsServer serves h over TLS on 127.0.0.1 and returns its origin plus a TLS config trusting it.
internal/appfetch/appfetch_test.go:18
↓ 13 callers
Function
tokenWorkspaceID
tokenWorkspaceID returns the workspace ID set by the TokenAuth middleware, or an empty string if no token was used.
internal/server/middleware_auth.go:646
↓ 13 callers
Function
updatedActivityEntries
updatedActivityEntries returns the timeline's "updated" activity entries. The timeline carries other kinds too (the create activity, versions, notes),
internal/server/handlers_activity_debounce_actor_test.go:100
↓ 13 callers
Function
uploadIntegrationPNG
(t *testing.T, srv *Server, slug string, w, h int)
internal/server/handlers_attachments_transform_test.go:41
↓ 13 callers
Function
wantAts
(t *testing.T, got []Occurrence, want ...string)
internal/schedule/nextbetween_test.go:44
↓ 12 callers
Method
Addr
()
cmd/pad/chat_synctest_net_test.go:43
↓ 12 callers
Function
AppendImplementationNote
(fieldsJSON string, note ItemImplementationNote)
internal/models/item.go:1119
← previous
next →
1,101–1,200 of 28,840, ranked by callers