bitfl0wer
1b9ccf3154
add "new" method for RegSchema with custom errors
2023-04-15 22:06:18 +02:00
bitfl0wer
db45e493ec
Add TotpSchema
2023-04-15 21:20:32 +02:00
bitfl0wer
e1003ac2b6
Update RegisterSchema, add LoginSchema
2023-04-15 21:16:47 +02:00
bitfl0wer
ff60853d0b
create RegisterSchema
2023-04-15 21:12:33 +02:00
bitfl0wer
4f922e163f
create schemas.rs
2023-04-15 20:16:18 +02:00
bitfl0wer
b8cc3bdf6b
add images
2023-04-15 18:33:18 +02:00
bitfl0wer
1f40417ee4
update readme, add images
2023-04-15 18:33:17 +02:00
bitfl0wer
f224cf8c97
Merge branch 'main' of https://github.com/polyphony-chat/chorus
2023-04-15 18:16:28 +02:00
bitfl0wer
8ac0c2994f
add test_send_request
2023-04-15 18:16:26 +02:00
Flori
111b8dd8f0
Update rust.yml
2023-04-15 17:50:48 +02:00
Flori
7d7a4d102a
Update rust.yml
2023-04-15 17:47:24 +02:00
Flori
592d3a2559
Update rust.yml
2023-04-15 17:44:58 +02:00
Flori
2122bf8a1c
Update rust.yml
2023-04-15 17:42:31 +02:00
Flori
9baafc0371
Update rust.yml
2023-04-15 17:35:07 +02:00
Flori
748b4b1d14
Update rust.yml
2023-04-15 17:31:45 +02:00
Flori
ece8221e79
Update rust.yml
2023-04-15 17:29:27 +02:00
Flori
b120d693e6
Host local spacebar server
2023-04-15 17:26:44 +02:00
bitfl0wer
6b98a2cc23
add limit updates for Error, Global, Ip
...
Despite Error, Global and Ip technically being handled seperately, we still need to update their "reset" and "limit" values to match what the API tells us.
2023-04-15 17:12:33 +02:00
bitfl0wer
2ec0d3b9c8
remove unneccessary variable
2023-04-15 17:09:42 +02:00
bitfl0wer
d30343df38
add add_remaining
...
add_remaining() adds an i64 to the interal "remaining: u64" with underflow protection.
2023-04-15 17:08:19 +02:00
bitfl0wer
62358d05db
update internal values through mut ref
2023-04-15 17:07:46 +02:00
bitfl0wer
4b754f3131
🎉 mark rate limiter as complete (with hint)
2023-04-15 14:58:19 +02:00
bitfl0wer
c01adc28fa
add fallback if no rate limit header received
2023-04-15 14:55:50 +02:00
bitfl0wer
ce075524c8
Derive PartialEq and Eq to use assertEq in tests
2023-04-15 13:54:57 +02:00
bitfl0wer
b758246b12
add test which checks instance rate limits working
2023-04-15 13:54:33 +02:00
bitfl0wer
38bf6dd5d1
rename tests
2023-04-15 13:27:43 +02:00
bitfl0wer
57a1df35e6
Fix incorrect url formatting, add more tests
2023-04-15 13:27:34 +02:00
bitfl0wer
13a2b2daab
Fixed goofy ahh way to remove a slash from the end of the url
2023-04-15 13:03:51 +02:00
bitfl0wer
ead320f145
Derive Debug, start debugging
2023-04-14 23:38:36 +02:00
bitfl0wer
3e405169e3
add documentation
2023-04-14 23:01:48 +02:00
bitfl0wer
a8536df67e
make send_request return Option<Response>
2023-04-14 22:40:13 +02:00
bitfl0wer
f8da39b3d2
add send_request method
2023-04-14 22:22:23 +02:00
bitfl0wer
eb67dda8b0
Derive copy trait
2023-04-14 22:22:11 +02:00
bitfl0wer
91fd86d3fc
add new struct, send_request and can_send_request
2023-04-14 18:29:20 +02:00
bitfl0wer
599407373e
reduce code complexity& duplication, fix oversight
2023-04-14 17:11:13 +02:00
bitfl0wer
15d9c9af7e
reduce code duplication
2023-04-14 17:09:50 +02:00
bitfl0wer
d00296790f
handle resetting rate limits
2023-04-14 16:56:54 +02:00
bitfl0wer
2b1528564d
implement update limits
2023-04-12 22:59:08 +02:00
bitfl0wer
5cbbddf945
change return type from Limits to HashMap
2023-04-12 22:18:20 +02:00
bitfl0wer
b5b81aba26
Fix spelling
2023-04-12 21:31:09 +02:00
bitfl0wer
6ca3bcd12c
make code compile
2023-04-12 18:34:20 +02:00
bitfl0wer
4b3cd3a5d3
add update_limits (TODO) and add_to_queue
2023-04-12 18:33:16 +02:00
bitfl0wer
ff9424f7ee
impl display for limittype, add limittype
2023-04-12 18:32:49 +02:00
bitfl0wer
910313d0ca
add .iter() to Limits
2023-04-12 18:18:55 +02:00
bitfl0wer
39a2c5340a
Optimize imports, allow dead code where needed
2023-04-12 17:10:12 +02:00
bitfl0wer
317c8e801e
refactor limit.rs, moved some logic
2023-04-12 16:49:18 +02:00
bitfl0wer
2d42423a1f
me when i write bad code
2023-04-12 15:49:12 +02:00
bitfl0wer
9795b8696c
Add todo
2023-04-11 21:27:37 +02:00
bitfl0wer
e8cad2a4ff
fix can_send_request
2023-04-11 21:27:06 +02:00
bitfl0wer
d9b6d77c69
update readme
2023-04-11 18:18:24 +02:00