Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ActivityWatch/aw-server-rust
/ functions
Functions
516 in github.com/ActivityWatch/aw-server-rust
⨍
Functions
516
◇
Types & classes
79
↓ 69 callers
Function
query
(code: &str, ti: &TimeInterval, ds: &Datastore)
aw-query/src/lib.rs:53
↓ 46 callers
Method
next
(&mut self)
aw-query/src/lexer.rs:122
↓ 21 callers
Function
args_length
(args: &[DataType], len: usize)
aw-query/src/functions.rs:599
↓ 21 callers
Method
request
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 callers
Method
get_events
( &self, bucket_id: &str, starttime_opt: Option<DateTime<Utc>>, endtime_opt: O
aw-datastore/src/worker.rs:556
↓ 14 callers
Function
setup_datastore_empty
()
aw-query/tests/query.rs:41
↓ 14 callers
Function
setup_testserver
()
aw-server/tests/api.rs:21
↓ 13 callers
Method
calculate_endtime
(&self)
aw-models/src/event.rs:42
↓ 13 callers
Function
create_error_object
(env: &JNIEnv, msg: String)
aw-server/src/android/mod.rs:100
↓ 13 callers
Function
rust_string_to_jstring
Helper function to convert Rust string to Java string
aw-sync/src/android.rs:10
↓ 12 callers
Method
insert_events
( &self, bucket_id: &str, events: &[Event], )
aw-datastore/src/worker.rs:523
↓ 11 callers
Function
heartbeat
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 callers
Function
string_to_jstring
(env: &JNIEnv, string: String)
aw-server/src/android/mod.rs:94
↓ 10 callers
Function
create_test_bucket
(ds: &Datastore)
aw-datastore/tests/datastore.rs:57
↓ 10 callers
Function
openDatastore
()
aw-server/src/android/mod.rs:53
↓ 10 callers
Function
set_setting_request
(client: &Client, key: &str, value: &Value)
aw-server/tests/api.rs:561
↓ 9 callers
Function
assert_serialized_deserialized_eq
(data: &str, eq: &str)
aw-models/src/tryvec.rs:160
↓ 9 callers
Function
get_file
(file: PathBuf, state: &State<ServerState>)
aw-server/src/endpoints/mod.rs:122
↓ 9 callers
Function
jstring_to_string
(env: &JNIEnv, string: JString)
aw-server/src/android/mod.rs:89
↓ 8 callers
Function
_unwrap_empty_response
(response: Response)
aw-datastore/src/worker.rs:87
↓ 8 callers
Method
get_bucket
(&self, bucket_id: &str)
aw-datastore/src/datastore.rs:451
↓ 8 callers
Method
get_buckets
(&self)
aw-sync/src/accessmethod.rs:29
↓ 8 callers
Method
get_events
( &self, bucket_id: &str, start: Option<DateTime<Utc>>, end: Option<DateTime<U
aw-sync/src/accessmethod.rs:40
↓ 7 callers
Function
flood
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 callers
Function
get_sync_dir
()
aw-sync/src/dirs.rs:29
↓ 7 callers
Function
parse
(i: I)
aw-query/src/parser.rs:270
↓ 7 callers
Function
sync_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 callers
Function
test_event
(title: &str)
aw-datastore/src/privacy_filter.rs:248
↓ 6 callers
Function
build_rocket
(server_state: ServerState, config: AWConfig)
aw-server/src/endpoints/mod.rs:134
↓ 6 callers
Method
create_bucket
(&self, bucket: &Bucket)
aw-sync/src/accessmethod.rs:35
↓ 6 callers
Function
filter_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 callers
Function
filter_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 callers
Method
force_commit
(&self)
aw-datastore/src/worker.rs:618
↓ 6 callers
Method
heartbeat
(&self, bucket_id: &str, event: Event, duration: f64)
aw-sync/src/accessmethod.rs:49
↓ 6 callers
Method
insert_events
(&self, bucket_id: &str, events: Vec<Event>)
aw-sync/src/accessmethod.rs:54
↓ 6 callers
Function
setup_testserver
(api_key: Option<String>)
aw-server/src/endpoints/apikey.rs:159
↓ 6 callers
Function
sort_by_timestamp
Sort a list of events by timestamp
aw-transform/src/sort.rs:4
↓ 5 callers
Function
create_bucket
(ds: &Datastore, n: i32)
aw-sync/tests/sync.rs:28
↓ 5 callers
Method
create_bucket
(&self, bucket: &Bucket)
aw-datastore/src/worker.rs:495
↓ 5 callers
Method
get_buckets
(&self)
aw-datastore/src/worker.rs:513
↓ 5 callers
Method
get_buckets
(&self)
aw-client-rust/src/lib.rs:99
↓ 5 callers
Method
heartbeat
( &self, bucket_id: &str, heartbeat: Event, pulsetime: f64, )
aw-datastore/src/worker.rs:535
↓ 5 callers
Function
period_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 callers
Method
apply
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 callers
Function
block_on
(future: F)
aw-client-rust/tests/status_errors.rs:9
↓ 4 callers
Function
check_synced_buckets_equal_to_src
(all_buckets_map: &HashMap<String, (&Datastore, Bucket)>)
aw-sync/tests/sync.rs:118
↓ 4 callers
Method
create_bucket_simple
( &self, bucketname: &str, buckettype: &str, )
aw-client-rust/src/lib.rs:110
↓ 4 callers
Function
create_config
(testing: bool, config_override: Option<&Path>)
aw-server/src/config.rs:137
↓ 4 callers
Function
db_path
(testing: bool)
aw-server/src/dirs.rs:104
↓ 4 callers
Function
default_classes
Returns the default categorization classes
aw-client-rust/src/classes.rs:31
↓ 4 callers
Method
get_bucket
(&self, bucket_id: &str)
aw-datastore/src/worker.rs:505
↓ 4 callers
Method
get_bucket
(&self, bucket_id: &str)
aw-sync/src/accessmethod.rs:32
↓ 4 callers
Function
get_client
Helper function to get AwClient from port
aw-sync/src/android.rs:16
↓ 4 callers
Method
get_info
(&self)
aw-client-rust/src/lib.rs:249
↓ 4 callers
Method
get_stored_buckets
(&mut self, conn: &Connection)
aw-datastore/src/datastore.rs:247
↓ 4 callers
Function
setup_datastore_populated
()
aw-query/tests/query.rs:64
↓ 4 callers
Function
split_event
(e: &Event, timestamp: DateTime<Utc>)
aw-transform/src/union_no_overlap.rs:63
↓ 4 callers
Function
split_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 callers
Function
sync_run
Performs a single sync pass
aw-sync/src/sync.rs:62
↓ 4 callers
Function
union_no_overlap
(events1: Vec<Event>, mut events2: Vec<Event>)
aw-transform/src/union_no_overlap.rs:15
↓ 3 callers
Method
canonical_events
Build canonical events query string
aw-client-rust/src/queries.rs:132
↓ 3 callers
Method
close
Should block until worker has stopped
aw-datastore/src/worker.rs:685
↓ 3 callers
Method
create_bucket
(&self, bucket: &Bucket)
aw-client-rust/src/lib.rs:104
↓ 3 callers
Function
create_event
(data_str: &str)
aw-sync/tests/sync.rs:52
↓ 3 callers
Method
delete_events_by_id
( &self, bucket_id: &str, event_ids: Vec<i64>, )
aw-datastore/src/worker.rs:609
↓ 3 callers
Function
find_bucket
Finds the first bucket which starts with the specified string, and optionally matches a hostname.
aw-transform/src/find_bucket.rs:5
↓ 3 callers
Function
get_cache_dir
()
aw-datastore/tests/datastore.rs:40
↓ 3 callers
Method
get_event
(&self, bucket_id: &str, event_id: i64)
aw-datastore/src/worker.rs:548
↓ 3 callers
Method
get_event_count
( &self, bucket_id: &str, starttime_opt: Option<DateTime<Utc>>, endtime_opt: O
aw-datastore/src/worker.rs:596
↓ 3 callers
Method
get_event_count
(&self, bucket_id: &str)
aw-sync/src/accessmethod.rs:59
↓ 3 callers
Method
get_key_value
(&self, key: &str)
aw-datastore/src/worker.rs:631
↓ 3 callers
Function
get_log_dir
(module: &str)
aw-server/src/dirs.rs:62
↓ 3 callers
Function
init_teststate
()
aw-sync/tests/sync.rs:21
↓ 3 callers
Function
insert_events
(ds: &Datastore, bucketname: &str, num_events: i64)
aw-query/benches/benchmark.rs:55
↓ 3 callers
Method
insert_events
( &mut self, conn: &Connection, bucket_id: &str, mut events: Vec<Event>, )
aw-datastore/src/datastore.rs:463
↓ 3 callers
Method
insert_events
( &self, bucketname: &str, events: Vec<Event>, )
aw-client-rust/src/lib.rs:199
↓ 3 callers
Function
log_buckets
(ds: &dyn AccessMethod)
aw-sync/src/sync.rs:391
↓ 3 callers
Function
parse_key
(key: String)
aw-server/src/endpoints/settings.rs:11
↓ 3 callers
Function
pull
(host: &str, client: &AwClient)
aw-sync/src/sync_wrapper.rs:15
↓ 3 callers
Function
pull_all
(client: &AwClient)
aw-sync/src/sync_wrapper.rs:7
↓ 3 callers
Function
push_with_hostname
(client: &AwClient, hostname: &str)
aw-sync/src/sync_wrapper.rs:63
↓ 3 callers
Function
redirect_bad_request
(request: &mut Request)
aw-server/src/endpoints/hostcheck.rs:53
↓ 3 callers
Method
resolve
(&self, file_path: &str)
aw-server/src/endpoints/mod.rs:29
↓ 3 callers
Function
setup_logger
(module: &str, testing: bool, verbose: bool)
aw-server/src/logging.rs:8
↓ 2 callers
Function
categorize
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 callers
Method
close
(&self)
aw-sync/src/accessmethod.rs:62
↓ 2 callers
Function
create_datastore
(path: &Path)
aw-sync/src/sync.rs:186
↓ 2 callers
Function
create_events
(ds: &Datastore, bucket_id: &str, n: i64)
aw-sync/tests/sync.rs:70
↓ 2 callers
Function
create_events
(num_events: i64)
aw-transform/benches/bench.rs:25
↓ 2 callers
Function
default_cors
()
aw-server/src/config.rs:102
↓ 2 callers
Method
delete_bucket
(&self, bucket_id: &str)
aw-datastore/src/worker.rs:500
↓ 2 callers
Method
delete_bucket
(&self, bucketname: &str)
aw-client-rust/src/lib.rs:130
↓ 2 callers
Method
delete_key_value
(&self, key: &str)
aw-datastore/src/worker.rs:644
↓ 2 callers
Method
end
(&self)
aw-models/src/timeinterval.rs:51
↓ 2 callers
Method
filter_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 callers
Function
find_remotes_nonlocal
Returns a list of all remotes, excluding local ones
aw-sync/src/util.rs:92
↓ 2 callers
Function
get_all_buckets_map
(datastores: Vec<&Datastore>)
aw-sync/tests/sync.rs:90
↓ 2 callers
Method
get_bucket
(&self, bucketname: &str)
aw-client-rust/src/lib.rs:90
↓ 2 callers
Function
get_data_dir
()
aw-server/src/dirs.rs:32
↓ 2 callers
Function
get_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