Add a monolithic server that combines all the components into one (#175)

* Add a monolithic server that combines all the components into one

* Review comments

* Expose the matrix APIs directly
This commit is contained in:
Mark Haines 2017-08-04 13:12:36 +01:00 committed by GitHub
parent 4975eb9074
commit 1a28cf9767
6 changed files with 294 additions and 11 deletions

View file

@ -54,8 +54,9 @@ func main() {
queryAPI := api.NewRoomserverQueryAPIHTTP(cfg.RoomServerURL(), nil)
aliasAPI := api.NewRoomserverAliasAPIHTTP(cfg.RoomServerURL(), nil)
inputAPI := api.NewRoomserverInputAPIHTTP(cfg.RoomServerURL(), nil)
roomserverProducer := producers.NewRoomserverProducer(cfg.RoomServerURL())
roomserverProducer := producers.NewRoomserverProducer(inputAPI)
userUpdateProducer, err := producers.NewUserUpdateProducer(
cfg.Kafka.Addresses, string(cfg.Kafka.Topics.UserUpdates),
)