add String method to Query interface

Required for https://github.com/tendermint/tendermint/issues/945
This commit is contained in:
Anton Kaliaev 2017-12-09 23:05:13 -06:00
parent b49bce2bc3
commit cb4ba522ef
No known key found for this signature in database
GPG Key ID: 7B6881D965918214
1 changed files with 1 additions and 0 deletions

View File

@ -38,6 +38,7 @@ type cmd struct {
// Query defines an interface for a query to be used for subscribing.
type Query interface {
Matches(tags map[string]interface{}) bool
String() string
}
// Server allows clients to subscribe/unsubscribe for messages, publishing