shockrah dd3bbeabd8 InviteRow structure has some methods listed below:
+ new() -> create a new ready to insert invite
+ from_tuple -> helps us translate db responses into a struct
+ as_json_str -> String which we can use as a json payload(jank but whatever it works with proper headers)

FUnctions:
get_invite_by_code: as the name implies grabs an invite assuming its in our db otherwise None
record_invite_usage: blindly modifies the row in the schema, assumes that if we get to this point we're ok to ignore erroneous possibilities
join_invite_code: main dispatcher for joining using the /invite/join route
create_invite: meant to the be the route handler for creating invites later on
Needed: test module since we've basically reworked the whole auth/invite system in one day
2020-06-02 03:44:33 -07:00
2019-11-10 22:25:37 -08:00
2019-11-24 20:10:39 -08:00

FreeChat

Decentralizaed chat platform

Currently in a state of design and not implementation. I.E. there's still massive amounts of groundwork that need to be reasoned about before it can be built.

S
Description
FOSS Decentralized chat platform
Readme
11 MiB
0 Stars 1 Watchers 0 Forks
Languages
Rust 69.1%
JavaScript 12.5%
Python 7.2%
TypeScript 3.4%
Shell 3.1%
Other 4.7%