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
↓ 2 callers
Method
get_events
( &self, bucketname: &str, start: Option<DateTime<Utc>>, stop: Option<DateTime
aw-client-rust/src/lib.rs:160
↓ 2 callers
Method
get_events_inner
( &mut self, conn: &Connection, bucket_id: &str, starttime_opt: Option<DateTim
aw-datastore/src/datastore.rs:754
↓ 2 callers
Method
get_events_unclipped
( &self, bucket_id: &str, starttime_opt: Option<DateTime<Utc>>, endtime_opt: O
aw-datastore/src/worker.rs:576
↓ 2 callers
Method
get_key_values
(&self, pattern: &str)
aw-datastore/src/worker.rs:623
↓ 2 callers
Function
import
(datastore: &Datastore, import: BucketsExport)
aw-server/src/endpoints/import.rs:41
↓ 2 callers
Method
interval
(&self)
aw-models/src/event.rs:45
↓ 2 callers
Function
is_testing
()
aw-server/src/config.rs:19
↓ 2 callers
Method
matches
(&self, event: &Event)
aw-transform/src/classify.rs:13
↓ 2 callers
Method
migrate_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 callers
Method
migrate_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 callers
Function
query
(query_req: Json<Query>, state: &State<ServerState>)
aw-server/src/endpoints/query.rs:10
↓ 2 callers
Method
query
( &self, query: &str, timeperiods: Vec<(DateTime<Utc>, DateTime<Utc>)>, )
aw-client-rust/src/lib.rs:136
↓ 2 callers
Method
query_eq
(&self, other: &DataType)
aw-query/src/datatype.rs:63
↓ 2 callers
Method
rename_bucket
Renames a bucket from `old_id` to `new_id`.
aw-datastore/src/worker.rs:654
↓ 2 callers
Function
set_android_data_dir
(path: &str)
aw-server/src/dirs.rs:115
↓ 2 callers
Function
set_field
Set a field value at a dotted path in a serde_json Map.
aw-datastore/src/privacy_filter.rs:223
↓ 2 callers
Function
setup_datastore
()
aw-query/benches/benchmark.rs:35
↓ 2 callers
Function
setup_datastore_with_bucket
()
aw-query/tests/query.rs:45
↓ 2 callers
Function
setup_local_remote
(path: &Path, device_id: &str)
aw-sync/src/sync.rs:168
↓ 2 callers
Function
setup_testserver
(address: String)
aw-server/src/endpoints/hostcheck.rs:124
↓ 2 callers
Function
setup_testserver
(port: u16, api_key: Option<&str>)
aw-client-rust/tests/test.rs:113
↓ 2 callers
Function
spawn_mock_server
(responses: Vec<MockResponse>)
aw-client-rust/tests/status_errors.rs:56
↓ 2 callers
Method
take_inner
(self)
aw-models/src/tryvec.rs:58
↓ 2 callers
Function
test_bucket
()
aw-datastore/tests/datastore.rs:22
↓ 2 callers
Method
update_endtime
(&mut self, bucket: &mut Bucket, event: &Event)
aw-datastore/src/datastore.rs:553
↓ 2 callers
Method
value_matches
(&self, value: &serde_json::Value)
aw-transform/src/classify.rs:60
↓ 2 callers
Function
wait_for_server
(timeout_s: u32, client: &AwClient)
aw-client-rust/tests/test.rs:97
↓ 1 callers
Function
_create_tables
(conn: &Connection, version: i32)
aw-datastore/src/datastore.rs:36
↓ 1 callers
Function
_get_db_version
(conn: &Connection)
aw-datastore/src/datastore.rs:20
↓ 1 callers
Function
_migrate_v0_to_v1
(conn: &Connection)
aw-datastore/src/datastore.rs:63
↓ 1 callers
Function
_migrate_v1_to_v2
(conn: &Connection)
aw-datastore/src/datastore.rs:123
↓ 1 callers
Function
_migrate_v2_to_v3
(conn: &Connection)
aw-datastore/src/datastore.rs:135
↓ 1 callers
Function
_migrate_v3_to_v4
(conn: &Connection)
aw-datastore/src/datastore.rs:161
↓ 1 callers
Function
_migrate_v4_to_v5
(conn: &Connection)
aw-datastore/src/datastore.rs:177
↓ 1 callers
Function
_pick_highest_ranking_category
(acc: Vec<String>, item: &[String])
aw-transform/src/classify.rs:145
↓ 1 callers
Function
build_android_canonical_events
(params: &AndroidQueryParams)
aw-client-rust/src/queries.rs:247
↓ 1 callers
Function
build_browser_events
(params: &DesktopQueryParams)
aw-client-rust/src/queries.rs:278
↓ 1 callers
Function
build_client
(api_key: Option<String>)
aw-client-rust/src/lib.rs:43
↓ 1 callers
Function
build_desktop_canonical_events
(params: &DesktopQueryParams)
aw-client-rust/src/queries.rs:177
↓ 1 callers
Function
categorize_one
(mut event: Event, rules: &[(Vec<String>, Rule)])
aw-transform/src/classify.rs:107
↓ 1 callers
Function
chunk_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 callers
Function
contains_db_file
Check if a directory contains a .db file
aw-sync/src/util.rs:32
↓ 1 callers
Function
contains_subdir_with_db_file
Check if a directory contains a subdirectory that contains a .db file
aw-sync/src/util.rs:48
↓ 1 callers
Function
cors
(config: &AWConfig)
aw-server/src/endpoints/cors.rs:6
↓ 1 callers
Function
create_bucket
(ds: &Datastore, bucketname: String)
aw-query/benches/benchmark.rs:39
↓ 1 callers
Function
daemon
( client: &AwClient, start_date: Option<DateTime<Utc>>, buckets: Option<Vec<String>>, sync_db:
aw-sync/src/main.rs:249
↓ 1 callers
Function
dbfile_path
()
aw-datastore/src/legacy_import.rs:36
↓ 1 callers
Function
default_address
()
aw-server/src/config.rs:98
↓ 1 callers
Function
default_custom_static
()
aw-server/src/config.rs:118
↓ 1 callers
Function
default_port
()
aw-server/src/config.rs:110
↓ 1 callers
Function
default_testing
()
aw-server/src/config.rs:106
↓ 1 callers
Method
delete_event
( &self, bucketname: &str, event_id: i64, )
aw-client-rust/src/lib.rs:223
↓ 1 callers
Function
drain_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 callers
Method
duration
(&self)
aw-models/src/timeinterval.rs:55
↓ 1 callers
Method
ensure_legacy_import
(&mut self, conn: &Connection)
aw-datastore/src/datastore.rs:336
↓ 1 callers
Function
event_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 callers
Function
exclude_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 callers
Function
fill_env
(env: &mut VarEnv)
aw-query/src/functions.rs:9
↓ 1 callers
Method
filter_events
Filter a batch of events for a given bucket.
aw-datastore/src/privacy_filter.rs:197
↓ 1 callers
Function
filter_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 callers
Function
find_remotes
Returns a list of all remote dbs
aw-sync/src/util.rs:80
↓ 1 callers
Function
full_desktop_query
Build a full desktop query using default localhost:5600 configuration
aw-client-rust/src/queries.rs:303
↓ 1 callers
Method
gap
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 callers
Function
get_all_buckets
(datastores: Vec<&Datastore>)
aw-sync/tests/sync.rs:79
↓ 1 callers
Function
get_cache_dir
()
aw-server/src/dirs.rs:47
↓ 1 callers
Function
get_config_dir
()
aw-server/src/dirs.rs:17
↓ 1 callers
Function
get_config_dir
()
aw-sync/src/dirs.rs:10
↓ 1 callers
Function
get_config_path
(testing: bool, config_override: Option<&Path>)
aw-server/src/config.rs:122
↓ 1 callers
Method
get_event_count
(&self, bucketname: &str)
aw-client-rust/src/lib.rs:236
↓ 1 callers
Method
get_events
( &mut self, conn: &Connection, bucket_id: &str, starttime_opt: Option<DateTim
aw-datastore/src/datastore.rs:856
↓ 1 callers
Function
get_hostname
()
aw-client-rust/src/lib.rs:39
↓ 1 callers
Function
get_legacy_buckets
(conn: &Connection)
aw-datastore/src/legacy_import.rs:44
↓ 1 callers
Function
get_legacy_events
( conn: &Connection, bucket_id: i64, )
aw-datastore/src/legacy_import.rs:86
↓ 1 callers
Function
get_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 callers
Function
get_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 callers
Function
get_server_config_dir
()
aw-client-rust/tests/test.rs:46
↓ 1 callers
Function
get_server_config_path
(testing: bool)
aw-sync/src/dirs.rs:20
↓ 1 callers
Function
get_server_port
(testing: bool)
aw-sync/src/util.rs:10
↓ 1 callers
Method
get_setting
(&self, setting: &str)
aw-client-rust/src/lib.rs:254
↓ 1 callers
Function
get_timeinterval
(env: &VarEnv)
aw-query/src/functions.rs:610
↓ 1 callers
Function
get_user_log_dir
()
aw-server/src/dirs.rs:75
↓ 1 callers
Method
handle_request
( &mut self, request: Command, ds: &mut DatastoreInstance, tx: &Transaction,
aw-datastore/src/worker.rs:276
↓ 1 callers
Method
heartbeat
( &self, bucketname: &str, event: &Event, pulsetime: f64, )
aw-client-rust/src/lib.rs:209
↓ 1 callers
Method
info
(&self)
aw-server/src/endpoints/apikey.rs:86
↓ 1 callers
Function
init_env
(ti: &TimeInterval)
aw-query/src/interpret.rs:14
↓ 1 callers
Method
insert_event
( &self, bucketname: &str, event: &Event, )
aw-client-rust/src/lib.rs:188
↓ 1 callers
Method
insert_key_value
( &self, conn: &Connection, key: &str, data: &str, )
aw-datastore/src/datastore.rs:941
↓ 1 callers
Function
interpret_expr
( env: &mut HashMap<String, DataType>, ds: &Datastore, expr: Expr, )
aw-query/src/interpret.rs:36
↓ 1 callers
Function
interpret_prog
( p: Program, ti: &TimeInterval, ds: &Datastore, )
aw-query/src/interpret.rs:21
↓ 1 callers
Method
intersection
The intersection of two intervals
aw-models/src/timeinterval.rs:82
↓ 1 callers
Method
intersects
A boolean whether the two intervals intersect
aw-models/src/timeinterval.rs:93
↓ 1 callers
Function
legacy_import
( new_ds: &mut DatastoreInstance, new_conn: &Connection, )
aw-datastore/src/legacy_import.rs:10
↓ 1 callers
Function
list_buckets
(client: &AwClient)
aw-sync/src/sync.rs:140
↓ 1 callers
Function
load_local_api_key
(host: &str, port: u16)
aw-client-rust/tests/test.rs:54
↓ 1 callers
Method
matches
Check if this rule matches a given event in a given bucket.
aw-datastore/src/privacy_filter.rs:52
↓ 1 callers
Function
merge_events_by_keys
(events: Vec<Event>, keys: Vec<String>)
aw-transform/src/merge.rs:43
↓ 1 callers
Function
push
(client: &AwClient)
aw-sync/src/sync_wrapper.rs:59
↓ 1 callers
Function
redirect_unauthorized
(request: &mut Request)
aw-server/src/endpoints/apikey.rs:77
↓ 1 callers
Method
replace_last_event
( &mut self, conn: &Connection, bucket_id: &str, event_id: i64, event:
aw-datastore/src/datastore.rs:588
↓ 1 callers
Function
reserve_port
()
aw-client-rust/tests/test.rs:140
← previous
next →
101–200 of 516, ranked by callers