github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/rpc/export_test.go (about)

     1  // Copyright 2016 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package rpc
     5  
     6  const CodeNotImplemented = codeNotImplemented
     7  
     8  // TODO(katco): Remove this as it is exposing internal state of Conn. Age old story: ran out of time to rewrite the tests to do this correctly.
     9  
    10  // ClientRequestID exposes the client's request ID which is
    11  // incremented everytime a connection sends a request.
    12  func (c *Conn) ClientRequestID() uint64 {
    13  	return c.reqId
    14  }