Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PerpetualSoftware/pad
/ functions
Functions
31,743 in github.com/PerpetualSoftware/pad
⨍
Functions
31,743
◇
Types & classes
3,534
↓ 10,559 callers
Method
Fatalf
(format string, args ...any)
internal/store/storetest/writecapture_test.go:171
↓ 5,323 callers
Method
Fatal
(args ...any)
internal/store/storetest/writecapture_test.go:176
↓ 3,063 callers
Method
Helper
()
internal/store/storetest/pgtrace_test.go:16
↓ 2,632 callers
Method
String
()
internal/server/token_reaper_test.go:27
↓ 2,324 callers
Function
append
(char: string)
web/src/lib/attachments/csv.ts:38
↓ 1,772 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,577 callers
Method
q
q rebinds a query to the store's dialect (converts "?" to "$1", "$2", etc. for PostgreSQL).
internal/store/store.go:1636
↓ 1,512 callers
Function
make
(field: object, status: string)
web/src/lib/calendar/monthGrid.test.ts:67
↓ 1,426 callers
Method
Scan
(dest ...interface{})
internal/store/api_tokens.go:440
↓ 1,368 callers
Function
testServer
(t *testing.T)
internal/server/server_test.go:20
↓ 1,355 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:24
↓ 1,304 callers
Method
Exec
(query string, args ...any)
internal/store/store.go:996
↓ 1,300 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,204 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
↓ 1,188 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:327
↓ 1,057 callers
Method
QueryRow
(query string, args ...any)
internal/store/items.go:4840
↓ 1,039 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:441
↓ 970 callers
Method
Is
Is makes errors.Is(err, ErrCapHit) true for any *CapError.
internal/schedule/caps.go:97
↓ 836 callers
Function
doRequest
(srv *Server, method, path string, body interface{})
internal/server/server_test.go:41
↓ 790 callers
Method
Set
Set replaces the session workspace. Pass an empty string to clear.
internal/mcp/workspace.go:79
↓ 775 callers
Function
describe
(n: Node)
web/src/lib/components/items/childIdentityFencePopulation.test.ts:774
↓ 771 callers
Function
createTestWorkspace
(t *testing.T, s *Store, name string)
internal/store/store_test.go:384
↓ 730 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
↓ 730 callers
Method
Unlock
()
internal/attachments/inflight.go:58
↓ 725 callers
Function
parseJSON
(t *testing.T, rr *httptest.ResponseRecorder, v interface{})
internal/server/server_test.go:65
↓ 622 callers
Method
DB
DB returns the underlying *sql.DB (for use in migrations/testing).
internal/store/store.go:403
↓ 620 callers
Method
CreateItem
(workspaceID, collectionID string, input models.ItemCreate, opts ...store.MintOption)
internal/appstore/testdata/ifacedecl/x.go:11
↓ 607 callers
Method
Format
Format writes Redacted for every verb.
internal/secret/secret.go:68
↓ 605 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
↓ 604 callers
Method
push
(target string, opts *http.PushOptions)
internal/server/flush_error_writer.go:88
↓ 584 callers
Function
createTestItem
(t *testing.T, s *Store, workspaceID, collectionID, title, content string)
internal/store/items_test.go:27
↓ 575 callers
Method
Query
(query string, args ...any)
internal/store/items.go:5914
↓ 550 callers
Method
Error
()
internal/server/handlers_collab.go:531
↓ 547 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
↓ 534 callers
Method
fn
(name string)
internal/materialize/materialize.go:283
↓ 528 callers
Function
createTestCollection
--- Collection helpers ---
internal/store/items_test.go:15
↓ 524 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
↓ 481 callers
Method
CreateUser
CreateUser creates a new user with a hashed password.
internal/store/users.go:171
↓ 476 callers
Method
get
( url: string, options?: { headers?: Record<string, string> } )
web/e2e/workspace-bundle-roundtrip.spec.ts:67
↓ 463 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
↓ 446 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
↓ 441 callers
Method
ServeHTTP
(w http.ResponseWriter, r *http.Request)
internal/server/server.go:2918
↓ 428 callers
Method
Header
()
internal/server/app_api.go:583
↓ 422 callers
Function
writeError
(w http.ResponseWriter, status int, code, message string)
internal/server/server.go:3079
↓ 407 callers
Method
Rollback
Rollback abandons the fenced transaction. It is safe to defer after a successful Commit.
internal/store/fenced_tx.go:146
↓ 402 callers
Function
doRequestWithCookie
doRequestWithCookie is like doRequest but adds a session cookie.
internal/server/handlers_auth_test.go:638
↓ 395 callers
Method
Error
()
internal/store/limits.go:252
↓ 389 callers
Method
GetItem
(id string)
internal/store/items.go:755
↓ 388 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:3142
↓ 382 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:102
↓ 381 callers
Function
newSchedFixture
(t *testing.T)
internal/store/schedules_test.go:25
↓ 372 callers
Method
resolve
(t *testing.T, item *models.Item, in ResolveInput, now string)
internal/store/schedule_resolve_test.go:67
↓ 354 callers
Method
CreateCollection
(workspaceID string, input models.CollectionCreate)
internal/store/collections.go:41
↓ 352 callers
Method
UpdateItem
(id string, input models.ItemUpdate, opts ...MutationOption)
internal/store/items.go:2308
↓ 350 callers
Method
Begin
()
internal/store/nultriggers_test.go:558
↓ 342 callers
Method
ok
(t *testing.T, u *models.User, query string)
internal/server/handlers_agenda_test.go:85
↓ 339 callers
Method
Err
()
internal/store/version_tie_diagnostic_test.go:187
↓ 323 callers
Function
writeJSON
(w http.ResponseWriter, status int, v interface{})
internal/server/server.go:3027
↓ 322 callers
Method
Driver
Driver returns the driver type.
internal/store/dialect.go:21
↓ 321 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
↓ 311 callers
Function
now
()
internal/store/store.go:1644
↓ 309 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
↓ 308 callers
Method
Commit
Commit commits the fenced transaction.
internal/store/fenced_tx.go:136
↓ 308 callers
Method
Equal
Equal compares the secret with given in time that depends only on their lengths (subtle.ConstantTimeCompare): the length is not treated as secret.
internal/secret/secret.go:57
↓ 306 callers
Method
exec
(t *testing.T, q string, args ...any)
internal/store/schedules_test.go:85
↓ 298 callers
Method
find
find returns the records containing every one of subs. Each record is matched with a trailing space, so a sub ending in a space (pidAttr) matches an a
internal/materialize/supervisor_test.go:219
↓ 295 callers
Method
WriteHeader
(code int)
internal/server/app_api.go:585
↓ 286 callers
Method
text
(n: Node)
web/src/test/identityFenceAst.ts:342
↓ 273 callers
Function
close
()
web/src/lib/collab/patchApply.ts:210
↓ 269 callers
Function
rt
(s string)
internal/store/schedule_resolve_test.go:31
↓ 261 callers
Function
bootstrapFirstUser
(t *testing.T, srv *Server, email, name string)
internal/server/handlers_auth_test.go:20
↓ 256 callers
Method
Error
()
cmd/pad/cmd_token.go:430
↓ 252 callers
Function
createTestUser
(t *testing.T, s *Store, email, name, password string)
internal/store/users_test.go:12
↓ 251 callers
Function
newID
()
internal/store/store.go:1640
↓ 248 callers
Method
count
(t *testing.T, q string, args ...any)
internal/store/schedules_test.go:92
↓ 245 callers
Method
String
()
cmd/pad/bug3476_import_watch_test.go:43
↓ 237 callers
Method
post
( url: string, options: { headers?: Record<string, string>; data?: unknown; multipart?: unknown } )
web/e2e/workspace-bundle-roundtrip.spec.ts:63
↓ 233 callers
Function
cancel
()
web/src/lib/chat/longPress.ts:16
↓ 232 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:3845
↓ 227 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:190
↓ 226 callers
Method
test
(n: Node, s: boolean)
web/src/test/identityFenceAst.ts:1128
↓ 222 callers
Method
evaluate
(t *testing.T)
internal/decision/runner_test.go:87
↓ 221 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
↓ 219 callers
Function
cleanup
()
web/e2e/bug-3204-cursor-snapback.spec.ts:46
↓ 212 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
↓ 211 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
↓ 206 callers
Method
skip
(i int)
internal/store/commitment_cancel_pg_test.go:22
↓ 202 callers
Method
Done
()
internal/server/bug3632_account_export_read_ctx_test.go:94
↓ 196 callers
Method
join
(t *testing.T, us ...*models.User)
internal/store/notification_settings_test.go:49
↓ 194 callers
Method
Before
Before reports whether w is an earlier reading than o, in wall order. An all-day Wall reads as 00:00 of its date. Wall order is not instant order: acr
internal/schedule/wall.go:75
↓ 193 callers
Method
GetUser
GetUser retrieves a user by ID.
internal/store/users.go:210
↓ 191 callers
Function
newLinkFix
(t *testing.T, n int)
internal/store/commitment_links_test.go:21
↓ 190 callers
Function
createItem
helper: create an item in a collection and return the parsed Item
internal/server/handlers_dashboard_test.go:13
↓ 183 callers
Method
GetWorkspaceBySlug
(slug string)
internal/store/workspaces.go:272
↓ 182 callers
Function
render
(md: string)
web/src/lib/components/share/shareRender.svelte.test.ts:12
↓ 179 callers
Method
has
(sub string)
internal/collab/task3574_append_failure_test.go:98
↓ 178 callers
Method
delete
(path string)
internal/cli/client.go:3724
↓ 177 callers
Function
browserLogin
(page: Page)
web/e2e/lib/collab-helpers.ts:18
↓ 176 callers
Method
item
item creates an open item; assignee may be nil. created pins created_at.
internal/server/handlers_me_needs_test.go:91
↓ 175 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
next →
1–100 of 31,743, ranked by callers