MCPcopy Create free account

hub / github.com/ActivityWatch/aw-server-rust / functions

Functions516 in github.com/ActivityWatch/aw-server-rust

↓ 2 callersMethodget_events
( &self, bucketname: &str, start: Option<DateTime<Utc>>, stop: Option<DateTime
aw-client-rust/src/lib.rs:160
↓ 2 callersMethodget_events_inner
( &mut self, conn: &Connection, bucket_id: &str, starttime_opt: Option<DateTim
aw-datastore/src/datastore.rs:754
↓ 2 callersMethodget_events_unclipped
( &self, bucket_id: &str, starttime_opt: Option<DateTime<Utc>>, endtime_opt: O
aw-datastore/src/worker.rs:576
↓ 2 callersMethodget_key_values
(&self, pattern: &str)
aw-datastore/src/worker.rs:623
↓ 2 callersFunctionimport
(datastore: &Datastore, import: BucketsExport)
aw-server/src/endpoints/import.rs:41
↓ 2 callersMethodinterval
(&self)
aw-models/src/event.rs:45
↓ 2 callersFunctionis_testing
()
aw-server/src/config.rs:19
↓ 2 callersMethodmatches
(&self, event: &Event)
aw-transform/src/classify.rs:13
↓ 2 callersMethodmigrate_hostname
Migrates all buckets whose hostname is "unknown" or "Unknown" to `new_hostname`. Returns the number of buckets updated.
aw-datastore/src/worker.rs:661
↓ 2 callersMethodmigrate_test_bucket_names
Migrates all buckets whose name starts with `aw-watcher-android-test` to use `aw-watcher-android` instead (e.g. debug-build buckets from older app ver
aw-datastore/src/worker.rs:674
↓ 2 callersFunctionquery
(query_req: Json<Query>, state: &State<ServerState>)
aw-server/src/endpoints/query.rs:10
↓ 2 callersMethodquery
( &self, query: &str, timeperiods: Vec<(DateTime<Utc>, DateTime<Utc>)>, )
aw-client-rust/src/lib.rs:136
↓ 2 callersMethodquery_eq
(&self, other: &DataType)
aw-query/src/datatype.rs:63
↓ 2 callersMethodrename_bucket
Renames a bucket from `old_id` to `new_id`.
aw-datastore/src/worker.rs:654
↓ 2 callersFunctionset_android_data_dir
(path: &str)
aw-server/src/dirs.rs:115
↓ 2 callersFunctionset_field
Set a field value at a dotted path in a serde_json Map.
aw-datastore/src/privacy_filter.rs:223
↓ 2 callersFunctionsetup_datastore
()
aw-query/benches/benchmark.rs:35
↓ 2 callersFunctionsetup_datastore_with_bucket
()
aw-query/tests/query.rs:45
↓ 2 callersFunctionsetup_local_remote
(path: &Path, device_id: &str)
aw-sync/src/sync.rs:168
↓ 2 callersFunctionsetup_testserver
(address: String)
aw-server/src/endpoints/hostcheck.rs:124
↓ 2 callersFunctionsetup_testserver
(port: u16, api_key: Option<&str>)
aw-client-rust/tests/test.rs:113
↓ 2 callersFunctionspawn_mock_server
(responses: Vec<MockResponse>)
aw-client-rust/tests/status_errors.rs:56
↓ 2 callersMethodtake_inner
(self)
aw-models/src/tryvec.rs:58
↓ 2 callersFunctiontest_bucket
()
aw-datastore/tests/datastore.rs:22
↓ 2 callersMethodupdate_endtime
(&mut self, bucket: &mut Bucket, event: &Event)
aw-datastore/src/datastore.rs:553
↓ 2 callersMethodvalue_matches
(&self, value: &serde_json::Value)
aw-transform/src/classify.rs:60
↓ 2 callersFunctionwait_for_server
(timeout_s: u32, client: &AwClient)
aw-client-rust/tests/test.rs:97
↓ 1 callersFunction_create_tables
(conn: &Connection, version: i32)
aw-datastore/src/datastore.rs:36
↓ 1 callersFunction_get_db_version
(conn: &Connection)
aw-datastore/src/datastore.rs:20
↓ 1 callersFunction_migrate_v0_to_v1
(conn: &Connection)
aw-datastore/src/datastore.rs:63
↓ 1 callersFunction_migrate_v1_to_v2
(conn: &Connection)
aw-datastore/src/datastore.rs:123
↓ 1 callersFunction_migrate_v2_to_v3
(conn: &Connection)
aw-datastore/src/datastore.rs:135
↓ 1 callersFunction_migrate_v3_to_v4
(conn: &Connection)
aw-datastore/src/datastore.rs:161
↓ 1 callersFunction_migrate_v4_to_v5
(conn: &Connection)
aw-datastore/src/datastore.rs:177
↓ 1 callersFunction_pick_highest_ranking_category
(acc: Vec<String>, item: &[String])
aw-transform/src/classify.rs:145
↓ 1 callersFunctionbuild_android_canonical_events
(params: &AndroidQueryParams)
aw-client-rust/src/queries.rs:247
↓ 1 callersFunctionbuild_browser_events
(params: &DesktopQueryParams)
aw-client-rust/src/queries.rs:278
↓ 1 callersFunctionbuild_client
(api_key: Option<String>)
aw-client-rust/src/lib.rs:43
↓ 1 callersFunctionbuild_desktop_canonical_events
(params: &DesktopQueryParams)
aw-client-rust/src/queries.rs:177
↓ 1 callersFunctioncategorize_one
(mut event: Event, rules: &[(Vec<String>, Rule)])
aw-transform/src/classify.rs:107
↓ 1 callersFunctionchunk_events_by_key
Chunks together events with the same key NOTE: In most cases you should use merge_events_by_keys instead, this transform is mostly just for backwards
aw-transform/src/chunk.rs:22
↓ 1 callersFunctioncontains_db_file
Check if a directory contains a .db file
aw-sync/src/util.rs:32
↓ 1 callersFunctioncontains_subdir_with_db_file
Check if a directory contains a subdirectory that contains a .db file
aw-sync/src/util.rs:48
↓ 1 callersFunctioncors
(config: &AWConfig)
aw-server/src/endpoints/cors.rs:6
↓ 1 callersFunctioncreate_bucket
(ds: &Datastore, bucketname: String)
aw-query/benches/benchmark.rs:39
↓ 1 callersFunctiondaemon
( client: &AwClient, start_date: Option<DateTime<Utc>>, buckets: Option<Vec<String>>, sync_db:
aw-sync/src/main.rs:249
↓ 1 callersFunctiondbfile_path
()
aw-datastore/src/legacy_import.rs:36
↓ 1 callersFunctiondefault_address
()
aw-server/src/config.rs:98
↓ 1 callersFunctiondefault_custom_static
()
aw-server/src/config.rs:118
↓ 1 callersFunctiondefault_port
()
aw-server/src/config.rs:110
↓ 1 callersFunctiondefault_testing
()
aw-server/src/config.rs:106
↓ 1 callersMethoddelete_event
( &self, bucketname: &str, event_id: i64, )
aw-client-rust/src/lib.rs:223
↓ 1 callersFunctiondrain_request
Drain the HTTP request fully before responding. Parses Content-Length from headers so POST body data (which may arrive in a separate TCP segment) is
aw-client-rust/tests/status_errors.rs:29
↓ 1 callersMethodduration
(&self)
aw-models/src/timeinterval.rs:55
↓ 1 callersMethodensure_legacy_import
(&mut self, conn: &Connection)
aw-datastore/src/datastore.rs:336
↓ 1 callersFunctionevent_identity
Computes a dedup identity tuple for an event. Uses canonical JSON serialization (sorted keys via `BTreeMap`) so that events with identical key-value
aw-server/src/endpoints/import.rs:19
↓ 1 callersFunctionexclude_keyvals
Drops events matching the specified key and value(s). Opposite of filter_keyvals. # Example ```ignore key: a vals: [1,2] input: [a:1][a:2][a:3][b:4]
aw-transform/src/filter_keyvals.rs:64
↓ 1 callersFunctionfill_env
(env: &mut VarEnv)
aw-query/src/functions.rs:9
↓ 1 callersMethodfilter_events
Filter a batch of events for a given bucket.
aw-datastore/src/privacy_filter.rs:197
↓ 1 callersFunctionfilter_keyvals
Drops events not matching the specified key and value(s) # Example ```ignore key: a vals: [1,2] input: [a:1][a:2][a:3][b:4] output: [a:1][a:2] ```
aw-transform/src/filter_keyvals.rs:15
↓ 1 callersFunctionfind_remotes
Returns a list of all remote dbs
aw-sync/src/util.rs:80
↓ 1 callersFunctionfull_desktop_query
Build a full desktop query using default localhost:5600 configuration
aw-client-rust/src/queries.rs:303
↓ 1 callersMethodgap
If intervals are separated by a non-zero gap, return the gap as a new TimeInterval, else None
aw-models/src/timeinterval.rs:60
↓ 1 callersFunctionget_all_buckets
(datastores: Vec<&Datastore>)
aw-sync/tests/sync.rs:79
↓ 1 callersFunctionget_cache_dir
()
aw-server/src/dirs.rs:47
↓ 1 callersFunctionget_config_dir
()
aw-server/src/dirs.rs:17
↓ 1 callersFunctionget_config_dir
()
aw-sync/src/dirs.rs:10
↓ 1 callersFunctionget_config_path
(testing: bool, config_override: Option<&Path>)
aw-server/src/config.rs:122
↓ 1 callersMethodget_event_count
(&self, bucketname: &str)
aw-client-rust/src/lib.rs:236
↓ 1 callersMethodget_events
( &mut self, conn: &Connection, bucket_id: &str, starttime_opt: Option<DateTim
aw-datastore/src/datastore.rs:856
↓ 1 callersFunctionget_hostname
()
aw-client-rust/src/lib.rs:39
↓ 1 callersFunctionget_legacy_buckets
(conn: &Connection)
aw-datastore/src/legacy_import.rs:44
↓ 1 callersFunctionget_legacy_events
( conn: &Connection, bucket_id: i64, )
aw-datastore/src/legacy_import.rs:86
↓ 1 callersFunctionget_or_create_sync_bucket
Returns the sync-destination bucket for a given bucket, creates it if it doesn't exist.
aw-sync/src/sync.rs:192
↓ 1 callersFunctionget_remotes
Return all remotes in the sync folder Only returns folders that match ./{host}/{device_id}/*.db TODO: share logic with find_remotes and find_remotes_n
aw-sync/src/util.rs:62
↓ 1 callersFunctionget_server_config_dir
()
aw-client-rust/tests/test.rs:46
↓ 1 callersFunctionget_server_config_path
(testing: bool)
aw-sync/src/dirs.rs:20
↓ 1 callersFunctionget_server_port
(testing: bool)
aw-sync/src/util.rs:10
↓ 1 callersMethodget_setting
(&self, setting: &str)
aw-client-rust/src/lib.rs:254
↓ 1 callersFunctionget_timeinterval
(env: &VarEnv)
aw-query/src/functions.rs:610
↓ 1 callersFunctionget_user_log_dir
()
aw-server/src/dirs.rs:75
↓ 1 callersMethodhandle_request
( &mut self, request: Command, ds: &mut DatastoreInstance, tx: &Transaction,
aw-datastore/src/worker.rs:276
↓ 1 callersMethodheartbeat
( &self, bucketname: &str, event: &Event, pulsetime: f64, )
aw-client-rust/src/lib.rs:209
↓ 1 callersMethodinfo
(&self)
aw-server/src/endpoints/apikey.rs:86
↓ 1 callersFunctioninit_env
(ti: &TimeInterval)
aw-query/src/interpret.rs:14
↓ 1 callersMethodinsert_event
( &self, bucketname: &str, event: &Event, )
aw-client-rust/src/lib.rs:188
↓ 1 callersMethodinsert_key_value
( &self, conn: &Connection, key: &str, data: &str, )
aw-datastore/src/datastore.rs:941
↓ 1 callersFunctioninterpret_expr
( env: &mut HashMap<String, DataType>, ds: &Datastore, expr: Expr, )
aw-query/src/interpret.rs:36
↓ 1 callersFunctioninterpret_prog
( p: Program, ti: &TimeInterval, ds: &Datastore, )
aw-query/src/interpret.rs:21
↓ 1 callersMethodintersection
The intersection of two intervals
aw-models/src/timeinterval.rs:82
↓ 1 callersMethodintersects
A boolean whether the two intervals intersect
aw-models/src/timeinterval.rs:93
↓ 1 callersFunctionlegacy_import
( new_ds: &mut DatastoreInstance, new_conn: &Connection, )
aw-datastore/src/legacy_import.rs:10
↓ 1 callersFunctionlist_buckets
(client: &AwClient)
aw-sync/src/sync.rs:140
↓ 1 callersFunctionload_local_api_key
(host: &str, port: u16)
aw-client-rust/tests/test.rs:54
↓ 1 callersMethodmatches
Check if this rule matches a given event in a given bucket.
aw-datastore/src/privacy_filter.rs:52
↓ 1 callersFunctionmerge_events_by_keys
(events: Vec<Event>, keys: Vec<String>)
aw-transform/src/merge.rs:43
↓ 1 callersFunctionpush
(client: &AwClient)
aw-sync/src/sync_wrapper.rs:59
↓ 1 callersFunctionredirect_unauthorized
(request: &mut Request)
aw-server/src/endpoints/apikey.rs:77
↓ 1 callersMethodreplace_last_event
( &mut self, conn: &Connection, bucket_id: &str, event_id: i64, event:
aw-datastore/src/datastore.rs:588
↓ 1 callersFunctionreserve_port
()
aw-client-rust/tests/test.rs:140
← previousnext →101–200 of 516, ranked by callers