1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/server
Arnaud Porterie d0c4e44863 Refactor events publishing
Events subscription (/events API endpoint) attributes pseudo-unique identifiers to incoming subscribers: originally its host, then its subscription time. This is unecessary and leads to code complexity.

Introduce a JSONMessagePublisher to provide simple pub/sub mechanism for JSONMessage, and rely on this new type to publish events to all subscribed listeners. The original logic is kept for the 'since' and 'until' parameters, and for client disconnection handling.

Docker-DCO-1.1-Signed-off-by: Arnaud Porterie <icecrime@gmail.com> (github: icecrime)
2014-06-17 21:56:22 +02:00
..
buildfile.go add support for COPY to docker build 2014-05-29 00:07:52 +03:00
MAINTAINERS add vieux as server's MAINTAINERS 2014-05-12 20:51:45 +00:00
server.go Refactor events publishing 2014-06-17 21:56:22 +02:00
server_unit_test.go Refactor events publishing 2014-06-17 21:56:22 +02:00