top

Package client implements a juggler client. Once a Client value is obtained via a call to Dial, it can be used to make calls to an RPC function identified by a URI, to subscribe to and unsubscribe from pub-sub channels, and to publish events to a pub-sub channel.

Received replies and pub-sub events are handled by a Handler. Each received message is sent to the Handler in a separate goroutine. RPC calls that did not return a result before the call timeout expired generate a custom ExpMsg message type, so an RPC call that succeeded (that is, for which the server returned an OK message, not an ERR) either generates a RES or an EXP, but never both or none.

Imported only in test by 3 package(s)

  1. github.com/PuerkitoBio/exp/juggler
  2. github.com/puerkitoBio/exp/juggler
  3. github.com/puerkitobio/exp/juggler

Imports 5 package(s)

  1. github.com/PuerkitoBio/exp/juggler/broker
  2. golang.org/x/net/context
  3. github.com/PuerkitoBio/exp/juggler/msg
  4. github.com/gorilla/websocket
  5. github.com/pborman/uuid

Test imports 4 package(s)

  1. github.com/stretchr/testify/assert
  2. github.com/stretchr/testify/require
  3. github.com/PuerkitoBio/exp/juggler/internal/wstest
  4. github.com/PuerkitoBio/exp/juggler/internal/jugglertest