top

Package client implements a juggler client. Once a Client is returned via a call to Dial or New, 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 ACK message, not a NACK) either generates a RES or an EXP, but never both or none.

Imported only in test by 1 package(s)

  1. github.com/PuerkitoBio/juggler

Imports 6 package(s)

  1. github.com/pborman/uuid
  2. golang.org/x/net/context
  3. github.com/PuerkitoBio/juggler/message
  4. github.com/PuerkitoBio/juggler/internal/wswriter
  5. github.com/PuerkitoBio/juggler/broker
  6. github.com/gorilla/websocket

Test imports 3 package(s)

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