focalboard/server/services/store/sqlstore
Agniva De Sarker 8e72b9c528
Add RPC API support to plugin (#619)
* Add RPC API support to plugin

We use the mattermost-plugin-api client to create the sql.DB object
and pass it to the store.

To keep a common point of entry for both the standalone server
and plugin, we refactor the store creation part out of server.New
and pass the DB as a dependency to the server constructor.

This allow us to create different stores in plugin and standalone,
so that the server code remains unaware of any differences.

https://focalboard-community.octo.mattermost.com/workspace/zyoahc9uapdn3xdptac6jb69ic?id=285b80a3-257d-41f6-8cf4-ed80ca9d92e5&v=495cdb4d-c13a-4992-8eb9-80cfee2819a4&c=c7386db7-65fd-469b-8bcf-8dc8f8e61e4f

* Support linux desktop app

* refactor

* fix typos

* Change authlayer to use existing DB conn too
2021-06-25 16:49:06 +02:00
..
initializations Fixes for workspace support (#321) 2021-04-26 13:43:02 +02:00
migrations Fixes for workspace support (#321) 2021-04-26 13:43:02 +02:00
blocks.go First pass linter cleanup (#603) 2021-06-21 11:21:42 +02:00
initialize.go First pass linter cleanup (#603) 2021-06-21 11:21:42 +02:00
migrate.go First pass linter cleanup (#603) 2021-06-21 11:21:42 +02:00
migrate_test.go Fix MySQL migration connection when the DSN doesn't contain any query parameters (#557) 2021-06-11 11:18:11 +02:00
session.go First pass linter cleanup (#603) 2021-06-21 11:21:42 +02:00
sharing.go First pass linter cleanup (#603) 2021-06-21 11:21:42 +02:00
sqlstore.go Add RPC API support to plugin (#619) 2021-06-25 16:49:06 +02:00
sqlstore_test.go Add RPC API support to plugin (#619) 2021-06-25 16:49:06 +02:00
system.go Adding system store tests 2021-04-30 16:48:45 +02:00
user.go First pass linter cleanup (#603) 2021-06-21 11:21:42 +02:00
workspaces.go First pass linter cleanup (#603) 2021-06-21 11:21:42 +02:00