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.

28 lines
548 B

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