MCPcopy Create free account

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

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

Methodfrom
(re: Regex)
aw-transform/src/classify.rs:86
Methodfrom_json
Parse rules from a JSON string (as stored in settings).
aw-datastore/src/privacy_filter.rs:141
Methodget_buckets
(&self)
aw-datastore/src/datastore.rs:459
Methodget_event
( &mut self, conn: &Connection, bucket_id: &str, event_id: i64, )
aw-datastore/src/datastore.rs:698
Methodget_event_count
( &self, conn: &Connection, bucket_id: &str, starttime_opt: Option<DateTime<Ut
aw-datastore/src/datastore.rs:885
Methodget_events_unclipped
( &mut self, conn: &Connection, bucket_id: &str, starttime_opt: Option<DateTim
aw-datastore/src/datastore.rs:867
Methodget_key_value
(&self, conn: &Connection, key: &str)
aw-datastore/src/datastore.rs:972
Methodget_key_values
( &self, conn: &Connection, pattern: &str, )
aw-datastore/src/datastore.rs:998
Functionget_nanos
(duration: &chrono::Duration)
aw-models/src/duration.rs:6
Methodget_settings
(&self)
aw-client-rust/src/lib.rs:259
Methodhandle
( &self, request: &'r Request<'_>, _: rocket::Data<'r>, )
aw-server/src/endpoints/hostcheck.rs:38
Methodhandle
( &self, request: &'r Request<'_>, _: rocket::Data<'r>, )
aw-server/src/endpoints/apikey.rs:60
Methodheartbeat
( &mut self, conn: &Connection, bucket_id: &str, heartbeat: Event, pul
aw-datastore/src/datastore.rs:645
Methodinfo
(&self)
aw-server/src/endpoints/hostcheck.rs:62
Methodjson_schema
(gen: &mut SchemaGenerator)
aw-models/src/tryvec.rs:22
Functionlimit_events
( args: Vec<DataType>, _env: &VarEnv, _ds: &Datastore, )
aw-query/src/functions.rs:338
Functionmain
()
aw-server/build.rs:3
Functionmain
()
aw-server/src/main.rs:75
Functionmain
()
aw-models/examples/schema.rs:5
Functionmain
()
aw-sync/src/main.rs:140
Functionmerge_events_by_keys
( args: Vec<DataType>, _env: &VarEnv, _ds: &Datastore, )
aw-query/src/functions.rs:397
Functionmerge_if_vecs
(lhs: Expr_, rhs: Expr_)
aw-query/src/parser.rs:11
Methodmigrate_hostname
Migrates all buckets whose hostname is "unknown" or "Unknown" to `new_hostname`. Events are left untouched; only the bucket metadata is updated. Retur
aw-datastore/src/datastore.rs:1082
Methodmigrate_test_bucket_names
Migrates all buckets whose name starts with `aw-watcher-android-test` to use `aw-watcher-android` instead. This covers the old debug-build bucket nam
aw-datastore/src/datastore.rs:1122
Methodnew
(s: &'a str)
aw-query/src/lexer.rs:95
Methodnew
(name: &str)
aw-server/src/config.rs:190
Methodnew
(config: &AWConfig)
aw-server/src/endpoints/hostcheck.rs:25
Methodnew
(config: &AWConfig)
aw-server/src/endpoints/apikey.rs:42
Methodnew
(asset_path: Option<PathBuf>)
aw-server/src/endpoints/mod.rs:25
Methodnew
(status: Status, err: String)
aw-server/src/endpoints/util.rs:20
Methodnew
( conn: &Connection, migrate_enabled: bool, )
aw-datastore/src/datastore.rs:217
Methodnew
( responder: mpsc_requests::RequestReceiver<Command, Result<Response, DatastoreError>>, legacy
aw-datastore/src/worker.rs:105
Methodnew
(rules: Vec<PrivacyFilterRule>)
aw-datastore/src/privacy_filter.rs:110
Methodnew
(timestamp: DateTime<Utc>, duration: Duration, data: Map<String, Value>)
aw-models/src/event.rs:34
Methodnew
(mut vec: Vec<T>)
aw-models/src/tryvec.rs:46
Methodnew
(start: DateTime<Utc>, end: DateTime<Utc>)
aw-models/src/timeinterval.rs:26
Methodnew
(host: &str, port: u16, name: &str)
aw-client-rust/src/lib.rs:64
Methodnew
(host: &str, port: u16, name: &str)
aw-client-rust/src/blocking.rs:40
Methodnew
(client_name: &str)
aw-client-rust/src/single_instance.rs:26
Methodnew
( regex_str: &str, ignore_case: bool, select_keys: Option<Vec<String>>, )
aw-transform/src/classify.rs:31
Methodnew_empty
()
aw-models/src/tryvec.rs:54
Methodnew_encrypted
(dbpath: String, key: String, legacy_import: bool)
aw-datastore/src/worker.rs:461
Methodnew_from_string
(period: &str)
aw-models/src/timeinterval.rs:30
Methodnew_in_memory
(legacy_import: bool)
aw-datastore/src/worker.rs:451
Methodnew_with_api_key
( host: &str, port: u16, name: &str, api_key: Option<String>, )
aw-client-rust/src/lib.rs:68
Methodnew_with_api_key
( host: &str, port: u16, name: &str, api_key: Option<String>, )
aw-client-rust/src/blocking.rs:44
Methodon_ignite
(&self, rocket: Rocket<rocket::Build>)
aw-server/src/endpoints/hostcheck.rs:69
Methodon_ignite
(&self, rocket: Rocket<rocket::Build>)
aw-server/src/endpoints/apikey.rs:93
Methodon_request
(&self, request: &mut Request<'_>, _: &mut Data<'_>)
aw-server/src/endpoints/hostcheck.rs:79
Methodon_request
(&self, request: &mut Request<'_>, _: &mut Data<'_>)
aw-server/src/endpoints/apikey.rs:103
Functionparse_list
(arg: &str)
aw-sync/src/main.rs:125
Functionparse_start_date
(arg: &str)
aw-sync/src/main.rs:120
Functionperiod_union
( args: Vec<DataType>, _env: &VarEnv, _ds: &Datastore, )
aw-query/src/functions.rs:556
Functionprint
( args: Vec<DataType>, _env: &VarEnv, _ds: &Datastore, )
aw-query/src/functions.rs:128
Functionquery_bucket
( args: Vec<DataType>, env: &VarEnv, ds: &Datastore, )
aw-query/src/functions.rs:139
Functionquery_bucket_names
( args: Vec<DataType>, _env: &VarEnv, ds: &Datastore, )
aw-query/src/functions.rs:170
Methodrefresh_privacy_filter
(&self)
aw-datastore/src/worker.rs:649
Methodrename_bucket
Renames a bucket from `old_id` to `new_id`. Events are left untouched because they reference the integer row ID, not the name. Returns `NoSuchBucket`
aw-datastore/src/datastore.rs:1045
Methodrespond_to
(self, _: &Request)
aw-server/src/endpoints/util.rs:29
Functionroot_css
(file: PathBuf, state: &State<ServerState>)
aw-server/src/endpoints/mod.rs:69
Functionroot_dark
(state: &State<ServerState>)
aw-server/src/endpoints/mod.rs:94
Functionroot_favicon
(state: &State<ServerState>)
aw-server/src/endpoints/mod.rs:89
Functionroot_fonts
(file: PathBuf, state: &State<ServerState>)
aw-server/src/endpoints/mod.rs:74
Functionroot_index
(state: &State<ServerState>)
aw-server/src/endpoints/mod.rs:64
Functionroot_js
(file: PathBuf, state: &State<ServerState>)
aw-server/src/endpoints/mod.rs:79
Functionroot_logo
(state: &State<ServerState>)
aw-server/src/endpoints/mod.rs:99
Functionroot_manifest
(state: &State<ServerState>)
aw-server/src/endpoints/mod.rs:104
Functionroot_static
(file: PathBuf, state: &State<ServerState>)
aw-server/src/endpoints/mod.rs:84
Methodschema_name
()
aw-models/src/tryvec.rs:18
Methodsend_success
( request: reqwest::RequestBuilder, )
aw-client-rust/src/lib.rs:58
Methodserialize
(&self, serializer: S)
aw-models/src/tryvec.rs:74
Functionserialize_function
( _element: &str, _fun: &functions::QueryFn, _serializer: S, )
aw-query/src/datatype.rs:30
Functionserver_info
(config: &State<AWConfig>, state: &State<ServerState>)
aw-server/src/endpoints/mod.rs:109
Functionsetting_delete
(state: &State<ServerState>, key: String)
aw-server/src/endpoints/settings.rs:91
Functionsetting_get
( state: &State<ServerState>, key: String, )
aw-server/src/endpoints/settings.rs:50
Functionsetting_set
( state: &State<ServerState>, key: String, value: Json<serde_json::Value>, )
aw-server/src/endpoints/settings.rs:65
Functionsettings_get
( state: &State<ServerState>, )
aw-server/src/endpoints/settings.rs:24
Functionsetup_test
TODO: Find a way to reuse this (previously used in an integration test)
aw-sync/tests/sync.rs:213
Functionsort_by_duration
( args: Vec<DataType>, _env: &VarEnv, _ds: &Datastore, )
aw-query/src/functions.rs:319
Functionsort_by_timestamp
( args: Vec<DataType>, _env: &VarEnv, _ds: &Datastore, )
aw-query/src/functions.rs:359
Functionsplit_url_events
( args: Vec<DataType>, _env: &VarEnv, _ds: &Datastore, )
aw-query/src/functions.rs:524
Functionsum_durations
( args: Vec<DataType>, _env: &VarEnv, _ds: &Datastore, )
aw-query/src/functions.rs:378
Functiontag
( args: Vec<DataType>, _env: &VarEnv, _ds: &Datastore, )
aw-query/src/functions.rs:299
Functiontest_all_functions
()
aw-query/tests/query.rs:337
Functiontest_allow_normal_window
()
aw-datastore/src/privacy_filter.rs:266
Functiontest_api_key_invalid
()
aw-server/src/endpoints/apikey.rs:237
Functiontest_api_key_required
()
aw-server/src/endpoints/apikey.rs:192
Functiontest_api_key_valid
()
aw-server/src/endpoints/apikey.rs:223
Functiontest_api_key_wrong_scheme
()
aw-server/src/endpoints/apikey.rs:251
Functiontest_bool
()
aw-query/tests/query.rs:99
Functiontest_bucket
()
aw-server/tests/api.rs:32
Functiontest_bucket
()
aw-models/src/bucket.rs:46
Functiontest_bucket_create_delete
()
aw-datastore/tests/datastore.rs:64
Functiontest_bucket_metadata_start_end
()
aw-datastore/tests/datastore.rs:304
Functiontest_bucket_scoping
()
aw-datastore/src/privacy_filter.rs:288
Functiontest_buckets_created
()
aw-sync/tests/sync.rs:100
Functiontest_canonical_events_with_empty_classes
()
aw-client-rust/src/queries.rs:431
Functiontest_canonical_events_with_existing_classes
()
aw-client-rust/src/queries.rs:454
Functiontest_categorize
()
aw-query/tests/query.rs:374
Functiontest_categorize
()
aw-transform/src/classify.rs:222
← previousnext →301–400 of 516, ranked by callers