tendermint/proxy/app_conn.go

24 lines
466 B
Go
Raw Normal View History

2015-12-01 20:12:01 -08:00
package proxy
import (
2016-01-22 15:48:13 -08:00
tmspcli "github.com/tendermint/tmsp/client/golang"
2015-12-01 20:12:01 -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
EchoAsync(msg string)
FlushAsync()
AppendTxAsync(tx []byte)
CheckTxAsync(tx []byte)
2015-12-01 20:12:01 -08:00
GetHashAsync()
SetOptionAsync(key string, value string)
AddListenerAsync(key string)
RemListenerAsync(key string)
InfoSync() (info []string, err error)
FlushSync() error
GetHashSync() (hash []byte, err error)
}