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
↓ 5 callers
Method
FileImport
TODO: write godoc. It is expected that context cancellation will be honored (i.e. return if the context has an error or its done channel is closed), a
timeline/datasource.go:534
↓ 5 callers
Function
ItemClassByExtension
ItemClassByExtension uses the file extension to return a best-guess item classification. It returns false if no matching classification could be found
datasources/media/media.go:345
↓ 5 callers
Method
Message
Message updates the current job message or status to show the user.
timeline/jobs.go:723
↓ 5 callers
Method
Search
(ctx context.Context, params ItemSearchParams)
timeline/search.go:178
↓ 5 callers
Method
SetKey
SetKey sets the retrieval key for this item. It should be a globally unique value; note that other data sources may collaborate on the same item if th
timeline/graph.go:354
↓ 5 callers
Method
Write
(data []byte)
tlzapp/app.go:525
↓ 5 callers
Function
directoryEmpty
directoryEmpty returns true if dirPath is an empty directory except for some common, but non-critical, OS files. If false, the name of the first disco
timeline/timeline.go:156
↓ 5 callers
Method
fileIDToPath
fileIDToPath converts a fileID (the checksum by which it is organized in the backup) to the absolute path it can be accessed on disk. The return value
datasources/iphone/iphone.go:182
↓ 5 callers
Method
fileIDToRelativePath
fileIDToRelativePath returns the path to the file relative to the root folder of the backup. The term "relative path" here is NOT the same as the "rel
datasources/iphone/iphone.go:190
↓ 5 callers
Method
path
()
datasources/gpx/gpx.go:398
↓ 5 callers
Function
sanitizeFlag
sanitizeFlag turns a flag string like "--foo-bar" into "foo_bar"; i.e. it strips the flag prefix and standardizes its format.
tlzapp/cli2api.go:45
↓ 5 callers
Function
splitCamelCaseIntoWords
splitCamelCaseIntoWords splits camel-cased strings into words by inserting spaces at the most sensible places. This algorithm isn't perfect as it does
datasources/media/metadata.go:522
↓ 5 callers
Function
store
(key, val)
frontend/resources/js/app.js:191
↓ 5 callers
Function
userHomeDir
userHomeDir returns the best guess of the user's home directory, or "." (current directory) if the home directory is unknown (to make it safe to use i
tlzapp/helpers.go:48
↓ 4 callers
Method
AddMetadata
AddMetadata adds meta to the item's metadata with the given merge policy.
timeline/graph.go:417
↓ 4 callers
Function
ConnectMotionPhoto
ConnectMotionPhoto connects a motion photo for the item represented by ig, at path pictureFile in the fsys, if one exists. It looks for sidecars and e
datasources/media/motionpictures.go:97
↓ 4 callers
Method
Contains
Contains returns true if the circle approximately contains the given coordinate.
timeline/obfuscation.go:623
↓ 4 callers
Method
Continue
Continue should be called by all job actions frequently, typically at the beginning of their main loop (and any longer-running inner loops). It blocks
timeline/jobs.go:646
↓ 4 callers
Method
FromEntityWithValue
FromEntityWithValue connects entity to g with a relation that has the given value.
timeline/graph.go:176
↓ 4 callers
Method
ID
()
timeline/timeline.go:85
↓ 4 callers
Function
IsSidecarVideo
* Motion pictures ("live photos" and similar) are little videos that some cameras take along with a still capture. This is a well-known feature of G
datasources/media/motionpictures.go:63
↓ 4 callers
Method
LoadEntity
(id uint64)
timeline/timeline.go:812
↓ 4 callers
Function
NormalizePhoneNumber
NormalizePhoneNumber attempts to parse number and returns a standardized version in E164 format. If the number does not have an explicit region/countr
timeline/entities.go:362
↓ 4 callers
Method
Obfuscate
Obfuscate returns obfuscated lat/lon values.
timeline/obfuscation.go:628
↓ 4 callers
Method
Progress
Progress updates the progress of the job in the DB by adding delta, which is work completed since the previous update, towards the expected total. Thi
timeline/jobs.go:694
↓ 4 callers
Method
RepositoryIsEmpty
func (a App) AddAccount(repoID string, dataSourceID string, auth bool, dsOpt json.RawMessage) (timeline.Account, error) { tl, err := getOpenTimeline(
tlzapp/bindings.go:286
↓ 4 callers
Method
Serve
Serve serves the application server only if it is not already running (possibly in another process). It returns true if it started the application ser
tlzapp/app.go:254
↓ 4 callers
Method
TokenSource
(ctx context.Context, token *oauth2.Token)
oauth2client/oauth2.go:109
↓ 4 callers
Method
WasDiverted
()
datasources/flighty/types.go:34
↓ 4 callers
Function
autoType
autoType returns the value of str in its JSON type.
tlzapp/argparse.go:90
↓ 4 callers
Function
coordRound
(x float64, decimalPlaces int)
timeline/processing.go:1387
↓ 4 callers
Function
degreesToRadians
(d float64)
timeline/obfuscation.go:656
↓ 4 callers
Function
degreesToRadians
(d float64)
datasources/googlelocation/googlelocation.go:392
↓ 4 callers
Method
fileName
()
datasources/twitter/models.go:609
↓ 4 callers
Function
filenameHasJSONExtAndContains
filenameHasJSONExtAndContains returns true if filename has a ".json" extension and contains one of the strings in the list.
datasources/googlelocation/recognize.go:133
↓ 4 callers
Function
jobProgressUpdate
(job)
frontend/resources/js/jobs.js:117
↓ 4 callers
Function
mapNamesToIDs
(ctx context.Context, db sqliteDB, table string)
timeline/timeline.go:526
↓ 4 callers
Method
match
match returns a mapping of canonical field names to the matched column indices of the header row.
datasources/contactlist/formats.go:35
↓ 4 callers
Function
newLocation
(lat, lng, alt float64)
datasources/flighty/flighty_test.go:230
↓ 4 callers
Function
newPlace
(airportName, exactName string, latitude, longitude, altitude float64, url string)
datasources/flighty/flighty_test.go:238
↓ 4 callers
Function
noContentElem
()
frontend/resources/js/common-lib.js:1292
↓ 4 callers
Method
openFile
openFile opens a file given its domain and path. The manifest DB maps domain+path to file ID. We look up the file ID from the manifest and then use th
datasources/iphone/iphone.go:153
↓ 4 callers
Method
optimizeDB
optimizeDB runs ANALYZE on the database. It can be very slow. Recommended to run in a goroutine.
timeline/maintenance.go:83
↓ 4 callers
Function
parseExampleTime
(t *testing.T, timeStr string)
datasources/flighty/flighty_test.go:221
↓ 4 callers
Method
pipeline
(ctx context.Context, batch []*Graph)
timeline/pipeline.go:43
↓ 4 callers
Function
qualifiesForThumbnail
(mimeType *string)
timeline/thumbnails.go:881
↓ 4 callers
Function
renderJobPreview
(containerElem, job)
frontend/resources/js/jobs.js:67
↓ 4 callers
Function
safeRandomString
(n int, sameCase bool, r weakrand.Source)
timeline/itemfiles.go:356
↓ 4 callers
Function
scanItemRow
scanItemRow reads an item from row and returns the structured ItemRow. The item must have been queried to select all of itemDBColumns. It scans column
timeline/graph.go:863
↓ 4 callers
Function
sqlArray
sqlArray builds a placeholder array for SQL queries that will have all the row IDs in it, e.g. "(?, ?, ?)" for use with 'IN' clauses, returning the ar
timeline/timeline.go:1291
↓ 4 callers
Method
transcodeVideo
(ctx context.Context, w http.ResponseWriter, inputVideoFilePath string, inputVideoStream io.Reader, obfuscate
tlzapp/frontend.go:678
↓ 3 callers
Method
ChangeSettings
(ctx context.Context, newSettings *changeSettingsPayload)
tlzapp/bindings.go:882
↓ 3 callers
Method
Checkpoint
Checkpoint creates a checkpoint and syncs the job state with the database. When creating a checkpoint, the total, progress, and message data should be
timeline/jobs.go:746
↓ 3 callers
Method
CloseRepository
(repoID string)
tlzapp/bindings.go:179
↓ 3 callers
Function
CocoaNanoToTime
CocoaNanoToTime converts Apple timestamp in nanoseconds to a normal timestamp.
datasources/imessage/appledate.go:48
↓ 3 callers
Function
CocoaSecondsToTime
CocoaSecondsToTime converts Apple timestamp in seconds to a normal timestamp.
datasources/imessage/appledate.go:43
↓ 3 callers
Method
CreateJob
CreateJob creates and runs a job described by action, with an estimated total units of work, to be repeated after a certain interval (if > 0). If an i
timeline/jobs.go:49
↓ 3 callers
Method
DataSources
(ctx context.Context, targetDSName string)
tlzapp/bindings.go:807
↓ 3 callers
Function
DefaultConfigFilePath
DefaultConfigFilePath returns the file path where configuration is persisted.
tlzapp/config.go:156
↓ 3 callers
Function
DownloadData
DownloadData returns a function that opens the response body for the given url.
timeline/timeline.go:1356
↓ 3 callers
Function
FloatStringToIntE7
FloatStringToIntE7 is the same thing as FloatToIntE7, but takes a string representation of a float as input.
datasources/googlelocation/googlelocation.go:360
↓ 3 callers
Method
GetContentType
GetContentType returns the Content-Type of the endpoint considering its default of JSON if method is POST, PUT, PATCH, or DELETE.
tlzapp/endpoints.go:229
↓ 3 callers
Method
GetEntity
(repoID string, entityID uint64)
tlzapp/bindings.go:214
↓ 3 callers
Method
GetSettings
(ctx context.Context)
tlzapp/bindings.go:862
↓ 3 callers
Method
MatchString
(input string)
datasources/contactlist/formats.go:131
↓ 3 callers
Method
MergeEntities
(repo string, base uint64, others []uint64)
tlzapp/bindings.go:1002
↓ 3 callers
Method
NextGraph
(repoID string, jobID uint64)
tlzapp/bindings.go:757
↓ 3 callers
Function
NormalizePhoneNumber
NormalizePhoneNumber tries to NormalizePhoneNumber the ID (phone number), and simply returns the input if it fails.
datasources/imessage/imessage.go:559
↓ 3 callers
Function
ParseBirthday
ParseBirthday parses bday in one of these formats: - "--MMDD" (year is omitted, and as such, the Unix timestamp of the date will compute to be over 2
datasources/vcard/vcard.go:308
↓ 3 callers
Function
ParseCocoaDate
TODO: Standardize these function names. It's Core Data API, Cocoa Epoch. ParseCocoaDate converts a date represented by a string of the decimal number
datasources/imessage/appledate.go:33
↓ 3 callers
Method
ReadFrom
(r io.Reader)
tlzapp/responsewriter.go:262
↓ 3 callers
Method
SetTotal
Set the total size of the job in the DB. Ideally, this should only be set once the total size is properly known, not accumulated as you go, since prog
timeline/jobs.go:674
↓ 3 callers
Method
Shutdown
()
tlzapp/app.go:153
↓ 3 callers
Method
Size
Size returns the number of bytes written, not including the response headers.
tlzapp/responsewriter.go:210
↓ 3 callers
Method
StartJob
(ctx context.Context, repo string, jobID uint64, startOver bool)
tlzapp/bindings.go:1053
↓ 3 callers
Method
WriteHeader
WriteHeader writes the headers with statusCode to the wrapped ResponseWriter unless the response is to be buffered instead. 1xx responses are never bu
tlzapp/responsewriter.go:148
↓ 3 callers
Method
_load_model
(self, force_cpu=False)
tlzapp/python/server/server.py:63
↓ 3 callers
Method
_switch_to_cpu
(self)
tlzapp/python/server/server.py:93
↓ 3 callers
Function
activateTooltips
()
frontend/resources/js/common.js:127
↓ 3 callers
Function
advanceToPersonForm
()
frontend/resources/js/setup.js:4
↓ 3 callers
Method
attribute
()
timeline/search.go:1020
↓ 3 callers
Function
chatDBPath
(input timeline.DirEntry)
datasources/imessage/imessage.go:312
↓ 3 callers
Method
convertNamesToIDs
TODO: favorites? or maybe a more flexible albums/lists feature? what to call it... "scrapbooks" or "curations"?
timeline/search.go:373
↓ 3 callers
Method
deleteRepoFiles
(ctx context.Context, logger *zap.Logger, dataFilesToDelete []string)
timeline/maintenance.go:260
↓ 3 callers
Function
entityFromSenderCiteTag
entityFromSenderCiteTag returns the entity described by the given selection, which should be a <cite class="sender"> tag.
datasources/googlevoice/googlevoice.go:347
↓ 3 callers
Function
extractAirport
(airportDB airports.DB, row fieldLookup, field string)
datasources/flighty/flighty.go:290
↓ 3 callers
Function
filterAndRenderEntitiesList
()
frontend/resources/js/entities.js:5
↓ 3 callers
Function
flagValPairs
flagValPairs parses args and associates flags with their values.
tlzapp/argparse.go:33
↓ 3 callers
Function
galleryFilterParams
(peekPrevOrNext, peekFromItem)
frontend/resources/js/gallery.js:133
↓ 3 callers
Function
haversineDistanceEarth
haversineDistanceEarth computes the great-circle distance in kilometers between two points on Earth. The latitude and longitude values must be integer
datasources/googlelocation/googlelocation.go:375
↓ 3 callers
Function
homeDirUnsafe
homeDirUnsafe is a low-level function that returns the user's home directory from environment variables. Careful: if it cannot be determined, an empty
tlzapp/config.go:241
↓ 3 callers
Function
hourDecimalToHumanTime
(decimalHour)
frontend/resources/js/dashboard.js:265
↓ 3 callers
Function
humanizeBytes
(size)
frontend/resources/js/common-lib.js:1169
↓ 3 callers
Method
id
id returns either the item ID or the attribute ID, whichever is set.
timeline/entities.go:1111
↓ 3 callers
Method
identifyingAttributeID
identifyingAttributeID returns either the known row ID of the attribute identifying the entity, or it will create a pass-thru attribute for the entity
timeline/entities.go:1124
↓ 3 callers
Function
isEmpty
(v any)
timeline/graph.go:611
↓ 3 callers
Method
isEmpty
()
datasources/twitter/models.go:402
↓ 3 callers
Function
isNil
isNil returns true if v is nil. It returns true even if v is a non-nil interface (has a type) which has a nil value.
timeline/graph.go:747
↓ 3 callers
Function
isoIEC14496Timestamp
isoIEC14496Timestamp converts the number of seconds since January 1, 1904 (as defined by ISO/IEC 14496-12 5th Edition [2015], page 23) to a normal tim
datasources/media/metadata.go:564
↓ 3 callers
Function
itemImgSrc
(item, thumbnail = false)
frontend/resources/js/common-lib.js:1074
← previous
next →
101–200 of 1,120, ranked by callers