sensu / sensu-transport

The Sensu transport abstraction library.
MIT License
14 stars 19 forks source link

Implemented a deferrable/callback transport API #27

Closed portertech closed 8 years ago

portertech commented 8 years ago

This allows the transport API to support backends that require more song 'n dance before they are able to provide a connection object. The new Sensu Redis library supports Sentinel, this PR includes the required changes to transport API in order to support it and other backends like it.

1201

transport = Transport.connect()

is now:

Transport.connect() do |transport|

amdprophet commented 8 years ago

giphy

agoddard commented 8 years ago

getinsertpic.com