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.

25 lines
496 B

  1. package proxy
  2. import (
  3. tmsp "github.com/tendermint/tmsp/types"
  4. )
  5. type Callback func(tmsp.Request, tmsp.Response)
  6. type AppConn interface {
  7. SetResponseCallback(Callback)
  8. Error() error
  9. EchoAsync(msg string)
  10. FlushAsync()
  11. AppendTxAsync(tx []byte)
  12. CheckTxAsync(tx []byte)
  13. GetHashAsync()
  14. SetOptionAsync(key string, value string)
  15. AddListenerAsync(key string)
  16. RemListenerAsync(key string)
  17. InfoSync() (info []string, err error)
  18. FlushSync() error
  19. GetHashSync() (hash []byte, err error)
  20. }