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
481 B

  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.Client
  10. }
  11. func NewRemoteAppConn(addr string) (*remoteAppConn, error) {
  12. client, err := tmspcli.NewClient(addr, false)
  13. if err != nil {
  14. return nil, err
  15. }
  16. appConn := &remoteAppConn{
  17. Client: client,
  18. }
  19. return appConn, nil
  20. }