-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(GODT-1757): Refactor code to have better data separation (#91)
* fix(GODT-1757): Refactor code to have better data separation Due to Go's lackluster import system we had to refactor certain types into separate packages so we can better control what each type has access to. All the database related code has been moved into the db package. All the remote user management code has been been moved into the remote package. Existing remote code has been erased. All things related to state and snapshot have been moved into the state package. To avoid cyclic imports, the state package declares two interfaces which provide access to some user specific data as well as a custom connector implementation on which metadata can be attached. * fix(GODT-1757): Remove Apply functions from State's user interface Cleanup the code by remove the apply functions from the user interface. Common code has been put under update_mailbox.go and each separate implementation is charged with pushing the updates. Thanks to this, all the user's connector updates can just be queued as the code is no longer shared between states and user.
- Loading branch information
1 parent
731e472
commit 86b442b
Showing
146 changed files
with
1,653 additions
and
1,645 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.