MCPcopy Create free account

hub / github.com/timelinize/timelinize / functions

Functions1,120 in github.com/timelinize/timelinize

↓ 3 callersFunctionitemTimestampDisplay
(item, endItem)
frontend/resources/js/common-lib.js:1191
↓ 3 callersMethodloadItemRow
loadItemRow loads an item from the DB that matches the input criteria. There are two primary modes. If rowID is > 0, then that solely is used to retri
timeline/processing.go:844
↓ 3 callersMethodloadJob
loadJob loads a job from the database, using tx if set. A lock MUST be obtained on the timeline database when calling this function!
timeline/jobs.go:180
↓ 3 callersMethodmetadataString
()
timeline/entities.go:187
↓ 3 callersFunctionmustError
(t *testing.T, got error, expected string)
datasources/github/github_test.go:104
↓ 3 callersFunctionmyFetch
(signal, endpoint, data, method)
frontend/resources/js/app.js:50
↓ 3 callersFunctionparseURIPath
()
frontend/resources/js/common-lib.js:1179
↓ 3 callersMethodprocessMessage
(r io.Reader, msg message, params timeline.ImportParams, dsOpt *Options)
datasources/email/email.go:197
↓ 3 callersFunctionpyServerURL
(path string)
timeline/ml.go:450
↓ 3 callersFunctionpythonServerReady
(ctx context.Context, wait bool)
timeline/ml.go:422
↓ 3 callersFunctionqueryParam
(name)
frontend/resources/js/app.js:369
↓ 3 callersMethodrenameDataFile
(ctx context.Context, tx *sql.Tx, incoming *Item, oldDataFilePath, newFilename string)
timeline/pipeline.go:1035
↓ 3 callersFunctionrenderConversationChunk
(direction)
frontend/resources/js/conversations.js:260
↓ 3 callersFunctionrenderTextData
(elem, text)
frontend/resources/js/common-lib.js:1305
↓ 3 callersFunctionretrievalKey
(d timeline.DirEntry, pathOrURI string)
datasources/facebook/models.go:238
↓ 3 callersMethodsafePathComponent
(s string)
timeline/itemfiles.go:347
↓ 3 callersMethodstartJob
startJob makes sure an identical job is not already running, then sets the job's state to started and syncs it with the DB, then calls the action func
timeline/jobs.go:254
↓ 3 callersMethodsync
sync writes changes/updates to the DB. In case of rapid job progression, we avoid writing to the DB with every call; only if enough time has passed, o
timeline/jobs.go:766
↓ 3 callersMethodthumbnailAndThumbhash
thumbnailAndThumbhash returns the thumbnail, even if this returns an error because thumbhash generation fails, the thumbnail is still usable in that c
timeline/thumbnails.go:463
↓ 3 callersFunctionthumbnailType
(inputDataType string, onlyImage bool)
timeline/thumbnails.go:1020
↓ 3 callersMethodto
to returns all the recipients in the "To" header.
datasources/email/email.go:421
↓ 3 callersMethodtoItem
(opt *Options)
datasources/googlelocation/models.go:334
↓ 3 callersFunctionupper
(ch rune)
datasources/media/metadata.go:553
↓ 3 callersFunctionvalidTime
validTime returns a valid form of the given time, as far as our application is concerned. For example, JSON-serializing a time with a year > 9999 pani
timeline/processing.go:1369
↓ 3 callersMethodvalueForDB
()
timeline/entities.go:281
↓ 2 callersMethodAddEntity
(repoID string, entity timeline.Entity)
tlzapp/bindings.go:206
↓ 2 callersFunctionAuthCodeExchangeInfo
AuthCodeExchangeInfo generates a state and a code verifier challenge string, along with the assembled URL for a request to get an authorization code.
oauth2client/oauth2.go:46
↓ 2 callersFunctionBuildDB
Parses the embedded Airport CSV file into a map addressable by the airport IATA code. Remember to remove all references to it when you're done, so the
internal/airports/airports.go:34
↓ 2 callersMethodCheck
(ent zapcore.Entry, ce *zapcore.CheckedEntry)
timeline/log.go:144
↓ 2 callersFunctionDefaultCacheDir
DefaultCacheDir returns the file path where a local application cache is persisted.
tlzapp/config.go:174
↓ 2 callersMethodEmpty
Empty returns true if there are no entities in the timeline. (TODO: Can we remember once it's not empty, to avoid repeated queries?)
timeline/timeline.go:573
↓ 2 callersFunctionExtractVideoFromMotionPic
ExtractVideoFromMotionPic returns the bytes of a video embedded within filename. It is a fairly naive but simple approach that scans the bytes for a v
datasources/media/motionpictures.go:186
↓ 2 callersFunctionFloatToIntE7
FloatToIntE7 converts a float into the equivalent integer value with the decimal point moved right 7 places by string manipulation so no loss of preci
datasources/googlelocation/googlelocation.go:354
↓ 2 callersFunctionGetMessages
(dsName string, dirEntry timeline.DirEntry, params timeline.ImportParams)
datasources/facebook/messages.go:33
↓ 2 callersMethodGetProperty
(ctx context.Context, key string)
timeline/settings.go:91
↓ 2 callersMethodImport
(params ImportParameters)
tlzapp/bindings.go:741
↓ 2 callersMethodImportMessages
ImportMessages imports messages from the chat DB.
datasources/imessage/imessage.go:122
↓ 2 callersMethodItemClassifications
(repo string)
tlzapp/bindings.go:840
↓ 2 callersMethodJobs
(repo string, jobIDs []uint64, mostRecent int)
tlzapp/bindings.go:1018
↓ 2 callersMethodLoadAccount
LoadAccount loads the account with the given ID from the database.
timeline/account.go:152
↓ 2 callersMethodLoadConversation
(ctx context.Context, params timeline.ItemSearchParams)
tlzapp/bindings.go:987
↓ 2 callersMethodLoadRecentConversations
TODO: very experimental
tlzapp/bindings.go:965
↓ 2 callersFunctionNew
(ctx context.Context, cfg *Config, embeddedWebsite fs.FS)
tlzapp/app.go:73
↓ 2 callersFunctionNewProcessor
NewProcessor returns a new GPX processor.
datasources/gpx/gpx.go:148
↓ 2 callersMethodNextGPXGraph
NextGPXGraph returns the next GPX graph (item or entity)
datasources/gpx/gpx.go:167
↓ 2 callersMethodPauseJob
(ctx context.Context, repo string, jobID uint64)
tlzapp/bindings.go:1037
↓ 2 callersMethodPlanImport
PlanImport produces an import plan with the given settings.
tlzapp/bindings.go:340
↓ 2 callersMethodProcessPhotosDB
(ctx context.Context, owner timeline.Entity, dsOpt *Options, photosDB *sql.DB, dirEntry timeline.DirEntry, par
datasources/applephotos/applephotos.go:122
↓ 2 callersMethodRecognize
Recognize determines whether the data source supports the input described by the DirEntry. It should be implemented in a way that is efficient to be c
timeline/datasource.go:523
↓ 2 callersMethodRemoveConn
RemoveConn unsubscribes conn from writes, if it is subscribed.
timeline/log.go:108
↓ 2 callersMethodStartJob
(ctx context.Context, jobID uint64, startOver bool)
timeline/jobs.go:1044
↓ 2 callersMethodStatus
Status returns the status code that was written, if any.
tlzapp/responsewriter.go:204
↓ 2 callersMethodStoreEntity
(ctx context.Context, entity Entity)
timeline/timeline.go:748
↓ 2 callersFunctionStringToSpecificType
StringToSpecificType converts a string value to its more specific type, e.g. "3" -> 3, "3.14" -> 3.14, "True" -> true, etc. If it can't find a working
timeline/graph.go:594
↓ 2 callersMethodSubmitGraph
(repoID string, jobID uint64, g *timeline.Graph, skip bool)
tlzapp/bindings.go:765
↓ 2 callersFunctionTimeToCocoaNano
(t time.Time)
datasources/imessage/appledate.go:59
↓ 2 callersFunctionTimeToCocoaSecondsWithMilli
TimeToCocoaSecondsWithMilli returns the given time in seconds since the Cocoa epoch with millisecond decimal precision.
datasources/imessage/appledate.go:55
↓ 2 callersFunctionTimestampFromFilePath
TimestampFromFilePath finds all timestamps that can be found in any of the programmed formats in the file path. Overlapping timestamps are deduplicate
datasources/generic/timestamp.go:116
↓ 2 callersMethodUnmarshalOptions
UnmarshalOptions unmarshals the data source options into the data source's options type.
timeline/datasource.go:87
↓ 2 callersMethodUnpauseJob
(ctx context.Context, repo string, jobID uint64)
tlzapp/bindings.go:1045
↓ 2 callersMethodWrite
(p []byte)
tlzapp/responsewriter.go:256
↓ 2 callersMethod_maybe_try_preferred
(self)
tlzapp/python/server/server.py:102
↓ 2 callersFunctionaddCircle
(centerX, centerY, sizeX, sizeY)
frontend/resources/js/item.js:231
↓ 2 callersFunctionaddMapItemToCoordinate
(mapItem)
frontend/resources/js/map.js:24
↓ 2 callersFunctionaddSourceAndLayer
()
frontend/resources/js/map.js:402
↓ 2 callersFunctionaltitudeBounds
(altMeters *float64)
timeline/processing.go:1416
↓ 2 callersMethodapiRequestWithRetry
(ctx context.Context, endpoint string, decodeInto any)
datasources/gmail/gmail.go:155
↓ 2 callersFunctionappendIfUnique
appendIfUnique appends p to persons if p isn't found in persons already. This shouldn't be necessary, but I can't trust the data source to not duplica
datasources/smsbackuprestore/mms.go:170
↓ 2 callersMethodappendIfUnique
(v uint64)
timeline/conversations.go:645
↓ 2 callersFunctionapplyTerrain
(changed3D)
frontend/resources/js/map.js:649
↓ 2 callersFunctionassignJobElements
(containerElem, job)
frontend/resources/js/jobs.js:82
↓ 2 callersMethodautosave
autosave persists the config to disk by obtaining a read lock, so it is safe for concurrent use.
tlzapp/config.go:95
↓ 2 callersMethodbeginProcessing
(ctx context.Context, po ProcessingOptions, countOnly bool, done <-chan struct{})
timeline/processing.go:49
↓ 2 callersFunctionbestColumnMapping
bestColumnMapping returns the best mapping of canonical field name to column indices we could find.
datasources/contactlist/recognize.go:97
↓ 2 callersFunctionchangeSettingsTab
(target)
frontend/resources/js/settings.js:4
↓ 2 callersMethodcheckpoint
(estimatedSize *int64, outer, inner int, ds any)
timeline/imports.go:81
↓ 2 callersFunctionclassInfo
(name)
frontend/resources/js/items.js:116
↓ 2 callersMethodcleanDirs
cleanDirs deletes empty directories starting at pathInRepo, which MUST be relative to the repo path, until there are no more folders left to bubble up
timeline/timeline.go:1258
↓ 2 callersMethodclusteredNext
(ctx context.Context)
datasources/googlelocation/locproc.go:167
↓ 2 callersFunctionconcat
(sep string, vals []*string)
datasources/applecontacts/macaddrbook.go:382
↓ 2 callersMethodconfig
config builds an OAuth2 config from s.
oauth2client/remoteapp.go:143
↓ 2 callersFunctionconsistentFakeEntityName
consistentFakeEntityName generates a fake name seeded by the individual space-separated words in the real name.
timeline/obfuscation.go:414
↓ 2 callersMethodcontent
func (t *tweet) id() string { return t.TweetIDStr } content returns the text of the tweet, or, if text is empty, it returns the first media item as d
datasources/twitter/models.go:378
↓ 2 callersFunctioncouldBeMarkdown
couldBeMarkdown is a very naive Markdown detector. I'm trying to avoid regexp for performance, but this implementation is (admittedly) mildly effectiv
timeline/imports.go:587
↓ 2 callersFunctioncreateTestDatabase
(path string, valid bool)
datasources/firefox/firefox_test.go:189
↓ 2 callersFunctioncurrentURI
()
frontend/resources/js/spa.js:55
↓ 2 callersFunctiondateToUnixSec
(d)
frontend/resources/js/common-lib.js:483
↓ 2 callersMethoddeleteDataFileAndThumbnailIfUnreferenced
deleteDataFileAndThumbnailIfUnreferenced deletes the data file and its thumbnail if there are no item rows referring to it.
timeline/processing.go:276
↓ 2 callersMethoddeleteDataInItemRows
(ctx context.Context, tx *sql.Tx, rowIDs []uint64, preserveUserNotes bool)
timeline/maintenance.go:225
↓ 2 callersMethoddeleteExpiredItems
deleteExpiredItems finds items marked as deleted that have passed their retention period and actually erases them.
timeline/maintenance.go:101
↓ 2 callersMethoddetermineMediaFilenameInArchive
determineMediaFilenameInArchive returns the path to the media file in the archive that is associated with the given JSON sidecar metadata filepath. G
datasources/googlephotos/takeoutarchive.go:567
↓ 2 callersFunctiondistance
(a, b)
frontend/resources/js/map.js:1154
↓ 2 callersFunctiondone
()
frontend/resources/js/entities.js:154
↓ 2 callersMethodentity
()
datasources/applecontacts/macaddrbook.go:290
↓ 2 callersMethodentityTypeNameToID
(name string)
timeline/timeline.go:681
↓ 2 callersFunctionentityWithID
(id string)
datasources/imessage/imessage.go:567
↓ 2 callersFunctionexactPlaceName
(airportName, arrivalTerminal, arrivalGate string)
datasources/flighty/flighty.go:320
↓ 2 callersFunctionexecuteTemplateInBuffer
(tplName string, buf *bytes.Buffer, data any, app *App)
tlzapp/frontend.go:708
↓ 2 callersMethodexpandRelationships
(ctx context.Context, tx *sql.Tx, degrees int, sr *SearchResult)
timeline/search.go:818
↓ 2 callersMethodexportIDFromArchiveFilename
exportIDFromArchiveFilename returns the name of the archive without the positional index(es) and without the extension. It assumes a Takeout archive f
datasources/googlephotos/takeoutarchive.go:400
← previousnext →201–300 of 1,120, ranked by callers