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
↓ 9,375 callers
Method
Fatalf
(format string, args ...any)
internal/store/storetest/writecapture_test.go:171
↓ 4,635 callers
Method
Fatal
(args ...any)
internal/store/storetest/writecapture_test.go:176
↓ 2,696 callers
Method
Helper
()
internal/store/storetest/pgtrace_test.go:16
↓ 2,312 callers
Method
String
()
internal/server/token_reaper_test.go:27
↓ 2,119 callers
Function
append
(char: string)
web/src/lib/attachments/csv.ts:38
↓ 1,551 callers
Method
Run
Run starts the stdio transport on os.Stdin / os.Stdout. It blocks until ctx is cancelled, stdin reaches EOF, or SIGINT / SIGTERM is received. EOF and
internal/mcp/server.go:123
↓ 1,423 callers
Method
q
q rebinds a query to the store's dialect (converts "?" to "$1", "$2", etc. for PostgreSQL).
internal/store/store.go:1573
↓ 1,399 callers
Function
make
(field: object, status: string)
web/src/lib/calendar/monthGrid.test.ts:67
↓ 1,254 callers
Method
Scan
(dest ...interface{})
internal/store/api_tokens.go:432
↓ 1,233 callers
Function
testServer
(t *testing.T)
internal/server/server_test.go:20
↓ 1,214 callers
Function
testStore
testStore creates a Store for testing. When PAD_TEST_POSTGRES_URL is set, it creates an isolated PostgreSQL database; otherwise it falls back to a fas
internal/store/store_test.go:23
↓ 1,170 callers
Method
Exec
(query string, args ...any)
internal/store/store.go:966
↓ 1,155 callers
Method
Close
Close shuts down the bus and closes every active subscriber channel. After Close, Subscribe / Publish are undefined; callers must not invoke them.
internal/collab/bus.go:137
↓ 1,039 callers
Method
Add
Add registers a newly-opened stream for userID and returns the session's generated id, which the caller MUST pass to Remove. The identity is whatever
internal/server/session_presence.go:321
↓ 1,036 callers
Method
Now
Now returns the SQL expression for the current UTC timestamp. SQLite: datetime('now') PostgreSQL: NOW() AT TIME ZONE 'UTC'
internal/store/dialect.go:68
↓ 927 callers
Method
QueryRow
(query string, args ...any)
internal/store/items.go:4780
↓ 905 callers
Method
Join
Join attaches a freshly-upgraded WebSocket connection to the room for itemID. Replays the op-log to the new peer, spins up an inbound reader and an ou
internal/collab/manager.go:397
↓ 881 callers
Method
Is
Is makes errors.Is(err, ErrCapHit) true for any *CapError.
internal/schedule/caps.go:97
↓ 782 callers
Function
doRequest
(srv *Server, method, path string, body interface{})
internal/server/server_test.go:41
↓ 731 callers
Function
describe
(n: Node)
web/src/lib/components/items/childIdentityFencePopulation.test.ts:772
↓ 711 callers
Function
createTestWorkspace
(t *testing.T, s *Store, name string)
internal/store/store_test.go:383
↓ 674 callers
Method
Lock
Lock and Unlock expose the mutex to a caller that must hold it across its own check-and-act: the orphan GC and workspace purge keep it held from readi
internal/attachments/inflight.go:57
↓ 674 callers
Method
Unlock
()
internal/attachments/inflight.go:58
↓ 671 callers
Method
Set
Set replaces the session workspace. Pass an empty string to clear.
internal/mcp/workspace.go:79
↓ 635 callers
Function
parseJSON
(t *testing.T, rr *httptest.ResponseRecorder, v interface{})
internal/server/server_test.go:65
↓ 571 callers
Method
push
(target string, opts *http.PushOptions)
internal/server/flush_error_writer.go:88
↓ 554 callers
Function
createTestItem
(t *testing.T, s *Store, workspaceID, collectionID, title, content string)
internal/store/items_test.go:27
↓ 542 callers
Method
DB
DB returns the underlying *sql.DB (for use in migrations/testing).
internal/store/store.go:395
↓ 527 callers
Method
Get
Get returns a ReadCloser positioned at the start of the blob. Callers MUST close the returned reader. If key is unknown to this store, the returned er
internal/attachments/store.go:46
↓ 521 callers
Method
After
After returns the first recurrence after the given datetime instance, or time.Time's zero value if no recurrence match. The inc keyword defines what h
internal/schedule/internal/rrule/rrule.go:978
↓ 519 callers
Method
Error
()
internal/server/handlers_collab.go:535
↓ 515 callers
Method
CreateItem
(workspaceID, collectionID string, input models.ItemCreate, opts ...store.MintOption)
internal/appstore/testdata/ifacedecl/x.go:11
↓ 515 callers
Method
Query
(query string, args ...any)
internal/store/items.go:5808
↓ 496 callers
Function
createTestCollection
--- Collection helpers ---
internal/store/items_test.go:15
↓ 483 callers
Method
fn
(name string)
internal/materialize/materialize.go:283
↓ 449 callers
Function
createWSWithCollections
createWSWithCollections creates a workspace and returns its slug. The workspace will have default collections seeded automatically.
internal/server/handlers_items_test.go:40
↓ 444 callers
Method
AddWorkspaceMember
AddWorkspaceMember adds a user to a workspace with the given role. Transactional as of TASK-2658 — it was a bare Exec before. The membership row and
internal/store/workspace_members.go:37
↓ 438 callers
Method
CreateUser
CreateUser creates a new user with a hashed password.
internal/store/users.go:124
↓ 436 callers
Method
get
( url: string, options?: { headers?: Record<string, string> } )
web/e2e/workspace-bundle-roundtrip.spec.ts:67
↓ 413 callers
Method
ServeHTTP
(w http.ResponseWriter, r *http.Request)
internal/server/server.go:2825
↓ 402 callers
Method
Next
Next returns the next token. For a String, which is either a value or an object member's name, str is its DECODED text (unless Raw is set) and is vali
internal/jsonscan/jsonscan.go:84
↓ 391 callers
Function
writeError
(w http.ResponseWriter, status int, code, message string)
internal/server/server.go:2986
↓ 387 callers
Method
Rollback
Rollback abandons the fenced transaction. It is safe to defer after a successful Commit.
internal/store/fenced_tx.go:146
↓ 370 callers
Method
Error
()
internal/store/limits.go:239
↓ 365 callers
Function
writeInternalError
writeInternalError logs the real error server-side and sends a generic message to the client. This prevents leaking SQL errors, file paths, and other
internal/server/server.go:3049
↓ 359 callers
Method
Header
()
internal/server/app_api.go:578
↓ 351 callers
Function
doRequestWithCookie
doRequestWithCookie is like doRequest but adds a session cookie.
internal/server/handlers_auth_test.go:638
↓ 341 callers
Function
newSchedFixture
(t *testing.T)
internal/store/schedules_test.go:25
↓ 338 callers
Method
resolve
(t *testing.T, item *models.Item, in ResolveInput, now string)
internal/store/schedule_resolve_test.go:53
↓ 334 callers
Method
Begin
()
internal/store/nultriggers_test.go:558
↓ 328 callers
Method
ok
(t *testing.T, u *models.User, query string)
internal/server/handlers_agenda_test.go:85
↓ 325 callers
Method
CreateWorkspace
CreateWorkspace mints a workspace against the pool. Callers already inside a transaction want createWorkspaceQ instead. With WithPlanLimit() the mint
internal/store/workspaces.go:100
↓ 313 callers
Method
GetItem
(id string)
internal/store/items.go:749
↓ 313 callers
Method
UpdateItem
(id string, input models.ItemUpdate, opts ...MutationOption)
internal/store/items.go:2302
↓ 308 callers
Method
now
now reads the bus's clock. The seam is nil in production; tests set it so a 90s threshold can be crossed without sleeping through one.
internal/watchevents/heartbeat.go:125
↓ 304 callers
Function
writeJSON
(w http.ResponseWriter, status int, v interface{})
internal/server/server.go:2934
↓ 303 callers
Method
Err
()
internal/store/version_tie_diagnostic_test.go:187
↓ 301 callers
Method
CreateCollection
(workspaceID string, input models.CollectionCreate)
internal/store/collections.go:40
↓ 291 callers
Method
Driver
Driver returns the driver type.
internal/store/dialect.go:21
↓ 286 callers
Method
Commit
Commit commits the fenced transaction.
internal/store/fenced_tx.go:136
↓ 277 callers
Method
text
(n: Node)
web/src/test/identityFenceAst.ts:342
↓ 275 callers
Function
now
()
internal/store/store.go:1581
↓ 274 callers
Method
Encode
Encode writes img to w in the given format ("png" / "jpeg"). JPEG is encoded at quality 85 — small enough for thumbnails, high enough that pixel-level
internal/attachments/processor.go:62
↓ 270 callers
Method
exec
(t *testing.T, q string, args ...any)
internal/store/schedules_test.go:85
↓ 270 callers
Method
find
find returns the records containing every one of subs.
internal/materialize/supervisor_test.go:217
↓ 264 callers
Method
WriteHeader
(code int)
internal/server/app_api.go:580
↓ 258 callers
Function
close
()
web/src/lib/collab/patchApply.ts:210
↓ 232 callers
Function
bootstrapFirstUser
(t *testing.T, srv *Server, email, name string)
internal/server/handlers_auth_test.go:20
↓ 232 callers
Method
count
(t *testing.T, q string, args ...any)
internal/store/schedules_test.go:92
↓ 228 callers
Method
post
( url: string, options: { headers?: Record<string, string>; data?: unknown; multipart?: unknown } )
web/e2e/workspace-bundle-roundtrip.spec.ts:63
↓ 224 callers
Function
newID
()
internal/store/store.go:1577
↓ 219 callers
Function
createTestUser
(t *testing.T, s *Store, email, name, password string)
internal/store/users_test.go:12
↓ 218 callers
Function
cancel
()
web/src/lib/chat/longPress.ts:16
↓ 217 callers
Method
test
(n: Node, s: boolean)
web/src/test/identityFenceAst.ts:1128
↓ 214 callers
Method
evaluate
(t *testing.T)
internal/decision/runner_test.go:87
↓ 213 callers
Function
rt
TASK-4103 C2b: resolving the outstanding occurrence. Runs on SQLite in make test and on Postgres in make test-pg.
internal/store/schedule_resolve_test.go:17
↓ 206 callers
Method
Error
()
cmd/pad/cmd_schedule_end.go:47
↓ 205 callers
Method
String
()
cmd/pad/bug3476_import_watch_test.go:43
↓ 204 callers
Function
cleanup
()
web/e2e/bug-3204-cursor-snapback.spec.ts:46
↓ 202 callers
Function
delete
* Soft-delete an attachment by ID. The blob on disk stays put * (content-addressed dedupe means the same hash may still be * referenced) — orpha
web/src/lib/api/client.ts:3674
↓ 200 callers
Method
skip
(i int)
internal/store/commitment_cancel_pg_test.go:22
↓ 190 callers
Method
Done
()
internal/server/bug3632_account_export_read_ctx_test.go:94
↓ 187 callers
Method
CreateSession
CreateSession generates a random session token, stores its SHA-256 hash, and returns the plaintext token (prefixed with "padsess_"). The plaintext is
internal/store/sessions.go:67
↓ 187 callers
Method
join
(t *testing.T, us ...*models.User)
internal/store/notification_settings_test.go:49
↓ 184 callers
Method
Before
Before returns the last recurrence before the given datetime instance, or time.Time's zero value if no recurrence match. The inc keyword defines what
internal/schedule/internal/rrule/rrule.go:969
↓ 184 callers
Method
Stat
Stat returns the size in bytes of the blob identified by key. If key is unknown, the returned error wraps ErrNotFound.
internal/attachments/store.go:50
↓ 183 callers
Function
testServerWithAttachments
testServerWithAttachments returns a fresh test server with the attachment registry wired against an FSStore rooted in t.TempDir(), and (on the pure-Go
internal/server/handlers_attachments_test.go:36
↓ 182 callers
Function
createItem
helper: create an item in a collection and return the parsed Item
internal/server/handlers_dashboard_test.go:13
↓ 171 callers
Method
has
(sub string)
internal/collab/task3574_append_failure_test.go:98
↓ 169 callers
Function
browserLogin
(page: Page)
web/e2e/lib/collab-helpers.ts:18
↓ 167 callers
Method
request
* Open the confirmation and resolve when the user answers — the descriptor's * `ctx.confirmDelete`. A no-op that resolves false when the caller may
web/src/lib/attachments/surfaceDeleteConfirm.svelte.ts:54
↓ 164 callers
Method
getWorkspaceID
getWorkspaceID resolves workspace slug/ID from the request. If RequireWorkspaceAccess already resolved the workspace, reads from context. Otherwise fa
internal/server/server.go:3496
↓ 163 callers
Method
delete
(path string)
internal/cli/client.go:3309
↓ 162 callers
Function
render
(md: string)
web/src/lib/components/share/shareRender.svelte.test.ts:12
↓ 161 callers
Method
GetWorkspaceBySlug
(slug string)
internal/store/workspaces.go:270
↓ 161 callers
Method
Printf
(_ context.Context, format string, v ...interface{})
cmd/pad/redis_logger.go:39
↓ 159 callers
Function
WithDispatchInput
WithDispatchInput returns ctx decorated with the original MCP tool- call JSON input map. Called from the registry's tool handler before invoking Dispa
internal/mcp/dispatch.go:55
↓ 158 callers
Method
Rebind
Rebind converts a query with "?" placeholders to the dialect's format. For SQLite this is a no-op. For PostgreSQL, "?" becomes "$1", "$2", etc.
internal/store/dialect.go:29
↓ 158 callers
Function
newLinkFix
(t *testing.T, n int)
internal/store/commitment_links_test.go:21
↓ 157 callers
Method
DeleteItem
(T, ...store.MutationOption)
internal/appstore/testdata/genericifacebody/x.go:8
next →
1–100 of 28,840, ranked by callers