MCPcopy Create free account

hub / github.com/dimonomid/geekmarks / functions

Functions420 in github.com/dimonomid/geekmarks

↓ 2 callersMethodGetBookmarksByURL
( tx *sql.Tx, url string, ownerID int, tagsFetchOpts *storage.TagsFetchOpts, )
server/storage/postgres/bookmarks.go:144
↓ 2 callersFunctionGetDiff
TODO: move outside, since it just compares ints and has nothing to do with the taghier
server/storage/postgres/internal/taghier/taghier.go:252
↓ 2 callersMethodGetParent
If GetParent returns 0, it means "no parent"
server/storage/postgres/internal/taghier/taghier.go:14
↓ 2 callersMethodGetPath
(id int)
server/storage/postgres/taggables.go:160
↓ 2 callersMethodGetRootTagID
GetRootTagID returns the id of the root tag for the given user.
server/storage/postgres/tags.go:400
↓ 2 callersMethodGetTag
( tx *sql.Tx, tagID int, opts *storage.GetTagOpts, )
server/storage/postgres/tags.go:442
↓ 2 callersMethodGetTaggedBookmarks
tagsFetchOpts might be nil, or any of the options might be empty strings: in this case, defaults will be used: TagsFetchModeLeafs and TagNamesFetchMod
server/storage/storage.go:181
↓ 2 callersMethodGetTaggedTaggableIDs
( tx *sql.Tx, tagIDs []int, ownerID *int, ttypes []storage.TaggableType, )
server/storage/postgres/taggables.go:46
↓ 2 callersMethodGetTaggings
( tx *sql.Tx, taggableID int, tm storage.TaggingMode, )
server/storage/postgres/taggings.go:16
↓ 2 callersMethodGetTestServer
()
server/server/server_test.go:49
↓ 2 callersMethodMakeCopy
()
server/storage/postgres/internal/taghier/taghier.go:137
↓ 2 callersFunctionNew
(postgresURL string)
server/storage/postgres/postgres.go:19
↓ 2 callersFunctionNewTagMatcher
()
server/tagmatcher/tagmatcher.go:24
↓ 2 callersMethodPathItems
()
server/tagmatcher/tagspattern.go:13
↓ 2 callersFunctionPrepareTestDB
(t *testing.T, si storage.Storage)
server/testutils/testutils.go:17
↓ 2 callersMethodSetTaggings
( tx *sql.Tx, taggableID int, tagIDs []int, tm storage.TaggingMode, )
server/storage/postgres/taggings.go:68
↓ 2 callersMethodTxOpt
( ilevel storage.TxILevel, mode storage.TxMode, fn func(*sql.Tx) error, )
server/storage/postgres/transaction.go:23
↓ 2 callersMethodaddTagName
( tx *sql.Tx, tagID, parentTagID int, name string, primary, allowEmpty bool, )
server/storage/postgres/tags.go:655
↓ 2 callersFunctionapplyBookmarkData
(bkmData)
client/common/webui/edit-bookmark/edit-bookmark.js:179
↓ 2 callersFunctionapplyUI
()
client/chrome-ext/core/popup.js:57
↓ 2 callersFunctiondeleteTag
( be testBackend, rawURL string, userID int, newLeafPolicy string, )
server/server/tags_test.go:268
↓ 2 callersFunctionenableFields
()
client/common/webui/edit-bookmark/edit-bookmark.js:207
↓ 2 callersFunctiongetCacheMapKey
(path string, withSubtags bool)
server/server/tags.go:804
↓ 2 callersFunctiongetClientLoggedInInst
()
client/chrome-ext/core/background.js:163
↓ 2 callersFunctiongetErrorMsgParamRequired
(param string, values []string)
server/server/server.go:271
↓ 2 callersMethodgetNewTagDetails
getNewTagDetails takes a string pattern and returns details of the matching existing tag, and names of the non-existing tags which could be created (s
server/server/tags.go:434
↓ 2 callersFunctiongetStorageTaggableLeafPolicy
( newLeafPolicy string, )
server/server/tags.go:775
↓ 2 callersMethodgetTaggablesTaggedWithOnlyOneTag
getTaggablesTaggedWithOnlyOneTag returns a slice of taggable ids tagged with just one tag with given tagID. It is used to get taggables which are tagg
server/storage/postgres/taggables.go:120
↓ 2 callersMethodgetTagsInternal
( tx *sql.Tx, fieldName string, tagID int, opts *storage.GetTagOpts, )
server/storage/postgres/tags.go:474
↓ 2 callersFunctiongetUserBookmarkTags
getUserBookmarkTags converts a slice of storage.BookmarkTagPath to to a slice of server's userBookmarkTag.
server/server/bookmarks.go:328
↓ 2 callersFunctionhandleResp
(status, resp, resolve, reject, cb)
client/common/core/gmclient.js:33
↓ 2 callersFunctioninitIfReady
()
client/chrome-ext/page-wrapper/page-wrapper.js:157
↓ 2 callersFunctionmakeGMRequestFromHttpRequest
( r *http.Request, gsu getSubjUser, )
server/server/request.go:38
↓ 2 callersFunctionopenPageAddBookmark
(curTab)
client/chrome-ext/core/background.js:238
↓ 2 callersFunctionparseTagBrief
parseTagBrief takes "tag brief data", and converts it to an array of storage.BookmarkTagPath. "tag brief data" is the following JSON data: a map from
server/storage/postgres/taggables.go:222
↓ 2 callersFunctionrowsToBookmarks
rowsToBookmarks expects each row to contain the following fields, in this order: id, url, title, comment, owner_id, created_time, updated_time, tags_
server/storage/postgres/bookmarks.go:240
↓ 2 callersFunctionsave
(opts)
client/chrome-ext/options-page/options-page.js:55
↓ 2 callersFunctionsaveBookmark
()
client/common/webui/edit-bookmark/edit-bookmark.js:68
↓ 2 callersMethodsaveStatus
(status int, warn bool)
server/middleware/logger.go:32
↓ 2 callersFunctionsetCurTab
(portName)
client/chrome-ext/core/background.js:214
↓ 2 callersMethodsetTagNamePrimary
( tx *sql.Tx, tagID int, name string, primary bool, )
server/storage/postgres/tags.go:707
↓ 2 callersMethodsetupUserAPIEndpoints
Sets up user-related endpoints at a given mux. We need this function since we have two ways to access user data: through the "/api/users/:userid" and
server/server/server.go:177
↓ 2 callersFunctionshowMsg
(text)
client/common/webui/find-bookmark/find-bookmark.js:176
↓ 1 callersMethodAdd
(idx int)
server/tagmatcher/result.go:32
↓ 1 callersFunctionCombineResults
(results []*Result, tags []TagPather)
server/tagmatcher/resultset.go:42
↓ 1 callersMethodCreateGoogleUser
(tx *sql.Tx, userID int, googleUserID, email string)
server/storage/storage.go:152
↓ 1 callersMethodCreateTag
( tx *sql.Tx, td *storage.TagData, )
server/storage/postgres/tags.go:22
↓ 1 callersMethodCreateTaggable
(tx *sql.Tx, tgbd *storage.TaggableData)
server/storage/postgres/taggables.go:19
↓ 1 callersMethodDeleteTag
(tx *sql.Tx, tagID int, leafPolicy TaggableLeafPolicy)
server/storage/storage.go:159
↓ 1 callersMethodDeleteTaggable
(tx *sql.Tx, taggableID int)
server/storage/storage.go:190
↓ 1 callersMethodDeleteUser
(tx *sql.Tx, userID int)
server/storage/storage.go:145
↓ 1 callersMethodDoUserReq
( method, rawURL string, userID int, body interface{}, checkHTTPCode bool, )
server/server/server_test.go:164
↓ 1 callersMethodExists
(idx int)
server/tagmatcher/result.go:40
↓ 1 callersMethodGetBookmarkByID
( tx *sql.Tx, bookmarkID int, tagsFetchOpts *TagsFetchOpts, )
server/storage/storage.go:187
↓ 1 callersMethodGetBookmarksByURL
( tx *sql.Tx, url string, ownerID int, tagsFetchOpts *TagsFetchOpts, )
server/storage/storage.go:184
↓ 1 callersMethodGetCacheForUser
(userID int)
server/server/tags.go:820
↓ 1 callersFunctionGetErrorStruct
(errResp error)
server/httphelper/httphelper.go:45
↓ 1 callersFunctionGetHTTPErrorCode
(err error)
server/httphelper/httphelper.go:176
↓ 1 callersMethodGetPath
(n int)
server/storage/postgres/internal/taghier/taghier.go:218
↓ 1 callersMethodGetTagData
(path string, withSubtags bool)
server/server/tags.go:808
↓ 1 callersMethodGetTagIDByName
( tx *sql.Tx, parentTagID int, tagName string, )
server/storage/postgres/tags.go:372
↓ 1 callersMethodGetTagNames
(tx *sql.Tx, tagID int)
server/storage/postgres/tags.go:415
↓ 1 callersMethodGetTags
( tx *sql.Tx, parentTagID int, opts *GetTagOpts, )
server/storage/storage.go:165
↓ 1 callersMethodGetUser
-- Users
server/storage/storage.go:143
↓ 1 callersMethodGetUser
( tx *sql.Tx, args *storage.GetUserArgs, )
server/storage/postgres/users.go:23
↓ 1 callersMethodGetUserByAccessToken
(tx *sql.Tx, token string)
server/storage/storage.go:150
↓ 1 callersMethodGetUserByGoogleUserID
(tx *sql.Tx, googleUserID string)
server/storage/storage.go:151
↓ 1 callersMethodGetUsers
(tx *sql.Tx)
server/storage/postgres/users.go:92
↓ 1 callersMethodLen
()
server/tagmatcher/result.go:36
↓ 1 callersFunctionMakeInternalServerError
(intError error)
server/httphelper/httphelper.go:145
↓ 1 callersFunctionMakeLogger
()
server/middleware/logger.go:51
↓ 1 callersMethodMigrate
(db *sql.DB, targetMigrationID int)
server/dfmigrate/dfmigrate.go:45
↓ 1 callersMethodMigrateToLatest
(db *sql.DB)
server/dfmigrate/dfmigrate.go:41
↓ 1 callersFunctionNew
(si storage.Storage)
server/server/server.go:46
↓ 1 callersFunctionNewResult
()
server/tagmatcher/result.go:24
↓ 1 callersFunctionReadOAuthCredsFile
(credsFile string)
server/server/oauth.go:29
↓ 1 callersMethodSetCacheForUser
(userID int, cache *cacheTagsTree)
server/server/tags.go:826
↓ 1 callersMethodSetMatchDetails
( pathComponentIdx, matchedNameIdx int, prio Priority, det *MatchDetails, )
server/tagmatcher/tagspattern.go:14
↓ 1 callersMethodSetMaxPathItemIdx
(pathComponentIdx int, prio Priority)
server/tagmatcher/tagspattern.go:19
↓ 1 callersMethodSetTagData
(path string, withSubtags bool, td *storage.TagData)
server/server/tags.go:814
↓ 1 callersFunctionSetTagMatchDetails
( tag TagPather, pathComponentIdx, matchedNameIdx int, prio Priority, det *MatchDetails, )
server/tagmatcher/matcher.go:10
↓ 1 callersMethodSetTestServer
(ts *httptest.Server)
server/server/server_test.go:50
↓ 1 callersMethodUpdateBookmark
(tx *sql.Tx, bd *BookmarkData)
server/storage/storage.go:173
↓ 1 callersMethodUpdateTag
leafPolicy is used if only td.ParentTagID is not nil, i.e. if the tag should be moved.
server/storage/storage.go:158
↓ 1 callersFunctionValidateTagName
(name string, allowEmpty bool)
server/storage/storage.go:204
↓ 1 callersFunction_createGMClientLoggedIn
()
client/chrome-ext/core/gmclient-bridge.js:5
↓ 1 callersFunction_createGMClientLoggedIn
(token)
client/common/core/gmclient.js:113
↓ 1 callersMethodaddInternal
(id int, isLeaf bool)
server/storage/postgres/internal/taghier/taghier.go:48
↓ 1 callersMethodaddTaggings
( tx *sql.Tx, taggableID int, tagIDsToAdd []int, )
server/storage/postgres/taggings.go:110
↓ 1 callersMethodauthenticatePostOAuthGoogle
( tx *sql.Tx, gmr *GMRequest, oauthCreds *OAuthCreds, endpoint oauth2.Endpoint, )
server/server/authn_google.go:157
↓ 1 callersMethodauthorizeOperationByReq
( r *http.Request, args *authzArgs, )
server/server/authz.go:18
↓ 1 callersFunctioncheckBkmGetByID
(be testBackend, userID int, bkmID int, expectedBkm *bkmData)
server/server/bookmarks_test.go:652
↓ 1 callersMethodcheckChildrenCnt
(tx *sql.Tx)
server/storage/postgres/maintenance.go:268
↓ 1 callersMethodcheckFullTaggingsPath
(tx *sql.Tx, path []int)
server/storage/postgres/maintenance.go:143
↓ 1 callersMethodcheckOnlyRootTagging
It's illegal for the taggable to be tagged with the root tag only, so checkOnlyRootTagging checks for these cases
server/storage/postgres/maintenance.go:232
↓ 1 callersMethodcheckTaggings
(tx *sql.Tx)
server/storage/postgres/maintenance.go:57
↓ 1 callersFunctioncolorForMethod
(method string)
server/middleware/logger.go:133
↓ 1 callersFunctioncolorForStatus
(code int)
server/middleware/logger.go:102
↓ 1 callersFunctioncompareTags
(t *testing.T, got, expected []string)
server/tagmatcher/tagmatcher_test.go:114
↓ 1 callersFunctionconvertTreeData
(tagsTree, isRoot)
client/common/webui/tags-tree/tags-tree.js:445
← previousnext →101–200 of 420, ranked by callers