Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/ThijmenGThN/swaparr
/ functions
Functions
22 in github.com/ThijmenGThN/swaparr
⨍
Functions
22
◇
Types & classes
6
↓ 13 callers
Function
default
Voids provided vars and returns a default value.
src/utils/system.rs:20
↓ 11 callers
Function
alert
(method: &str, title: &str, message: &str, error: Option<String>)
src/utils/log.rs:9
↓ 8 callers
Function
exit
Delayed process exit, looks better on Windows if running without Docker.
src/utils/system.rs:31
↓ 4 callers
Function
string_time_notation_to_ms
Converts human-readable time notation to milliseconds.
src/utils/parse.rs:20
↓ 3 callers
Function
get
Obtains Downloads from Starr, paginating through all results.
src/queue.rs:117
↓ 3 callers
Function
string_to_bool
String to boolean translator.
src/utils/parse.rs:141
↓ 2 callers
Function
string_bytesize_to_bytes
This will convert for example "1 TB", "512 MB", <"1.5 GB" to 1500000 (bytes)>.
src/utils/parse.rs:25
↓ 1 callers
Function
banner
(env: &utils::system::Envs)
src/utils/log.rs:21
↓ 1 callers
Function
baseapi
Returns the API version based on platform.
src/utils/parse.rs:65
↓ 1 callers
Function
delete
Delete Download from Starr.
src/queue.rs:46
↓ 1 callers
Function
empty
()
src/utils/log.rs:3
↓ 1 callers
Function
env
Returns environment variables from the host.
src/utils/system.rs:37
↓ 1 callers
Function
fetch_page
Fetches a single page from the Starr queue API.
src/queue.rs:61
↓ 1 callers
Function
ms_to_eta_string
This will pretty-print an ETA from milliseconds.
src/utils/parse.rs:9
↓ 1 callers
Function
process
Determines if the download is eligible to be striked.
src/queue.rs:144
↓ 1 callers
Function
queueapi
Returns the API endpoint based on platform. The returned URL does not include a `page` parameter — queue::get() appends it per request.
src/utils/parse.rs:86
↓ 1 callers
Function
record_to_download
Converts a Record into a Download.
src/queue.rs:88
↓ 1 callers
Function
recordname
This function extracts the name from a record based on the provided platform.
src/utils/parse.rs:108
↓ 1 callers
Function
render
(contents: &Vec<TableContent>)
src/libs/table.rs:14
↓ 1 callers
Function
string_hms_to_ms
Converts human-readable string (from Starr API) to milliseconds.
src/utils/parse.rs:30
↓ 1 callers
Function
test
(platform: &str, baseapi: &str, apikey: &str)
src/tests/api.rs:5
Function
main
()
src/main.rs:8