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
↓ 5 callers
Method
EndAppDelivery
(deliveryID string)
internal/webhooks/app_delivery.go:50
↓ 5 callers
Method
EnsureChatDMContext
EnsureChatDMContext lets the monitor cancel its background DM ensure on exit.
internal/cli/client.go:4101
↓ 5 callers
Method
Error
()
internal/server/handlers_items_bulk.go:104
↓ 5 callers
Function
ErrorType
ErrorType retains the failure's type without rendering untrusted error text. HTTP and conversion errors can repeat URLs, response bodies or credential
internal/logging/redaction.go:240
↓ 5 callers
Method
EventsSince
EventsSince returns buffered events for a workspace with IDs greater than sinceID. Returns nil when this instance cannot vouch for the requested span
internal/events/redis_bus.go:1559
↓ 5 callers
Function
ExtractWorkspaceContext
(raw string)
internal/models/workspace_settings.go:118
↓ 5 callers
Method
FinishRotate
FinishRotate is rotate's phase 2: disabling -> active with a new client secret (discarded: the app receives one through redeem) and a new install code
internal/store/app_lifecycle.go:208
↓ 5 callers
Function
FoldName
FoldName folds an object member name the way encoding/json v1 does when it matches a key to a struct field: ASCII letters upper-cased, and every other
internal/jsonscan/jsonscan.go:150
↓ 5 callers
Method
For
For returns the routing as the given user sees it. Under the mentioned rule that is built from the user's own mentions alone, so nothing of another pe
internal/needs/needs.go:142
↓ 5 callers
Function
GenerateUsername
--- Username backfill --- GenerateUsername derives a URL-safe username from a display name. Falls back to the email local part if the name produces an
internal/store/users.go:1995
↓ 5 callers
Method
GetAllItemProgress
GetAllItemProgress returns child item completion counts for every item in the given collection within a workspace. includeArchived controls whether s
internal/store/items.go:5602
↓ 5 callers
Method
GetCollection
(wsSlug, collSlug string)
internal/cli/client.go:316
↓ 5 callers
Method
GetDashboard
--- Dashboard --- GetDashboard returns the workspace dashboard as raw JSON. The DashboardResponse type lives in the server package, so we use json.Raw
internal/cli/client.go:1601
↓ 5 callers
Method
GetDeletedWorkspaceBySlug
GetDeletedWorkspaceBySlug returns a SOFT-DELETED workspace by any slug it claims (deleted_at IS NOT NULL), including its owner_id, or nil when no such
internal/store/workspaces.go:507
↓ 5 callers
Method
GetMemberCollectionAccessQ
GetMemberCollectionAccessQ is GetMemberCollectionAccess parameterized over its executor (see Queryer).
internal/store/workspace_members.go:793
↓ 5 callers
Method
GetParentMap
GetParentMap returns a map of item ID -> parent item ID for all parent links in a workspace. Used for efficient batch lookups (e.g., dashboard, list e
internal/store/items.go:5091
↓ 5 callers
Method
GetShareLink
GetShareLink retrieves a share link by ID.
internal/store/share_links.go:118
↓ 5 callers
Method
GetWatchByUserItem
GetWatchByUserItem returns the (at most one) watch a user holds on a specific item, or (nil, nil) if none exists.
internal/store/watches.go:33
↓ 5 callers
Method
GetWebhook
GetWebhook retrieves a single webhook by ID.
internal/store/webhooks.go:72
↓ 5 callers
Method
GetWorkspace
(slug string)
internal/cli/client.go:242
↓ 5 callers
Method
GetWorkspaceGroup
(ctx context.Context, userID, id string)
internal/store/workspace_groups.go:84
↓ 5 callers
Method
GetWorkspaceImportStatus
GetWorkspaceImportStatus answers the workspace's import marker, or nil when it has none (the normal case).
internal/store/workspace_import_status.go:36
↓ 5 callers
Function
HTTPStatus
HTTPStatus is the HTTP status a request error carries, or 0 when the request got no answer at all (the server was unreachable) or the error did not co
internal/cli/client.go:3970
↓ 5 callers
Method
HasElectablePatchApplier
HasElectablePatchApplier is HasElectableApplier for a patch (PLAN-3578 step 2): is a patch-capable conn electable right now. A point-in-time hint, lik
internal/collab/applier.go:616
↓ 5 callers
Function
HasRefPlaceholder
HasRefPlaceholder reports whether a body carries a {{ref:}} placeholder. Such a seed's stored body depends on the workspace it lands in, so it can nev
internal/collections/template_refs.go:22
↓ 5 callers
Method
InstallClientIDTx
InstallClientIDTx returns the install's client id.
internal/store/install_clients.go:239
↓ 5 callers
Method
ItemLastRestoreSeq
ItemLastRestoreSeq returns the DURABLE per-item restore boundary (items.last_restore_seq) — the item.seq of the most recent version restore (BUG-2264)
internal/collab/room.go:358
↓ 5 callers
Method
Iterator
Iterator returns an iterator for rrule.Set
internal/schedule/internal/rrule/rruleset.go:134
↓ 5 callers
Function
Judge
Judge sets State on every row, and PossiblyStale where a linked PR merged after the row was recorded. rows may be any subset of one item's history; "s
internal/verification/verification.go:113
↓ 5 callers
Method
ListAgendaWork
ListAgendaWork applies visibility and recipient admission before the scan cap. listNoDate admits unscheduled work collections for a personal listing.
internal/store/agenda_roles.go:398
↓ 5 callers
Method
ListAllItemsReport
ListAllItemsReport is ListAllItems from startOffset, also returning the first page's UndeclaredKeys (BUG-4024).
internal/cli/client.go:465
↓ 5 callers
Method
ListItemVersionsResolvedSnapshot
ListItemVersionsResolvedSnapshot reads the item's body and its newest `limit` versions (limit <= 0: all) in one read snapshot, and resolves the versio
internal/store/items.go:6888
↓ 5 callers
Method
ListSchedulesForCalendar
ListSchedulesForCalendar is ListSchedulesForAgenda for the calendar, which also shows what happened on a finished item. An open item qualifies exactly
internal/store/schedule_agenda.go:62
↓ 5 callers
Method
ListStarredItems
ListStarredItems returns all items starred by a user in a workspace, enriched with collection and assignment info. Only non-deleted items are returned
internal/store/item_stars.go:96
↓ 5 callers
Method
ListUserAppGrants
ListUserAppGrants returns the user's live delegated app grants: a binding of kind delegated whose grant still has an active access or refresh token he
internal/store/app_grants.go:36
↓ 5 callers
Method
ListWorkspaceMembers
--- Workspace Members --- ListWorkspaceMembers returns all members of a workspace.
internal/cli/client.go:1936
↓ 5 callers
Method
LiveCollectionIDs
ListTraitedCollections returns every live collection in the workspace paired with its parsed kernel traits (SPEC-5). This is the lookup that replaced
internal/store/collections.go:417
↓ 5 callers
Method
MCPBearerAuth
MCPBearerAuth is the auth gate for the /mcp Streamable HTTP endpoint. Behaviour, in order: 1. No Authorization header, or one that doesn't start wit
internal/server/middleware_mcp_auth.go:79
↓ 5 callers
Function
MetricsMiddleware
MetricsMiddleware returns a chi middleware that records Prometheus metrics for every HTTP request: count, duration, and response size. Path labels us
internal/server/middleware_metrics.go:19
↓ 5 callers
Function
MigrateCloseStateChange
MigrateCloseStateChange reports whether moving an item from the source collection to the destination would change its CloseState, given the destinatio
internal/models/close_state.go:71
↓ 5 callers
Method
MigrateItemFieldValues
MigrateItemFieldValues bulk-updates items in a collection when select options are renamed. Each entry in renames maps old_value → new_value for the gi
internal/store/collections.go:1021
↓ 5 callers
Function
MigratedTables
MigratedTables names the tables `pad db migrate-to-pg` actually copies. The migration is application-level: it walks workspaces and runs ExportWorksp
internal/store/nulmigrated.go:28
↓ 5 callers
Method
MinGap
MinGap measures a schedule at its write (TASK-4236). n is how many occurrences the sample from Start found: gapSample, or more when an RDATE lies past
internal/schedule/engine.go:471
↓ 5 callers
Function
MkdirTemp
MkdirTemp makes os.TempDir()/prefix<pid>-<random> after a sweep of earlier prefix directories whose owner is gone, and holds its owner.lock for the li
internal/testtmp/testtmp.go:47
↓ 5 callers
Function
NewEventsObserver
NewEventsObserver returns an observer writing into m.
internal/metrics/events_observer.go:19
↓ 5 callers
Function
NewHTTPResourceFetcher
NewHTTPResourceFetcher builds a fetcher backed by an already-configured tool dispatcher (its Handler + UserResolver + auth perimeter are reused).
internal/mcp/resources_http.go:56
↓ 5 callers
Function
NewMessage
NewMessage builds the message for one device: the fixed title and body for kind, and Data{nid, cid, kind, count}. id is the batch-local message id.
internal/notify/body.go:71
↓ 5 callers
Function
NewRRule
NewRRule construct a new RRule instance
internal/schedule/internal/rrule/rrule.go:151
↓ 5 callers
Function
NewRedisBusWithKeys
NewRedisBusWithKeys is NewRedisBusWithReplaySize with an explicit key namespace (BUG-2724). cmd/pad/cmd_server.go uses this one, passing the value sha
internal/watchevents/redis_bus.go:468
↓ 5 callers
Function
NewRedisHealth
NewRedisHealth builds a prober for client. onProbe may be nil.
internal/server/redis_health.go:118
↓ 5 callers
Function
NewRedisSessionPresenceWithKeys
NewRedisSessionPresenceWithKeys is NewRedisSessionPresence with an explicit key namespace (BUG-2724). cmd/pad/cmd_server.go uses this one, passing the
internal/server/session_presence_redis.go:434
↓ 5 callers
Function
NewRedisTransport
NewRedisTransport returns a transport on keys' access_kicks channel. It uses its OWN client, cloned from client's options with context timeouts enable
internal/accesskick/accesskick.go:57
↓ 5 callers
Function
NewSupervisor
NewSupervisor builds a Supervisor. It starts no process: the first job does.
internal/materialize/supervisor.go:189
↓ 5 callers
Function
NormalizeAgentName
NormalizeAgentName is the one stored form of a self-declared agent name, shared by write attribution, presence (TASK-4040), chat key validation (TASK-
internal/models/agent_name.go:13
↓ 5 callers
Function
NormalizeFilenameWithSource
NormalizeFilenameWithSource is NormalizeFilename that also reports which of its branches decided the result, so the door that stores the name can reco
internal/attachments/filename.go:119
↓ 5 callers
Method
NowRFC3339
NowRFC3339 returns the SQL expression for current UTC time in RFC3339 format. SQLite: strftime('%Y-%m-%dT%H:%M:%SZ', 'now') PostgreSQL: TO_CHAR(NOW()
internal/store/dialect.go:73
↓ 5 callers
Method
OctetLength
OctetLength returns SQL for the BYTE length of a text-ish column, as the driver will hand it to Scan. The distinction matters here rather than being
internal/store/dialect.go:94
↓ 5 callers
Function
OnboardPlaybook
OnboardPlaybook returns the library entry for the canonical `/pad onboard` playbook. PLAN-1496 / TASK-1499. Title is "Onboard a workspace" — verb-obj
internal/collections/playbook_library_onboard.go:338
↓ 5 callers
Function
OnboardSeedPlaybook
OnboardSeedPlaybook returns the onboard playbook as a SeedPlaybook ready for SeedCollectionsFromTemplate to insert into a new workspace at init time.
internal/collections/playbook_library_onboard.go:314
↓ 5 callers
Method
PlanAttachmentCopy
PlanAttachmentCopy plans the attachment side of a cross-workspace item copy. It writes nothing. DR-11a, restated because it is the whole point of the
internal/store/attachments_copy_plan.go:373
↓ 5 callers
Method
Prepare
Prepare delegates to PrepareContext so there is ONE wrapping site. A mutation showed the separate body was unreachable: database/sql routes to Prepare
internal/store/nulguard.go:433
↓ 5 callers
Method
PreviewScheduleCarryFor
PreviewScheduleCarryFor is PreviewScheduleCarry for a reader who may see only some selected children (canRead nil: all) and link ends or gate blockers
internal/store/schedule_carry_copy.go:448
↓ 5 callers
Function
PrintRawJSON
PrintRawJSON writes a server response verbatim except for indentation. json.Indent is a LEXICAL transform: it does not decode, so key order, numeric
internal/cli/client_items_copy.go:568
↓ 5 callers
Function
PriorityColor
PriorityColor returns a *color.Color appropriate for the given priority string.
internal/cli/format.go:50
↓ 5 callers
Function
ProjectRewrittenLen
ProjectRewrittenLen returns the byte length RewriteBracketsAt WOULD produce for the same arguments, and how many rewrites it would apply, without buil
internal/links/links.go:393
↓ 5 callers
Method
PushItemKeyed
PushItemKeyed is PushItem with an idempotency key (TASK-3585). With a key it retries once with that key after a transport error or a 5xx, and only aga
internal/cli/client.go:909
↓ 5 callers
Method
PutNotificationSettings
PutNotificationSettings replaces userID's settings wholesale: a field left false is stored false, so a client that turns one off and sends the rest un
internal/store/notification_settings.go:33
↓ 5 callers
Method
Read
(p []byte)
internal/cli/client_import.go:38
↓ 5 callers
Method
Read
(p []byte)
internal/server/handlers_import_bundle.go:88
↓ 5 callers
Method
Read
(_ []byte)
cmd/pad/templates_picker_test.go:14
↓ 5 callers
Method
ReadCursor
ReadCursor returns when userID last marked workspaceID caught up (TASK-3615). found is false when the user never has: the catch-up window then falls b
internal/store/read_cursors.go:13
↓ 5 callers
Method
ReadScheduleSnoozedUntil
ReadScheduleSnoozedUntil is for reads without occurrence history already in hand. Agenda expansion calls ScheduleSnoozedUntil with its loaded rows ins
internal/store/schedule_snooze.go:59
↓ 5 callers
Method
RedeemContextCode
RedeemContextCode consumes code for installID, whose token carries epoch, and returns the item it names if, under the §6 locks, everything the code wa
internal/store/app_item_actions.go:366
↓ 5 callers
Function
ReservedFieldKeysIn
ReservedFieldKeysIn returns the keys of a caller-supplied field map that name system metadata, sorted. Two kinds of map consult it, for the same reas
internal/items/overrides.go:94
↓ 5 callers
Method
ResolveBacklinksVisibility
ResolveBacklinksVisibility computes the (fullCollectionIDs, grantedItemIDs) access vectors for `userID` in `workspaceID`, REQUEST-INDEPENDENT. Mirrors
internal/store/backlinks_visibility.go:61
↓ 5 callers
Function
ResolveWorkerID
ResolveWorkerID decides what goes in the X-Pad-Worker header (TASK-3613): the opaque id this session holds item leases under, so two sessions that sha
internal/cli/session_worker.go:26
↓ 5 callers
Method
RestoreCollection
RestoreCollection un-archives this workspace's archived collection id. sql.ErrNoRows when it is not one (already restored by a racing call, or never a
internal/store/collections_archive.go:62
↓ 5 callers
Method
Retryable
Retryable reports whether any endpoint's failure is worth another drain pass. It is the ack decision, stated once here rather than re-derived by every
internal/webhooks/dispatcher.go:215
↓ 5 callers
Method
RevokeAccessTokenFamily
RevokeAccessTokenFamily mirrors RevokeRefreshTokenFamily for access tokens. fosite calls these in pairs when revoking by request_id (the unified Revok
internal/store/oauth.go:627
↓ 5 callers
Method
RunStdio
RunStdio is Run with explicit stdin / stdout streams. Used by tests that drive the server in-process via io.Pipe. The same shutdown semantics as Run
internal/mcp/server.go:133
↓ 5 callers
Method
Scan
(dest ...any)
internal/store/push_dispatch.go:66
↓ 5 callers
Function
Score
Score builds a Score question over an ORDERED scale, lowest level first. At least two levels are required.
internal/decision/decision.go:83
↓ 5 callers
Method
SetAllowedWorkspaces
SetAllowedWorkspaces is the symmetric writer used by oauth/authorize/decide (TASK-952). Centralizing the key string here keeps producers + consumers i
internal/oauth/session.go:138
↓ 5 callers
Method
SetEndpoint
SetEndpoint overrides the Maileroo API endpoint. Intended for tests that stand up an httptest server mimicking Maileroo's v2 API — production callers
internal/email/sender.go:75
↓ 5 callers
Method
SetLinkClockForTesting
SetLinkClockForTesting sets the clock the linked-change time budget reads. Production code must not call this. Set it only with no request in flight.
internal/store/testing_helpers.go:364
↓ 5 callers
Method
SetMCPSessionTrackerConfig
SetMCPSessionTrackerConfig stashes ttl + sweep-interval overrides for both trackers before they are started. Either may be 0 to keep the package defau
internal/server/middleware_mcp_session.go:277
↓ 5 callers
Method
SetMCPWriteCallClassifier
SetMCPWriteCallClassifier tells the /mcp mount which tool calls need a write scope (TASK-2308). cmd/pad wires the catalog's own read-only knowledge; n
internal/server/middleware_mcp_scope.go:20
↓ 5 callers
Method
SetParentLinkAs
SetParentLinkAs is SetParentLink recording the account that wrote the link in item_links.user_id (BUG-3372). Request paths use it; "" names no account
internal/store/items.go:4641
↓ 5 callers
Method
SetPushGateway
SetPushGateway sets the push gateway URL (PAD_PUSH_GATEWAY_URL). Empty means this server offers no push. Called once at startup, before the server acc
internal/server/handlers_push_devices.go:35
↓ 5 callers
Method
SetScopeFlags
SetScopeFlags updates the three boolean scope flags atomically. All three values are written every call — there's no PATCH semantic at the store layer
internal/store/oauth_connections.go:279
↓ 5 callers
Method
SetTrustedProxies
SetTrustedProxies configures which direct TCP peers are allowed to set X-Real-IP / X-Forwarded-For on incoming requests. Accepts a comma- separated li
internal/server/server.go:1674
↓ 5 callers
Method
SetWebhookDispatcher
SetWebhookDispatcher attaches a webhook dispatcher for outgoing notifications. Delivery goroutines are routed through s.goAsync so they're tracked on
internal/server/server.go:1335
↓ 5 callers
Method
SetWorkerID
SetWorkerID makes this client send id as X-Pad-Worker instead of the one ResolveWorkerID would pick: the `--worker-id` flag, which is also how a local
internal/cli/session_worker.go:110
↓ 5 callers
Function
ShortWorkerID
ShortWorkerID is the display form ("wk_3f2a"): enough to tell two holders apart in a conflict message or an item's detail, never the full id, which is
internal/models/lease_worker.go:34
↓ 5 callers
Function
ShorthandNames
ShorthandNames lists the shorthand names, sorted, for help text.
internal/schedule/shorthand.go:27
↓ 5 callers
Method
StartMaterializeRecovery
StartMaterializeRecovery starts the op-log recovery worker and its two triggers. A no-op without a Materializer (SetMaterializer) or without a collab
internal/server/materialize_recovery.go:194
↓ 5 callers
Method
State
State builds the item's current state, as a set without links sees it.
internal/decision/runner.go:483
↓ 5 callers
Function
StillDropped
StillDropped filters a MigrateResult.Dropped list down to the keys that are genuinely absent from the FINAL field map. Dropped is computed during mig
internal/items/migrate.go:235
↓ 5 callers
Method
String
()
internal/store/occurrence_role_history_test.go:25
↓ 5 callers
Function
StripFrontmatter
StripFrontmatter removes YAML frontmatter (between --- delimiters) from content.
internal/cli/agents.go:249
← previous
next →
3,201–3,300 of 31,685, ranked by callers