tendermint/proxy/app_conn.go

22 lines
409 B
Go
Raw Normal View History

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
)
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)
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
}