You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
487 B

9 years ago
  1. package proxy
  2. import (
  3. tmspcli "github.com/tendermint/tmsp/client"
  4. )
  5. // This is goroutine-safe, but users should beware that
  6. // the application in general is not meant to be interfaced
  7. // with concurrent callers.
  8. type remoteAppConn struct {
  9. *tmspcli.TMSPClient
  10. }
  11. func NewRemoteAppConn(addr string) (*remoteAppConn, error) {
  12. client, err := tmspcli.NewTMSPClient(addr)
  13. if err != nil {
  14. return nil, err
  15. }
  16. appConn := &remoteAppConn{
  17. TMSPClient: client,
  18. }
  19. return appConn, nil
  20. }