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
↓ 1 callers
Method
RevokeUserToken
RevokeUserToken deletes an API token by id. The server verifies the token belongs to the caller; an unknown or foreign id is a 404.
internal/cli/client_tokens.go:48
↓ 1 callers
Function
RewriteWikiTitle
RewriteWikiTitle rewrites the four title-form wiki-link shapes that resolve to an item titled `oldTitle` in collection `collSlug`, substituting `newTi
internal/links/links.go:186
↓ 1 callers
Method
RotateUserToken
RotateUserToken generates a new secret for an existing token, keeping its metadata (name, scopes, workspace). The OLD secret dies with the UPDATE — Ro
internal/cli/client_tokens.go:59
↓ 1 callers
Method
RunPlaybook
RunPlaybook binds the supplied args to the playbook's declared spec and returns the body + bound args + any unsatisfied required args. Side-effect-fre
internal/cli/client.go:1597
↓ 1 callers
Function
SafeFallbackExtension
SafeFallbackExtension reports whether ext (with its leading dot, any case) may be carried into a generic fallback filename when the original name was
internal/attachments/mime.go:649
↓ 1 callers
Method
Save
Save writes the store to disk in v2 format with mode 0600. Always writes the current version constant — even if the store was loaded from v1, this is
internal/cli/credentials.go:377
↓ 1 callers
Function
ScalarRelationKeys
ScalarRelationKeys returns the keys the schema declares as scalar `relation`, in schema order.
internal/items/relation_blanks.go:61
↓ 1 callers
Function
ScheduleActiveNextAt
ScheduleActiveNextAt returns the next occurrence a schedule_active refusal names, or "not currently set".
internal/cli/client.go:3837
↓ 1 callers
Function
SchemaEditRemoves
SchemaEditRemoves reports whether going from prev to next drops a field or drops an option from a field that stays a select or multi_select: the only
internal/store/field_usage.go:166
↓ 1 callers
Method
SchemaVersion
SchemaVersion exposes the version this manager stamps on persisted op-log rows. The HTTP collab handler uses it to validate incoming `?schema_version=
internal/collab/manager.go:31
↓ 1 callers
Method
SendAccountClaimed
SendAccountClaimed tells the owner of an address that their sign-in claimed a Pad account somebody else had registered with it and never verified (TAS
internal/email/templates.go:194
↓ 1 callers
Method
SendPaymentFailed
SendPaymentFailed notifies a user that a Stripe invoice attempt failed. Called by the sidecar (via POST /api/v1/admin/payment-failed) after it handles
internal/email/templates.go:248
↓ 1 callers
Method
SendStepUpCode
SendStepUpCode sends a single-use code for an API key access change.
internal/email/templates.go:349
↓ 1 callers
Method
SendWelcome
SendWelcome sends a welcome email after registration. If unsubscribeURL is non-empty, an unsubscribe link is included in the footer.
internal/email/templates.go:63
↓ 1 callers
Method
Sent
Sent is how many bytes the transport has taken.
internal/cli/client_import.go:48
↓ 1 callers
Method
SequenceCounterRepaired
SequenceCounterRepaired is labelled by shape, which the events package bounds to three values (plus "unknown").
internal/metrics/events_observer.go:75
↓ 1 callers
Method
SequenceCounterRepaired
SequenceCounterRepaired reports that the shared event sequence counter held something INCR cannot count from (a key of another type, a string that is
internal/events/observer.go:174
↓ 1 callers
Method
SequenceGap
SequenceGap reports that the received id sequence skipped forward: this instance missed `missing` notifications. Both kinds of client are told (see fa
internal/watchevents/observer.go:75
↓ 1 callers
Method
SequenceReset
(reason string)
internal/metrics/events_observer.go:39
↓ 1 callers
Method
ServeHTTP
(w http.ResponseWriter, r *http.Request)
internal/mcp/task4186_chat_agent_guard_test.go:22
↓ 1 callers
Method
ServeHTTP
(w http.ResponseWriter, r *http.Request)
internal/mcp/dispatch_http_test.go:44
↓ 1 callers
Method
ServeHTTP
(w http.ResponseWriter, r *http.Request)
internal/server/task2308_mcp_scope_test.go:28
↓ 1 callers
Method
ServerResolvesSearchCollection
ServerResolvesSearchCollection reports whether GET /search resolves its `collection` filter server-side (BUG-2659), so the CLI can send the collection
internal/cli/client.go:595
↓ 1 callers
Method
ServerSupportsAttachmentAttach
ServerSupportsAttachmentAttach reports whether this server routes POST /attachments/{id}/attach (TASK-2247). An indeterminate probe answers false, for
internal/cli/client.go:1232
↓ 1 callers
Method
ServerSupportsItemPatch
ServerSupportsItemPatch reports whether this server serves POST workspaces/{ws}/items/{ref}/patch (PLAN-3578). An older build answers that route with
internal/cli/client.go:1268
↓ 1 callers
Method
ServerSupportsLibraryActivate
ServerSupportsLibraryActivate reports whether this server activates a library entry itself, recording its built-in origin (TASK-3462). An indeterminat
internal/cli/client.go:1241
↓ 1 callers
Function
SessionKindFor
SessionKindFor maps a session's device label to its kind. The CLI's two sign-in paths label their sessions "cli-browser-auth" (browser approval) and "
internal/store/sessions.go:52
↓ 1 callers
Method
SetBackfillPacing
SetBackfillPacing sets how many items one backfill chunk owes (the tick's per-pass limit) and how often the backfill re-checks that the chunk drained
internal/decision/runner.go:796
↓ 1 callers
Method
SetBackfillSeams
SetBackfillSeams sets the effort backfill's chunk size and its before-each-chunk hook. Test affordance only (the server's tests live in another packag
internal/decision/runner.go:783
↓ 1 callers
Method
SetCascadeBuildObserver
SetCascadeBuildObserver installs a TEST-SUPPORT observer called once per rewritten body the item rename cascade BUILDS, with that body's length. Pass
internal/store/wiki_links.go:1723
↓ 1 callers
Method
SetCommitmentForecast
SetCommitmentForecast replaces the hand-set estimate without changing roles.
internal/cli/client.go:3804
↓ 1 callers
Method
SetConnPatchCapable
SetConnWritable updates the write permission of a single live connection mid-session. Called by the collab handler's periodic authorization revalidati
internal/collab/manager.go:1483
↓ 1 callers
Method
SetDeadlockInjectorForTesting
SetDeadlockInjectorForTesting sets the deadlock injector (see injectedDeadlock) for the lifetime of the returned restore function, so a test outside t
internal/store/testing_helpers.go:260
↓ 1 callers
Function
SetEffortCandidatesBoundsForTesting
SetEffortCandidatesBoundsForTesting lowers the candidate read's statement and lock bounds so a test can make it time out without waiting minutes. Retu
internal/store/decisions.go:334
↓ 1 callers
Method
SetItemRestoreBoundaryOpID
SetItemRestoreBoundaryOpID is the non-transactional setter for items.restore_boundary_op_id. Production stamps the boundary atomically inside the rest
internal/store/yjs_updates.go:444
↓ 1 callers
Method
SetItemUpdateCommitHookForTesting
SetItemUpdateCommitHookForTesting routes updateItemWithParentLinkOnce's final COMMIT through hook for the lifetime of the returned restore function.
internal/store/testing_helpers.go:135
↓ 1 callers
Method
SetMCPSessionTrackerConfig
SetMCPSessionTrackerConfig stashes ttl + sweep-interval overrides for the session tracker before it's started. Either may be 0 to keep the package def
internal/server/middleware_mcp_session.go:211
↓ 1 callers
Method
SetOutboxDrainConfig
SetOutboxDrainConfig overrides the drain's timings. Zero values keep the defaults, so a caller can set one knob without restating the rest.
internal/server/outbox_drain.go:80
↓ 1 callers
Method
SetPushGatewayClient
SetPushGatewayClient sets the client the push dispatcher sends through (TASK-3939). Called once at startup, before the server accepts connections, and
internal/server/handlers_push_devices.go:41
↓ 1 callers
Method
SetSecureCookies
SetSecureCookies enables the Secure flag on all cookies.
internal/server/server.go:1387
↓ 1 callers
Method
SetStripeEventReadFailureHookForTesting
SetStripeEventReadFailureHookForTesting makes ClaimStripeEvent's read of an existing event row fail with hook's error, for the lifetime of the returne
internal/store/testing_helpers.go:283
↓ 1 callers
Method
SetTimezone
SetTimezone unconditionally updates the authenticated user's time zone.
internal/cli/client.go:2327
↓ 1 callers
Method
SetVersion
SetVersion stores the build version info for the health endpoint.
internal/server/server.go:1059
↓ 1 callers
Method
SetWorkspaceImportPartial
SetWorkspaceImportPartial records that a workspace was only partly imported, with a server-composed note (a fixed category, a fixed detail and a corre
internal/store/workspace_import_status.go:17
↓ 1 callers
Method
SetWorkspacePurgeConfig
SetWorkspacePurgeConfig overrides the default sweep interval (24h) and retention window (30d). Pass 0 for either to keep the package default. Must be
internal/server/workspace_purge.go:71
↓ 1 callers
Method
SetWriteDeadline
(time.Time)
cmd/pad/mcp_deadline_recorder_test.go:15
↓ 1 callers
Function
Setup
Setup configures the default slog logger. - level: "debug", "info", "warn", "error" (default "info") - format: "json" or "text" (default "text") Aft
internal/logging/logging.go:25
↓ 1 callers
Function
ShouldPruneStripeEvents
ShouldPruneStripeEvents returns true with a ~1% chance, using crypto/rand. Used to opportunistically prune stripe_processed_events without a dedicated
internal/store/stripe_events.go:209
↓ 1 callers
Function
ShowFieldValue
ShowFieldValue renders a setting's value for a terminal: a string as itself, anything else as JSON.
internal/cli/builtin_format.go:135
↓ 1 callers
Method
ShowPlaybook
ShowPlaybook returns the full playbook item identified by ref, slug, or invocation_slug.
internal/cli/client.go:1573
↓ 1 callers
Method
Shutdown
Shutdown gracefully drains in-flight requests and stops the HTTP server. The provided context controls how long to wait for active connections.
internal/server/server.go:2909
↓ 1 callers
Method
SinceLastRead
SinceLastRead is how long ago the transport last took bytes.
internal/cli/client_import.go:51
↓ 1 callers
Function
SkillPath
SkillPath returns the full path to the installed skill file, or "" if not installed.
internal/cli/skills.go:33
↓ 1 callers
Function
SkillState
SkillState is DecideSkillWrite for the file currently at the tool's skill path, for status displays: exists is false when there is no file.
internal/cli/skillstamp.go:334
↓ 1 callers
Function
SkillsInstalled
SkillsInstalled checks if the pad skill is installed at global or project level. Returns ("global", true), ("project", true), or ("", false).
internal/cli/skills.go:12
↓ 1 callers
Function
SlugForArtifactKind
SlugForArtifactKind returns the slug of the collection declaring the given artifact kind, or "" when none does.
internal/collections/traits.go:119
↓ 1 callers
Method
SoftDeleteWorkspaceAttachments
SoftDeleteWorkspaceAttachments tombstones every live attachment row (originals AND thumbnail variants) under a workspace in a single bulk UPDATE. Used
internal/store/attachments.go:1480
↓ 1 callers
Function
SortByCriteria
SortByCriteria orders rows the way a reader reads the spec: by the criterion's position in the body, then oldest first within a criterion. Rows whose
internal/verification/verification.go:161
↓ 1 callers
Function
SpecPlaybook
SpecPlaybook returns the seeded `spec` playbook for the spec template. invocation_slug=`spec` routes `/pad spec <target>` here.
internal/collections/templates_sdd_spec.go:215
↓ 1 callers
Method
StarItem
StarItem stars an item for the current user.
internal/cli/client.go:770
↓ 1 callers
Method
StartOutboxDrain
StartOutboxDrain starts the periodic drain loop. Idempotent; tracked by Server.bg so Stop() drains it before the process exits (the BUG-842 invariant
internal/server/outbox_drain.go:156
↓ 1 callers
Method
StartWorkspacePurgeSweeper
StartWorkspacePurgeSweeper kicks off the periodic sweep loop. Idempotent — calling twice is a no-op. Must be called AFTER SetAttachments; the sweep no
internal/server/workspace_purge.go:109
↓ 1 callers
Method
Stat
Stat returns the on-disk size of the blob, or an ErrNotFound-wrapped error if the key has no blob.
internal/attachments/fs_store.go:216
↓ 1 callers
Method
StepUpSendEmail
()
internal/cli/client.go:2185
↓ 1 callers
Method
StepUpStatus
()
internal/cli/client.go:2180
↓ 1 callers
Method
StepUpVerify
(code, password string)
internal/cli/client.go:2189
↓ 1 callers
Function
StrSliceToRRuleSet
StrSliceToRRuleSet converts given str slice to RRuleSet In case there is a time met in any rule without specified time zone, when it is parsed in UTC
internal/schedule/internal/rrule/str.go:301
↓ 1 callers
Function
StrSliceToRRuleSetInLoc
StrSliceToRRuleSetInLoc is same as StrSliceToRRuleSet, but by default parses local times in specified default location
internal/schedule/internal/rrule/str.go:307
↓ 1 callers
Function
StrToFreq
(str string)
internal/schedule/internal/rrule/str.go:43
↓ 1 callers
Function
StrToROption
StrToROption converts string to ROption.
internal/schedule/internal/rrule/str.go:169
↓ 1 callers
Method
String
()
internal/store/items_rename_probe_test.go:44
↓ 1 callers
Method
String
String is "2006-01-02" for an all-day Wall and "2006-01-02T15:04:05" else.
internal/schedule/wall.go:55
↓ 1 callers
Function
StripAppProjection
StripAppProjection is stripAppProjection for the outbox drain, which builds owner-webhook deliveries outside this package.
internal/store/app_projection.go:350
↓ 1 callers
Function
StructuredLogger
StructuredLogger is a chi-compatible request logger that writes structured log entries via slog. It replaces chi's default Logger middleware.
internal/server/middleware_logging.go:15
↓ 1 callers
Method
Subscribe
Subscribe calls handle for every kick until stop is called. handle must not block: it runs on the transport's receive goroutine.
internal/accesskick/accesskick.go:38
↓ 1 callers
Method
Subscribe
Subscribe receives kicks until stop is called. go-redis re-establishes the subscription after a connection loss on its own; kicks published while it w
internal/accesskick/accesskick.go:90
↓ 1 callers
Method
SubscribeAndReplaySince
SubscribeAndReplaySince delegates the atomic check-subscribe-and-replay to the inner bus and updates the same gauges as SubscribeIfAllowed. The gap c
internal/metrics/instrumented_bus.go:67
↓ 1 callers
Method
SubscribeAndReplaySince
SubscribeAndReplaySince implements EventBus. See the interface for the guarantee. One lock does it here: this bus keeps subscribers and replay buffer
internal/events/redis_bus.go:1001
↓ 1 callers
Method
SubscribeIfAllowed
SubscribeIfAllowed delegates the atomic check-and-subscribe to the inner bus and updates Prometheus gauges on success. EVERY NON-OK OUTCOME IS TREATE
internal/metrics/instrumented_bus.go:51
↓ 1 callers
Method
SubscriberCount
SubscriberCount delegates to the inner bus.
internal/metrics/instrumented_bus.go:128
↓ 1 callers
Method
SubscriptionCycled
SubscriptionCycled is unlabelled for the same reason SubscriptionUnconfirmed is: the workspace is the only dimension on offer and it is the cardinalit
internal/metrics/events_observer.go:63
↓ 1 callers
Method
SubscriptionCycled
SubscriptionCycled reports that a workspace's Redis subscription received NOTHING — no event, no heartbeat, no acknowledgement — for longer than the b
internal/events/observer.go:143
↓ 1 callers
Method
SubscriptionUnconfirmed
SubscriptionUnconfirmed is unlabelled on purpose. The workspace is the only dimension the bus could offer and it is the cardinality bomb ResumeGap's c
internal/metrics/events_observer.go:56
↓ 1 callers
Method
SubscriptionUnconfirmed
SubscriptionUnconfirmed reports that a workspace's Redis subscription could not be CONFIRMED within the bus's bound, so the subscribers waiting on it
internal/events/observer.go:118
↓ 1 callers
Function
THUMB
(id: string)
web/src/lib/attachments/viewerImageLoader.svelte.test.ts:30
↓ 1 callers
Method
TOTPDisable
TOTPDisable turns 2FA off. An account with a password proves itself with it; one without sends a current code or a recovery code (#1879).
internal/cli/client.go:2228
↓ 1 callers
Method
TOTPSetup
TOTPSetup starts enabling 2FA (TASK-403).
internal/cli/client.go:2201
↓ 1 callers
Method
TOTPVerify
TOTPVerify finishes enabling 2FA with a code from the authenticator app.
internal/cli/client.go:2214
↓ 1 callers
Function
TestAllDayWeeklyNoDriftAcrossDST
(t *testing.T)
internal/schedule/nextbetween_test.go:292
↓ 1 callers
Function
TestDSTFloatingViewZone
(t *testing.T)
internal/schedule/dst_test.go:36
↓ 1 callers
Method
TestWebhook
TestWebhook sends a test payload to a webhook.
internal/cli/client.go:1849
↓ 1 callers
Function
ToolSurfaceJSON
ToolSurfaceJSON serializes the package-global Catalog into the tool-surface descriptor JSON — the same blob pad_meta.action: tool-surface emits, plus
internal/mcp/tool_surface.go:340
↓ 1 callers
Method
TouchCalendarFeed
TouchCalendarFeed uses a conditional write so concurrent polls also write at most once an hour. The read-side caller skips even this write when recent
internal/store/calendar_feeds.go:167
↓ 1 callers
Method
TouchUserActivity
TouchUserActivity updates last_active_at for a user, throttled to avoid write amplification. Only writes if the stored value is older than 5 minutes.
internal/store/users.go:1085
↓ 1 callers
Method
UndoPatch
UndoPatch inverts a stored patch on the item (PLAN-3578 step 3). The undo is itself a patch, answered the same way.
internal/cli/client.go:1339
↓ 1 callers
Method
UnstarItem
UnstarItem removes a star from an item for the current user.
internal/cli/client.go:775
↓ 1 callers
Method
Unwrap
Unwrap returns the chi wrapper, so a ResponseController reaches the connection through it (write deadlines, BUG-3637).
internal/server/flush_error_writer.go:70
↓ 1 callers
Method
UpdateAgentRole
(workspaceID, id string, input models.AgentRoleUpdate)
internal/store/agent_roles.go:105
↓ 1 callers
Method
UpdateAgentRole
UpdateAgentRole updates an existing agent role.
internal/cli/client.go:1887
↓ 1 callers
Method
UpdateAgentRoleOrder
UpdateAgentRoleOrder batch-updates sort_order for a list of roles.
internal/store/agent_roles.go:421
← previous
next →
9,401–9,500 of 28,840, ranked by callers