Refactor sbot into multiple files #20

Closed
notplants wants to merge 5 commits from sbot-refactor into invites
Owner

This PR refactors sbot.rs into multiple files contained with an sbot folder,

  • about
  • friends
  • get_subset
  • history_stream
  • invite
  • publish
  • sbot (contains initialization code)

Organizing the code in this way has the benefit that it continues to be extensible as we add more functionality.

I re-exported all the functions via mod.rs, so that for the library user, their API is identical between this and the previous organization.

A pattern to consider.

This PR refactors sbot.rs into multiple files contained with an sbot folder, - about - friends - get_subset - history_stream - invite - publish - sbot (contains initialization code) Organizing the code in this way has the benefit that it continues to be extensible as we add more functionality. I re-exported all the functions via mod.rs, so that for the library user, their API is identical between this and the previous organization. A pattern to consider.
notplants added 3 commits 2022-01-17 16:48:30 +00:00
notplants added 1 commit 2022-01-17 16:52:03 +00:00
notplants added 1 commit 2022-01-17 16:52:57 +00:00
glyph closed this pull request 2022-02-07 07:58:24 +00:00

Pull request closed

Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: golgi-ssb/golgi#20
No description provided.