Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/timelinize/timelinize
/ functions
Functions
1,120 in github.com/timelinize/timelinize
⨍
Functions
1,120
◇
Types & classes
328
↳
Endpoints
3
↓ 3 callers
Function
itemTimestampDisplay
(item, endItem)
frontend/resources/js/common-lib.js:1191
↓ 3 callers
Method
loadItemRow
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 callers
Method
loadJob
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 callers
Method
metadataString
()
timeline/entities.go:187
↓ 3 callers
Function
mustError
(t *testing.T, got error, expected string)
datasources/github/github_test.go:104
↓ 3 callers
Function
myFetch
(signal, endpoint, data, method)
frontend/resources/js/app.js:50
↓ 3 callers
Function
parseURIPath
()
frontend/resources/js/common-lib.js:1179
↓ 3 callers
Method
processMessage
(r io.Reader, msg message, params timeline.ImportParams, dsOpt *Options)
datasources/email/email.go:197
↓ 3 callers
Function
pyServerURL
(path string)
timeline/ml.go:450
↓ 3 callers
Function
pythonServerReady
(ctx context.Context, wait bool)
timeline/ml.go:422
↓ 3 callers
Function
queryParam
(name)
frontend/resources/js/app.js:369
↓ 3 callers
Method
renameDataFile
(ctx context.Context, tx *sql.Tx, incoming *Item, oldDataFilePath, newFilename string)
timeline/pipeline.go:1035
↓ 3 callers
Function
renderConversationChunk
(direction)
frontend/resources/js/conversations.js:260
↓ 3 callers
Function
renderTextData
(elem, text)
frontend/resources/js/common-lib.js:1305
↓ 3 callers
Function
retrievalKey
(d timeline.DirEntry, pathOrURI string)
datasources/facebook/models.go:238
↓ 3 callers
Method
safePathComponent
(s string)
timeline/itemfiles.go:347
↓ 3 callers
Method
startJob
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 callers
Method
sync
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 callers
Method
thumbnailAndThumbhash
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 callers
Function
thumbnailType
(inputDataType string, onlyImage bool)
timeline/thumbnails.go:1020
↓ 3 callers
Method
to
to returns all the recipients in the "To" header.
datasources/email/email.go:421
↓ 3 callers
Method
toItem
(opt *Options)
datasources/googlelocation/models.go:334
↓ 3 callers
Function
upper
(ch rune)
datasources/media/metadata.go:553
↓ 3 callers
Function
validTime
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 callers
Method
valueForDB
()
timeline/entities.go:281
↓ 2 callers
Method
AddEntity
(repoID string, entity timeline.Entity)
tlzapp/bindings.go:206
↓ 2 callers
Function
AuthCodeExchangeInfo
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 callers
Function
BuildDB
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 callers
Method
Check
(ent zapcore.Entry, ce *zapcore.CheckedEntry)
timeline/log.go:144
↓ 2 callers
Function
DefaultCacheDir
DefaultCacheDir returns the file path where a local application cache is persisted.
tlzapp/config.go:174
↓ 2 callers
Method
Empty
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 callers
Function
ExtractVideoFromMotionPic
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 callers
Function
FloatToIntE7
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 callers
Function
GetMessages
(dsName string, dirEntry timeline.DirEntry, params timeline.ImportParams)
datasources/facebook/messages.go:33
↓ 2 callers
Method
GetProperty
(ctx context.Context, key string)
timeline/settings.go:91
↓ 2 callers
Method
Import
(params ImportParameters)
tlzapp/bindings.go:741
↓ 2 callers
Method
ImportMessages
ImportMessages imports messages from the chat DB.
datasources/imessage/imessage.go:122
↓ 2 callers
Method
ItemClassifications
(repo string)
tlzapp/bindings.go:840
↓ 2 callers
Method
Jobs
(repo string, jobIDs []uint64, mostRecent int)
tlzapp/bindings.go:1018
↓ 2 callers
Method
LoadAccount
LoadAccount loads the account with the given ID from the database.
timeline/account.go:152
↓ 2 callers
Method
LoadConversation
(ctx context.Context, params timeline.ItemSearchParams)
tlzapp/bindings.go:987
↓ 2 callers
Method
LoadRecentConversations
TODO: very experimental
tlzapp/bindings.go:965
↓ 2 callers
Function
New
(ctx context.Context, cfg *Config, embeddedWebsite fs.FS)
tlzapp/app.go:73
↓ 2 callers
Function
NewProcessor
NewProcessor returns a new GPX processor.
datasources/gpx/gpx.go:148
↓ 2 callers
Method
NextGPXGraph
NextGPXGraph returns the next GPX graph (item or entity)
datasources/gpx/gpx.go:167
↓ 2 callers
Method
PauseJob
(ctx context.Context, repo string, jobID uint64)
tlzapp/bindings.go:1037
↓ 2 callers
Method
PlanImport
PlanImport produces an import plan with the given settings.
tlzapp/bindings.go:340
↓ 2 callers
Method
ProcessPhotosDB
(ctx context.Context, owner timeline.Entity, dsOpt *Options, photosDB *sql.DB, dirEntry timeline.DirEntry, par
datasources/applephotos/applephotos.go:122
↓ 2 callers
Method
Recognize
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 callers
Method
RemoveConn
RemoveConn unsubscribes conn from writes, if it is subscribed.
timeline/log.go:108
↓ 2 callers
Method
StartJob
(ctx context.Context, jobID uint64, startOver bool)
timeline/jobs.go:1044
↓ 2 callers
Method
Status
Status returns the status code that was written, if any.
tlzapp/responsewriter.go:204
↓ 2 callers
Method
StoreEntity
(ctx context.Context, entity Entity)
timeline/timeline.go:748
↓ 2 callers
Function
StringToSpecificType
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 callers
Method
SubmitGraph
(repoID string, jobID uint64, g *timeline.Graph, skip bool)
tlzapp/bindings.go:765
↓ 2 callers
Function
TimeToCocoaNano
(t time.Time)
datasources/imessage/appledate.go:59
↓ 2 callers
Function
TimeToCocoaSecondsWithMilli
TimeToCocoaSecondsWithMilli returns the given time in seconds since the Cocoa epoch with millisecond decimal precision.
datasources/imessage/appledate.go:55
↓ 2 callers
Function
TimestampFromFilePath
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 callers
Method
UnmarshalOptions
UnmarshalOptions unmarshals the data source options into the data source's options type.
timeline/datasource.go:87
↓ 2 callers
Method
UnpauseJob
(ctx context.Context, repo string, jobID uint64)
tlzapp/bindings.go:1045
↓ 2 callers
Method
Write
(p []byte)
tlzapp/responsewriter.go:256
↓ 2 callers
Method
_maybe_try_preferred
(self)
tlzapp/python/server/server.py:102
↓ 2 callers
Function
addCircle
(centerX, centerY, sizeX, sizeY)
frontend/resources/js/item.js:231
↓ 2 callers
Function
addMapItemToCoordinate
(mapItem)
frontend/resources/js/map.js:24
↓ 2 callers
Function
addSourceAndLayer
()
frontend/resources/js/map.js:402
↓ 2 callers
Function
altitudeBounds
(altMeters *float64)
timeline/processing.go:1416
↓ 2 callers
Method
apiRequestWithRetry
(ctx context.Context, endpoint string, decodeInto any)
datasources/gmail/gmail.go:155
↓ 2 callers
Function
appendIfUnique
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 callers
Method
appendIfUnique
(v uint64)
timeline/conversations.go:645
↓ 2 callers
Function
applyTerrain
(changed3D)
frontend/resources/js/map.js:649
↓ 2 callers
Function
assignJobElements
(containerElem, job)
frontend/resources/js/jobs.js:82
↓ 2 callers
Method
autosave
autosave persists the config to disk by obtaining a read lock, so it is safe for concurrent use.
tlzapp/config.go:95
↓ 2 callers
Method
beginProcessing
(ctx context.Context, po ProcessingOptions, countOnly bool, done <-chan struct{})
timeline/processing.go:49
↓ 2 callers
Function
bestColumnMapping
bestColumnMapping returns the best mapping of canonical field name to column indices we could find.
datasources/contactlist/recognize.go:97
↓ 2 callers
Function
changeSettingsTab
(target)
frontend/resources/js/settings.js:4
↓ 2 callers
Method
checkpoint
(estimatedSize *int64, outer, inner int, ds any)
timeline/imports.go:81
↓ 2 callers
Function
classInfo
(name)
frontend/resources/js/items.js:116
↓ 2 callers
Method
cleanDirs
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 callers
Method
clusteredNext
(ctx context.Context)
datasources/googlelocation/locproc.go:167
↓ 2 callers
Function
concat
(sep string, vals []*string)
datasources/applecontacts/macaddrbook.go:382
↓ 2 callers
Method
config
config builds an OAuth2 config from s.
oauth2client/remoteapp.go:143
↓ 2 callers
Function
consistentFakeEntityName
consistentFakeEntityName generates a fake name seeded by the individual space-separated words in the real name.
timeline/obfuscation.go:414
↓ 2 callers
Method
content
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 callers
Function
couldBeMarkdown
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 callers
Function
createTestDatabase
(path string, valid bool)
datasources/firefox/firefox_test.go:189
↓ 2 callers
Function
currentURI
()
frontend/resources/js/spa.js:55
↓ 2 callers
Function
dateToUnixSec
(d)
frontend/resources/js/common-lib.js:483
↓ 2 callers
Method
deleteDataFileAndThumbnailIfUnreferenced
deleteDataFileAndThumbnailIfUnreferenced deletes the data file and its thumbnail if there are no item rows referring to it.
timeline/processing.go:276
↓ 2 callers
Method
deleteDataInItemRows
(ctx context.Context, tx *sql.Tx, rowIDs []uint64, preserveUserNotes bool)
timeline/maintenance.go:225
↓ 2 callers
Method
deleteExpiredItems
deleteExpiredItems finds items marked as deleted that have passed their retention period and actually erases them.
timeline/maintenance.go:101
↓ 2 callers
Method
determineMediaFilenameInArchive
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 callers
Function
distance
(a, b)
frontend/resources/js/map.js:1154
↓ 2 callers
Function
done
()
frontend/resources/js/entities.js:154
↓ 2 callers
Method
entity
()
datasources/applecontacts/macaddrbook.go:290
↓ 2 callers
Method
entityTypeNameToID
(name string)
timeline/timeline.go:681
↓ 2 callers
Function
entityWithID
(id string)
datasources/imessage/imessage.go:567
↓ 2 callers
Function
exactPlaceName
(airportName, arrivalTerminal, arrivalGate string)
datasources/flighty/flighty.go:320
↓ 2 callers
Function
executeTemplateInBuffer
(tplName string, buf *bytes.Buffer, data any, app *App)
tlzapp/frontend.go:708
↓ 2 callers
Method
expandRelationships
(ctx context.Context, tx *sql.Tx, degrees int, sr *SearchResult)
timeline/search.go:818
↓ 2 callers
Method
exportIDFromArchiveFilename
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
← previous
next →
201–300 of 1,120, ranked by callers