2015-12-01 20:12:01 -08:00
|
|
|
package proxy
|
|
|
|
|
|
|
|
import (
|
2016-01-25 14:34:08 -08:00
|
|
|
tmspcli "github.com/tendermint/tmsp/client"
|
2015-12-01 20:12:01 -08:00
|
|
|
)
|
|
|
|
|
2016-01-06 17:14:20 -08:00
|
|
|
type AppConn interface {
|
2016-01-22 15:48:13 -08:00
|
|
|
SetResponseCallback(tmspcli.Callback)
|
2015-12-01 20:12:01 -08:00
|
|
|
Error() error
|
|
|
|
|
2016-02-08 00:48:58 -08:00
|
|
|
EchoAsync(msg string) *tmspcli.ReqRes
|
|
|
|
FlushAsync() *tmspcli.ReqRes
|
|
|
|
AppendTxAsync(tx []byte) *tmspcli.ReqRes
|
|
|
|
CheckTxAsync(tx []byte) *tmspcli.ReqRes
|
|
|
|
GetHashAsync() *tmspcli.ReqRes
|
|
|
|
SetOptionAsync(key string, value string) *tmspcli.ReqRes
|
2015-12-01 20:12:01 -08:00
|
|
|
|
2016-01-25 14:34:08 -08:00
|
|
|
InfoSync() (info string, err error)
|
2015-12-01 20:12:01 -08:00
|
|
|
FlushSync() error
|
2016-01-25 14:34:08 -08:00
|
|
|
GetHashSync() (hash []byte, log string, err error)
|
2015-12-01 20:12:01 -08:00
|
|
|
}
|