Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bcspragu/logseq-sync
/ functions
Functions
125 in github.com/bcspragu/logseq-sync
⨍
Functions
125
◇
Types & classes
70
↓ 20 callers
Function
NotExists
(name string, id T)
db/db.go:71
↓ 19 callers
Function
Internal
(format string, args ...any)
httperr/httperr.go:45
↓ 8 callers
Function
newError
(statusCode int, format string, args ...any)
httperr/httperr.go:69
↓ 6 callers
Function
NotFound
(format string, args ...any)
httperr/httperr.go:61
↓ 5 callers
Method
ExecContext
(context.Context, string, ...interface{})
db/sqlite/sqlitedb/db.go:13
↓ 5 callers
Function
IsNotExists
(err error)
db/db.go:67
↓ 5 callers
Method
QueryContext
(context.Context, string, ...interface{})
db/sqlite/sqlitedb/db.go:15
↓ 5 callers
Function
convSlice
(in []I, fn func(I) O)
db/sqlite/sqlite.go:83
↓ 4 callers
Function
BadRequest
(format string, args ...any)
httperr/httperr.go:37
↓ 4 callers
Method
Graph
(ctx context.Context, id db.GraphID)
cmd/server/main.go:65
↓ 4 callers
Function
Unauthorized
(format string, args ...any)
httperr/httperr.go:53
↓ 4 callers
Method
getUserID
NOTE: This will only work in handlers that use the toHandleFunc wrapper.
cmd/server/main.go:252
↓ 4 callers
Function
handleError
(w http.ResponseWriter, err error)
cmd/server/main.go:358
↓ 3 callers
Method
QueryRowContext
(context.Context, string, ...interface{})
db/sqlite/sqlitedb/db.go:16
↓ 3 callers
Method
Write
(p []byte)
cmd/server/main.go:55
↓ 2 callers
Method
AddGraphEncryptKey
(ctx context.Context, id db.GraphID, gek *db.GraphEncryptKey)
cmd/server/main.go:73
↓ 2 callers
Method
AllFileMeta
(ctx context.Context, id db.GraphID)
cmd/server/main.go:81
↓ 2 callers
Method
Bucket
()
cmd/server/main.go:85
↓ 2 callers
Method
CreateGraph
(ctx context.Context, name string)
cmd/server/main.go:67
↓ 2 callers
Method
DeleteGraph
(context.Context, db.GraphID)
cmd/server/main.go:68
↓ 2 callers
Method
Error
()
db/db.go:63
↓ 2 callers
Method
GraphEncryptKeys
(ctx context.Context, id db.GraphID)
cmd/server/main.go:74
↓ 2 callers
Method
GraphSalts
(ctx context.Context, id db.GraphID)
cmd/server/main.go:71
↓ 2 callers
Method
Graphs
(ctx context.Context)
cmd/server/main.go:66
↓ 2 callers
Method
SetFileMeta
(ctx context.Context, id db.GraphID, md *db.FileMeta)
cmd/server/main.go:76
↓ 2 callers
Method
SetTx
(ctx context.Context, id db.GraphID, tx db.Tx)
cmd/server/main.go:62
↓ 2 callers
Method
Tx
(ctx context.Context, id db.GraphID)
cmd/server/main.go:63
↓ 2 callers
Method
WriteHeader
(status int)
cmd/server/main.go:50
↓ 1 callers
Method
AddGraphSalt
(ctx context.Context, id db.GraphID, salt *db.GraphSalt)
cmd/server/main.go:70
↓ 1 callers
Function
AlreadyExists
(name, param string)
db/db.go:54
↓ 1 callers
Method
BatchFileMeta
Because the Logseq client can/will request files it hasn't uploaded yet, the map will contain nil entries for requested files that don't exist
cmd/server/main.go:80
↓ 1 callers
Method
BatchFileMetas
(ctx context.Context, arg BatchFileMetasParams)
db/sqlite/sqlitedb/query.sql.go:114
↓ 1 callers
Function
Conflict
(format string, args ...any)
httperr/httperr.go:49
↓ 1 callers
Function
Extract
(err error)
httperr/httperr.go:8
↓ 1 callers
Method
GenerateTempCreds
(ctx context.Context, prefix string)
cmd/server/main.go:86
↓ 1 callers
Function
Gone
(format string, args ...any)
httperr/httperr.go:65
↓ 1 callers
Method
IncrementTx
(ctx context.Context, id db.GraphID)
cmd/server/main.go:61
↓ 1 callers
Function
IsAlreadyExists
(err error)
db/db.go:50
↓ 1 callers
Function
MethodNotAllowed
(format string, args ...any)
httperr/httperr.go:41
↓ 1 callers
Method
Move
(ctx context.Context, srcPath, destPath string)
cmd/server/main.go:87
↓ 1 callers
Function
New
(bkt, region, roleARN string)
blob/awsblob/awsblob.go:26
↓ 1 callers
Function
New
()
db/mem/mem.go:35
↓ 1 callers
Function
New
(dbPath string)
db/sqlite/sqlite.go:23
↓ 1 callers
Function
New
(db DBTX)
db/sqlite/sqlitedb/db.go:19
↓ 1 callers
Method
SignedDownloadURL
(ctx context.Context, key string, dur time.Duration)
cmd/server/main.go:88
↓ 1 callers
Method
WithMessage
(msg string)
httperr/httperr.go:32
↓ 1 callers
Method
parseRequest
(r *http.Request)
cmd/server/main.go:948
↓ 1 callers
Method
respond
(w http.ResponseWriter, r *http.Request)
cmd/server/main.go:952
↓ 1 callers
Function
run
(args []string)
cmd/server/main.go:107
↓ 1 callers
Function
toFileMeta
(fm sqlitedb.FileMeta)
db/sqlite/sqlite.go:217
↓ 1 callers
Function
toGraph
(g sqlitedb.Graph)
db/sqlite/sqlite.go:76
Method
AddGraphEncryptKey
(_ context.Context, id db.GraphID, gek *db.GraphEncryptKey)
db/mem/mem.go:129
Method
AddGraphEncryptKey
(ctx context.Context, gID db.GraphID, gek *db.GraphEncryptKey)
db/sqlite/sqlite.go:149
Method
AddGraphEncryptKey
(ctx context.Context, arg AddGraphEncryptKeyParams)
db/sqlite/sqlitedb/query.sql.go:29
Method
AddGraphSalt
(_ context.Context, id db.GraphID, salt *db.GraphSalt)
db/mem/mem.go:112
Method
AddGraphSalt
(ctx context.Context, gID db.GraphID, salt *db.GraphSalt)
db/sqlite/sqlite.go:119
Method
AddGraphSalt
(ctx context.Context, arg AddGraphSaltParams)
db/sqlite/sqlitedb/query.sql.go:54
Method
AllFileMeta
(_ context.Context, id db.GraphID)
db/mem/mem.go:181
Method
AllFileMeta
(ctx context.Context, id db.GraphID)
db/sqlite/sqlite.go:228
Method
AllFileMeta
(ctx context.Context, graphID string)
db/sqlite/sqlitedb/query.sql.go:70
Method
BatchFileMeta
(_ context.Context, id db.GraphID, fIDs []db.FileID)
db/mem/mem.go:158
Method
BatchFileMeta
Because the Logseq client can/will request files it hasn't uploaded yet, the map will contain nil entries for requested files that don't exist
db/sqlite/sqlite.go:202
Method
Bucket
()
blob/awsblob/awsblob.go:48
Method
CreateGraph
(_ context.Context, name string)
db/mem/mem.go:49
Method
CreateGraph
(ctx context.Context, name string)
db/sqlite/sqlite.go:98
Method
CreateGraph
(ctx context.Context, arg CreateGraphParams)
db/sqlite/sqlitedb/query.sql.go:171
Method
DeleteGraph
(_ context.Context, id db.GraphID)
db/mem/mem.go:41
Method
DeleteGraph
(ctx context.Context, id db.GraphID)
db/sqlite/sqlite.go:110
Method
DeleteGraph
(ctx context.Context, id string)
db/sqlite/sqlitedb/query.sql.go:183
Method
Error
()
httperr/httperr.go:28
Method
Error
()
db/db.go:46
Function
Forbidden
(format string, args ...any)
httperr/httperr.go:57
Method
GenerateTempCreds
(ctx context.Context, prefix string)
blob/awsblob/awsblob.go:95
Method
Graph
(_ context.Context, id db.GraphID)
db/mem/mem.go:104
Method
Graph
(ctx context.Context, id db.GraphID)
db/sqlite/sqlite.go:66
Method
Graph
(ctx context.Context, id string)
db/sqlite/sqlitedb/query.sql.go:194
Method
GraphEncryptKeys
(_ context.Context, id db.GraphID)
db/mem/mem.go:138
Method
GraphEncryptKeys
(ctx context.Context, id db.GraphID)
db/sqlite/sqlite.go:162
Method
GraphEncryptKeys
(ctx context.Context, graphID string)
db/sqlite/sqlitedb/query.sql.go:207
Method
GraphSalts
(_ context.Context, id db.GraphID)
db/mem/mem.go:121
Method
GraphSalts
(ctx context.Context, id db.GraphID)
db/sqlite/sqlite.go:132
Method
GraphSalts
(ctx context.Context, graphID string)
db/sqlite/sqlitedb/query.sql.go:241
Method
Graphs
(_ context.Context)
db/mem/mem.go:70
Method
Graphs
(ctx context.Context)
db/sqlite/sqlite.go:91
Method
Graphs
(ctx context.Context)
db/sqlite/sqlitedb/query.sql.go:274
Method
IncrementTx
(_ context.Context, id db.GraphID)
db/mem/mem.go:86
Method
IncrementTx
(ctx context.Context, id db.GraphID)
db/sqlite/sqlite.go:34
Method
IncrementTx
(ctx context.Context, id string)
db/sqlite/sqlitedb/query.sql.go:304
Method
Move
S3 doesn't have a 'move' operation, so we just do copy and delete. See https://stackoverflow.com/q/63061426
blob/awsblob/awsblob.go:54
Method
PrepareContext
(context.Context, string)
db/sqlite/sqlitedb/db.go:14
Method
SetFileMeta
(_ context.Context, id db.GraphID, md *db.FileMeta)
db/mem/mem.go:146
Method
SetFileMeta
(ctx context.Context, gID db.GraphID, md *db.FileMeta)
db/sqlite/sqlite.go:179
Method
SetFileMeta
(ctx context.Context, arg SetFileMetaParams)
db/sqlite/sqlitedb/query.sql.go:326
Method
SetTx
(_ context.Context, id db.GraphID, tx db.Tx)
db/mem/mem.go:95
Method
SetTx
(ctx context.Context, id db.GraphID, tx db.Tx)
db/sqlite/sqlite.go:44
Method
SetTx
(ctx context.Context, arg SetTxParams)
db/sqlite/sqlitedb/query.sql.go:350
Method
SignedDownloadURL
(ctx context.Context, key string, dur time.Duration)
blob/awsblob/awsblob.go:127
Method
Tx
(_ context.Context, id db.GraphID)
db/mem/mem.go:78
Method
Tx
(ctx context.Context, id db.GraphID)
db/sqlite/sqlite.go:56
Method
WithTx
(tx *sql.Tx)
db/sqlite/sqlitedb/db.go:27
next →
1–100 of 125, ranked by callers