MCPcopy Create free account

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

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

↓ 69 callersFunctionquery
(code: &str, ti: &TimeInterval, ds: &Datastore)
aw-query/src/lib.rs:53
↓ 46 callersMethodnext
(&mut self)
aw-query/src/lexer.rs:122
↓ 21 callersFunctionargs_length
(args: &[DataType], len: usize)
aw-query/src/functions.rs:599
↓ 21 callersMethodrequest
Send a command to the worker thread and wait for its response. Fails with `InternalError` instead of panicking when the worker thread is gone (e.g. i
aw-datastore/src/worker.rs:482
↓ 18 callersMethodget_events
( &self, bucket_id: &str, starttime_opt: Option<DateTime<Utc>>, endtime_opt: O
aw-datastore/src/worker.rs:556
↓ 14 callersFunctionsetup_datastore_empty
()
aw-query/tests/query.rs:41
↓ 14 callersFunctionsetup_testserver
()
aw-server/tests/api.rs:21
↓ 13 callersMethodcalculate_endtime
(&self)
aw-models/src/event.rs:42
↓ 13 callersFunctioncreate_error_object
(env: &JNIEnv, msg: String)
aw-server/src/android/mod.rs:100
↓ 13 callersFunctionrust_string_to_jstring
Helper function to convert Rust string to Java string
aw-sync/src/android.rs:10
↓ 12 callersMethodinsert_events
( &self, bucket_id: &str, events: &[Event], )
aw-datastore/src/worker.rs:523
↓ 11 callersFunctionheartbeat
Returns a merged event if two events have the same data and are within the pulsetime # Example ```ignore pulsetime: 1 second (one space) input: [a]
aw-transform/src/heartbeat.rs:12
↓ 11 callersFunctionstring_to_jstring
(env: &JNIEnv, string: String)
aw-server/src/android/mod.rs:94
↓ 10 callersFunctioncreate_test_bucket
(ds: &Datastore)
aw-datastore/tests/datastore.rs:57
↓ 10 callersFunctionopenDatastore
()
aw-server/src/android/mod.rs:53
↓ 10 callersFunctionset_setting_request
(client: &Client, key: &str, value: &Value)
aw-server/tests/api.rs:561
↓ 9 callersFunctionassert_serialized_deserialized_eq
(data: &str, eq: &str)
aw-models/src/tryvec.rs:160
↓ 9 callersFunctionget_file
(file: PathBuf, state: &State<ServerState>)
aw-server/src/endpoints/mod.rs:122
↓ 9 callersFunctionjstring_to_string
(env: &JNIEnv, string: JString)
aw-server/src/android/mod.rs:89
↓ 8 callersFunction_unwrap_empty_response
(response: Response)
aw-datastore/src/worker.rs:87
↓ 8 callersMethodget_bucket
(&self, bucket_id: &str)
aw-datastore/src/datastore.rs:451
↓ 8 callersMethodget_buckets
(&self)
aw-sync/src/accessmethod.rs:29
↓ 8 callersMethodget_events
( &self, bucket_id: &str, start: Option<DateTime<Utc>>, end: Option<DateTime<U
aw-sync/src/accessmethod.rs:40
↓ 7 callersFunctionflood
Floods event to the nearest neighbouring event if within the specified pulsetime. Also merges events if they have the same data and are within the pu
aw-transform/src/flood.rs:36
↓ 7 callersFunctionget_sync_dir
()
aw-sync/src/dirs.rs:29
↓ 7 callersFunctionparse
(i: I)
aw-query/src/parser.rs:270
↓ 7 callersFunctionsync_datastores
Syncs all buckets from `ds_from` to `ds_to` with `-synced` appended to the ID of the destination bucket. is_push: a bool indicating if we're pushing
aw-sync/src/sync.rs:238
↓ 7 callersFunctiontest_event
(title: &str)
aw-datastore/src/privacy_filter.rs:248
↓ 6 callersFunctionbuild_rocket
(server_state: ServerState, config: AWConfig)
aw-server/src/endpoints/mod.rs:134
↓ 6 callersMethodcreate_bucket
(&self, bucket: &Bucket)
aw-sync/src/accessmethod.rs:35
↓ 6 callersFunctionfilter_keyvals_regex
Drops events not matching the regex on the value for a specified key Will only match if the value is a string # Example ```ignore key: a regex: "[A-Z
aw-transform/src/filter_keyvals.rs:40
↓ 6 callersFunctionfilter_period_intersect
Removes events not intersecting with the provided filter_events Usually used to filter buckets unaware if the user is making any activity with an buc
aw-transform/src/filter_period.rs:20
↓ 6 callersMethodforce_commit
(&self)
aw-datastore/src/worker.rs:618
↓ 6 callersMethodheartbeat
(&self, bucket_id: &str, event: Event, duration: f64)
aw-sync/src/accessmethod.rs:49
↓ 6 callersMethodinsert_events
(&self, bucket_id: &str, events: Vec<Event>)
aw-sync/src/accessmethod.rs:54
↓ 6 callersFunctionsetup_testserver
(api_key: Option<String>)
aw-server/src/endpoints/apikey.rs:159
↓ 6 callersFunctionsort_by_timestamp
Sort a list of events by timestamp
aw-transform/src/sort.rs:4
↓ 5 callersFunctioncreate_bucket
(ds: &Datastore, n: i32)
aw-sync/tests/sync.rs:28
↓ 5 callersMethodcreate_bucket
(&self, bucket: &Bucket)
aw-datastore/src/worker.rs:495
↓ 5 callersMethodget_buckets
(&self)
aw-datastore/src/worker.rs:513
↓ 5 callersMethodget_buckets
(&self)
aw-client-rust/src/lib.rs:99
↓ 5 callersMethodheartbeat
( &self, bucket_id: &str, heartbeat: Event, pulsetime: f64, )
aw-datastore/src/worker.rs:535
↓ 5 callersFunctionperiod_union
Takes a list of two events and returns a new list of events covering the union of the timeperiods contained in the eventlists with no overlapping even
aw-transform/src/period_union.rs:19
↓ 4 callersMethodapply
Apply this rule's action to an event. Returns None if dropped, Some(event) if kept (possibly redacted).
aw-datastore/src/privacy_filter.rs:84
↓ 4 callersFunctionblock_on
(future: F)
aw-client-rust/tests/status_errors.rs:9
↓ 4 callersFunctioncheck_synced_buckets_equal_to_src
(all_buckets_map: &HashMap<String, (&Datastore, Bucket)>)
aw-sync/tests/sync.rs:118
↓ 4 callersMethodcreate_bucket_simple
( &self, bucketname: &str, buckettype: &str, )
aw-client-rust/src/lib.rs:110
↓ 4 callersFunctioncreate_config
(testing: bool, config_override: Option<&Path>)
aw-server/src/config.rs:137
↓ 4 callersFunctiondb_path
(testing: bool)
aw-server/src/dirs.rs:104
↓ 4 callersFunctiondefault_classes
Returns the default categorization classes
aw-client-rust/src/classes.rs:31
↓ 4 callersMethodget_bucket
(&self, bucket_id: &str)
aw-datastore/src/worker.rs:505
↓ 4 callersMethodget_bucket
(&self, bucket_id: &str)
aw-sync/src/accessmethod.rs:32
↓ 4 callersFunctionget_client
Helper function to get AwClient from port
aw-sync/src/android.rs:16
↓ 4 callersMethodget_info
(&self)
aw-client-rust/src/lib.rs:249
↓ 4 callersMethodget_stored_buckets
(&mut self, conn: &Connection)
aw-datastore/src/datastore.rs:247
↓ 4 callersFunctionsetup_datastore_populated
()
aw-query/tests/query.rs:64
↓ 4 callersFunctionsplit_event
(e: &Event, timestamp: DateTime<Utc>)
aw-transform/src/union_no_overlap.rs:63
↓ 4 callersFunctionsplit_url_event
Adds $protocol, $domain, $path and $params keys for events with an "url" key But it only adds the generated field if it exists, for example if a url
aw-transform/src/split_url.rs:24
↓ 4 callersFunctionsync_run
Performs a single sync pass
aw-sync/src/sync.rs:62
↓ 4 callersFunctionunion_no_overlap
(events1: Vec<Event>, mut events2: Vec<Event>)
aw-transform/src/union_no_overlap.rs:15
↓ 3 callersMethodcanonical_events
Build canonical events query string
aw-client-rust/src/queries.rs:132
↓ 3 callersMethodclose
Should block until worker has stopped
aw-datastore/src/worker.rs:685
↓ 3 callersMethodcreate_bucket
(&self, bucket: &Bucket)
aw-client-rust/src/lib.rs:104
↓ 3 callersFunctioncreate_event
(data_str: &str)
aw-sync/tests/sync.rs:52
↓ 3 callersMethoddelete_events_by_id
( &self, bucket_id: &str, event_ids: Vec<i64>, )
aw-datastore/src/worker.rs:609
↓ 3 callersFunctionfind_bucket
Finds the first bucket which starts with the specified string, and optionally matches a hostname.
aw-transform/src/find_bucket.rs:5
↓ 3 callersFunctionget_cache_dir
()
aw-datastore/tests/datastore.rs:40
↓ 3 callersMethodget_event
(&self, bucket_id: &str, event_id: i64)
aw-datastore/src/worker.rs:548
↓ 3 callersMethodget_event_count
( &self, bucket_id: &str, starttime_opt: Option<DateTime<Utc>>, endtime_opt: O
aw-datastore/src/worker.rs:596
↓ 3 callersMethodget_event_count
(&self, bucket_id: &str)
aw-sync/src/accessmethod.rs:59
↓ 3 callersMethodget_key_value
(&self, key: &str)
aw-datastore/src/worker.rs:631
↓ 3 callersFunctionget_log_dir
(module: &str)
aw-server/src/dirs.rs:62
↓ 3 callersFunctioninit_teststate
()
aw-sync/tests/sync.rs:21
↓ 3 callersFunctioninsert_events
(ds: &Datastore, bucketname: &str, num_events: i64)
aw-query/benches/benchmark.rs:55
↓ 3 callersMethodinsert_events
( &mut self, conn: &Connection, bucket_id: &str, mut events: Vec<Event>, )
aw-datastore/src/datastore.rs:463
↓ 3 callersMethodinsert_events
( &self, bucketname: &str, events: Vec<Event>, )
aw-client-rust/src/lib.rs:199
↓ 3 callersFunctionlog_buckets
(ds: &dyn AccessMethod)
aw-sync/src/sync.rs:391
↓ 3 callersFunctionparse_key
(key: String)
aw-server/src/endpoints/settings.rs:11
↓ 3 callersFunctionpull
(host: &str, client: &AwClient)
aw-sync/src/sync_wrapper.rs:15
↓ 3 callersFunctionpull_all
(client: &AwClient)
aw-sync/src/sync_wrapper.rs:7
↓ 3 callersFunctionpush_with_hostname
(client: &AwClient, hostname: &str)
aw-sync/src/sync_wrapper.rs:63
↓ 3 callersFunctionredirect_bad_request
(request: &mut Request)
aw-server/src/endpoints/hostcheck.rs:53
↓ 3 callersMethodresolve
(&self, file_path: &str)
aw-server/src/endpoints/mod.rs:29
↓ 3 callersFunctionsetup_logger
(module: &str, testing: bool, verbose: bool)
aw-server/src/logging.rs:8
↓ 2 callersFunctioncategorize
Categorizes a list of events An event can only have one category, although the category may have a hierarchy, for instance: "Work -> ActivityWatch ->
aw-transform/src/classify.rs:99
↓ 2 callersMethodclose
(&self)
aw-sync/src/accessmethod.rs:62
↓ 2 callersFunctioncreate_datastore
(path: &Path)
aw-sync/src/sync.rs:186
↓ 2 callersFunctioncreate_events
(ds: &Datastore, bucket_id: &str, n: i64)
aw-sync/tests/sync.rs:70
↓ 2 callersFunctioncreate_events
(num_events: i64)
aw-transform/benches/bench.rs:25
↓ 2 callersFunctiondefault_cors
()
aw-server/src/config.rs:102
↓ 2 callersMethoddelete_bucket
(&self, bucket_id: &str)
aw-datastore/src/worker.rs:500
↓ 2 callersMethoddelete_bucket
(&self, bucketname: &str)
aw-client-rust/src/lib.rs:130
↓ 2 callersMethoddelete_key_value
(&self, key: &str)
aw-datastore/src/worker.rs:644
↓ 2 callersMethodend
(&self)
aw-models/src/timeinterval.rs:51
↓ 2 callersMethodfilter_event
Filter a single event for a given bucket. Applies all matching rules. Returns None if dropped, Some (possibly redacted) event if kept.
aw-datastore/src/privacy_filter.rs:183
↓ 2 callersFunctionfind_remotes_nonlocal
Returns a list of all remotes, excluding local ones
aw-sync/src/util.rs:92
↓ 2 callersFunctionget_all_buckets_map
(datastores: Vec<&Datastore>)
aw-sync/tests/sync.rs:90
↓ 2 callersMethodget_bucket
(&self, bucketname: &str)
aw-client-rust/src/lib.rs:90
↓ 2 callersFunctionget_data_dir
()
aw-server/src/dirs.rs:32
↓ 2 callersFunctionget_device_id
Retrieves the device ID, if none exists it generates one (using UUID v4)
aw-server/src/device_id.rs:8
next →1–100 of 516, ranked by callers