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.

21 lines
503 B

9 years ago
  1. package proxy
  2. import (
  3. tmspcli "github.com/tendermint/tmsp/client"
  4. )
  5. type AppConn interface {
  6. SetResponseCallback(tmspcli.Callback)
  7. Error() error
  8. EchoAsync(msg string) *tmspcli.ReqRes
  9. FlushAsync() *tmspcli.ReqRes
  10. AppendTxAsync(tx []byte) *tmspcli.ReqRes
  11. CheckTxAsync(tx []byte) *tmspcli.ReqRes
  12. CommitAsync() *tmspcli.ReqRes
  13. SetOptionAsync(key string, value string) *tmspcli.ReqRes
  14. InfoSync() (info string, err error)
  15. FlushSync() error
  16. CommitSync() (hash []byte, log string, err error)
  17. }