fiddling with federation

This commit is contained in:
tsmethurst 2021-05-02 19:51:12 +02:00
commit 74d5a0588f
15 changed files with 587 additions and 416 deletions

View file

@ -31,3 +31,11 @@ type ClientAPIModule interface {
Route(s router.Router) error
CreateTables(db db.DB) error
}
// FederationAPIModule represents a chunk of code (usually contained in a single package) that adds a set
// of functionalities and/or side effects to a router, by mapping routes and/or middlewares onto it--in other words, a REST API ;)
// Unlike ClientAPIModule, federation API module is not intended to be interacted with by clients directly -- it is primarily a server-to-server interface.
type FederationAPIModule interface {
Route(s router.Router) error
CreateTables(db db.DB) error
}