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

This pull request cannot be reopened because the branch was deleted.
Sign in to join this conversation.