moby/api/server/router
David Calavera 434d2e8745 Add PubSub topics.
A TopicFunc is an interface to let the pubisher decide whether it needs
to send a message to a subscriber or not. It returns true if the
publisher must send the message and false otherwise.

Users of the pubsub package can create a subscriber with a topic
function by calling `pubsub.SubscribeTopic`.

Message delivery has also been modified to use concurrent channels per
subscriber. That way, topic verification and message delivery is not
o(N+M) anymore, based on the number of subscribers and topic verification
complexity.

Using pubsub topics, the API stops controlling the message delivery,
delegating that function to a topic generated with the filtering
provided by the user. The publisher sends every message to the
subscriber if there is no filter, but the api doesn't have to select
messages to return anymore.

Signed-off-by: David Calavera <david.calavera@gmail.com>
2015-12-02 16:43:49 -05:00
..
container Split container backend into several specialized interfaces. 2015-11-24 14:03:39 -05:00
local Add PubSub topics. 2015-12-02 16:43:49 -05:00
network Make filtering a linear operation. 2015-12-02 11:12:42 -05:00
volume Modify improper comments in api/server/router/volume/volume.go 2015-11-08 04:05:59 +00:00
router.go Network remote APIs using new router, --net=<user-defined-network> changes 2015-10-07 03:54:19 -07:00